Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
d93bb663
Commit
d93bb663
authored
8 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
fix running pre-tests
parent
812bac4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/eu/hbp/mip/configuration/SecurityConfiguration.java
+8
-0
8 additions, 0 deletions
.../java/eu/hbp/mip/configuration/SecurityConfiguration.java
tests/pre-test-run.sh
+2
-2
2 additions, 2 deletions
tests/pre-test-run.sh
with
10 additions
and
2 deletions
src/main/java/eu/hbp/mip/configuration/SecurityConfiguration.java
+
8
−
0
View file @
d93bb663
...
...
@@ -201,6 +201,14 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
* @return the user for the current session
*/
public
synchronized
User
getUser
()
{
if
(!
authentication
)
{
User
user
=
new
User
();
user
.
setUsername
(
"Anonymous"
);
user
.
setFullname
(
"Anonymous"
);
user
.
setAgreeNDA
(
true
);
return
user
;
}
User
user
=
new
User
(
getUserInfos
());
User
foundUser
=
userRepository
.
findOne
(
user
.
getUsername
());
if
(
foundUser
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
tests/pre-test-run.sh
+
2
−
2
View file @
d93bb663
...
...
@@ -29,8 +29,8 @@ fi
# Run databases containers
docker run
--name
science-db-test
-p
65432:5432
-v
/science-db/sql:/docker-entrypoint-initdb.d/
-e
POSTGRES_USER
=
science
-d
postgres:9.5.3
docker run
--name
portal-db-test
-p
65433:5432
-v
/meta-db/sql:/docker-entrypoint-initdb.d/
-e
POSTGRES_USER
=
portal
-d
postgres:9.5.3
docker run
--name
science-db-test
-p
65432:5432
-v
$(
pwd
)
/science-db/sql:/docker-entrypoint-initdb.d/
-e
POSTGRES_USER
=
science
-d
postgres:9.5.3
docker run
--name
portal-db-test
-p
65433:5432
-v
$(
pwd
)
/meta-db/sql:/docker-entrypoint-initdb.d/
-e
POSTGRES_USER
=
portal
-d
postgres:9.5.3
# Get gateway IP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment