Julien Lancelot
b5cc291883
SONAR-11632 Remove api/tests WS
- Drop api/tests WS
- Drop persistance of tests and coverage details from compute engine
- Drop tests and coverage details from scanner report
5 years ago
Duarte Meneses
252b3897e7
Fix license headers for 2019
5 years ago
Julien Lancelot
6c7e684082
SONAR-10944 Add subscription flag to organizations
* Create migrations to add and populate ORGANIZATIONS#SUBSCRIPTION
* Handle subscription in insert/update/select of OrganizationDto
* Upgrade/Downgrade update organization subscription
* Return subscription flag in api/organizations/search
* Create new organization as FREE
6 years ago
Simon Brandhof
c0d2705e61
Fix license headers for 2018
6 years ago
Julien Lancelot
a14c1865a7
SONAR-9616 Does not allow ws to use branch db key
6 years ago
Sébastien Lesaint
e899ee47d6
SONAR-9346 move ResourceTypes down to ComponentFinder
rather than passing them as method parameters
7 years ago
Sébastien Lesaint
69966b44e1
SONAR-9140 support public components in UserSessionRule
7 years ago
Sébastien Lesaint
398748bdea
SONAR-9140 only ComponentDto can be used to populate UserSessionRule
7 years ago
Teryk Bellahsene
cfa372a57a
SONAR-8637 Update POM parent version
7 years ago
Sébastien Lesaint
7efab8ef44
rename UserSessionRule.login() to logIn() for clarity
7 years ago
Simon Brandhof
82d87617e6
Refactor scope of DbTester
so that it is always @Rule but not @ClassRule.
That allows to drop calls to truncateTables() from
tests. Each db test is ensured to be isolated.
8 years ago
Simon Brandhof
48d5099ff5
Remove unused annotation @DbTests
8 years ago
Simon Brandhof
f5d3461ffd
Fix project title in copyright headers
8 years ago
Simon Brandhof
6be98b208a
Upgrade to parent 26 and new copyright headers
8 years ago
Julien Lancelot
7fcfb59792
Move ComponentDao from sonar-server to sonar-db
9 years ago
Julien Lancelot
4bbd9c7bea
Remove NotFoundExpection from ComponentDao
9 years ago
Julien Lancelot
59afc6c59a
Replace usage of new DbTester() and AbstractDaoTestCase by DbTester.create(System2)
9 years ago
David Gageot
8ab266708a
Unused imports
9 years ago
Simon Brandhof
0f5e9229cb
Fix execution of tests on non-H2 databases
9 years ago
Simon Brandhof
32af292b74
Move some classes from sonar-server to sonar-db
9 years ago
Simon Brandhof
1df1488036
Extract module sonar-db
9 years ago
Julien Lancelot
8657ef7256
SONAR-6255 Fix issue on /api/sources when component is a test
9 years ago
Julien Lancelot
275dc59084
Remove BaseDao usage from ComponentDao
9 years ago
Simon Brandhof
de0cefc33c
Remove direct usage of System2.INSTANCE in constructors
9 years ago
Sébastien Lesaint
0d46d49aa3
rename UserSession.login=>getLogin and UserSessionRule.logon=>login
allow using the method name login() for the login action in UserSessionRule
9 years ago
Sébastien Lesaint
374f666626
make UserSession non static
UserSession is now an interface
the old UserSession has been split into ServerUserSession (implements the lazy loading of credentials directly from DAOs) and ThreadLocalUserSession (implements the thread local management)
add UserSessionRule for UserSession management in unit test with support for ServerTester
DoPrivileged now restores the user session which was in ThreadLocal before it ran
move MockUserSession to server.tester package
9 years ago
David Gageot
5a587fb74f
Redundant throws clause in tests
9 years ago
Julien HENRY
fc072f9458
SONAR-6253 Cleanup SourcePersister on batch side
and move FileSourceDao to sonar-server
9 years ago
Julien Lancelot
ed7971e6c8
SONAR-6350 /api/sources/scm should read information from index
9 years ago
Julien HENRY
6f5449b6da
SONAR-6317 Feed SCM in compute report - batch side
9 years ago
Julien Lancelot
a2af42ae29
SONAR-6091 /api/source/hash WS should need "Browse" permission instead of "Code Viewer" permission
9 years ago
Julien Lancelot
1eaa3b9a44
Replace some none static call to DbTester by static call (when possible)
9 years ago
Julien Lancelot
4d869a9da6
Read line hashes in streaming
9 years ago
Simon Brandhof
62d74d700e
Fix quality flaws
9 years ago
Simon Brandhof
2faaf7e16a
Replace fest-assert by assertJ
9 years ago
Jean-Baptiste Lievremont
f1b5ffc899
SONAR-5889 Implement api/sources/index on ES index
9 years ago
Jean-Baptiste Lievremont
e109cd6e93
SONAR-5868 Add check for codeviewer permission on api/sources/hash
9 years ago
Jean-Baptiste Lievremont
2d575bd89f
Fix quality flaws
9 years ago
Jean-Baptiste Lievremont
302171599c
SONAR-5868 Protect against NPE when there is no source for a file (e.g directory)
9 years ago
Jean-Baptiste Lievremont
f1199464b9
SONAR-5868 Add WS to fetch line hashes for issue tracking
9 years ago
Jean-Baptiste Lievremont
e880a603c9
SONAR-5743 Move new source WS to api/sources/lines
9 years ago
Jean-Baptiste Lievremont
c9c77b4bab
SONAR-5743 New Source Code + SCM WS
9 years ago
Simon Brandhof
5bd495c4c1
Remove class TxtWriter
9 years ago
Julien Lancelot
1bf38eef43
SoNAR-5292 Return 404 when file does not exists
9 years ago
Julien Lancelot
fcbc15aefa
SONAR-5292 Provide a new "/api/sources/raw" WS
9 years ago