Skip to content

Commit

Permalink
Add a comment on committed credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
niveathika committed Jul 7, 2020
1 parent 78a7102 commit 944d3b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
mongodb:
image: mongo:4.2.0
env:
# Following credentials are only used during testing in docker container
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
mongodb-ssl:
Expand All @@ -29,6 +30,7 @@ jobs:
args:
test -a --sourceroot mongodb --groups mongodb
env:
# Following credentials are only used during testing in docker container
MONGODB_HOST: mongodb
MONGODB_USER: admin
MONGODB_PASSWORD: admin
Expand All @@ -38,6 +40,7 @@ jobs:
args:
test -a --groups mongodb-ssl
env:
# Following credentials are only used during testing in docker container
WORKING_DIR: ./mongodb
MONGODB_HOST: mongodb-ssl
MONGODB_USER: C=US,ST=CA,L=San Francisco,O=Jaspersoft,OU=JSDev,CN=admin
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
mongodb:
image: mongo:4.2.0
env:
# Following credentials are only used during testing in docker container
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
mongodb-ssl:
Expand All @@ -32,6 +33,7 @@ jobs:
args:
test -a --sourceroot mongodb --groups mongodb
env:
# Following credentials are only used during testing in docker container
MONGODB_HOST: mongodb
MONGODB_USER: admin
MONGODB_PASSWORD: admin
Expand All @@ -41,6 +43,7 @@ jobs:
args:
test -a --groups mongodb-ssl
env:
# Following credentials are only used during testing in docker container
WORKING_DIR: ./mongodb
MONGODB_HOST: mongodb-ssl
MONGODB_USER: C=US,ST=CA,L=San Francisco,O=Jaspersoft,OU=JSDev,CN=admin
Expand Down
3 changes: 3 additions & 0 deletions mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<alias>mongodb</alias>
<name>mongo:4.2</name>
<run>
<!--Following credentials are only used during testing in docker container-->
<env>
<MONGO_INITDB_ROOT_USERNAME>admin</MONGO_INITDB_ROOT_USERNAME>
<MONGO_INITDB_ROOT_PASSWORD>admin</MONGO_INITDB_ROOT_PASSWORD>
Expand All @@ -86,6 +87,7 @@
</execution>
</executions>
<configuration>
<!--Following credentials are only used during testing in docker container-->
<environmentVariables>
<MONGODB_HOST>${docker.container.mongodb.ip}</MONGODB_HOST>
<MONGODB_USER>admin</MONGODB_USER>
Expand Down Expand Up @@ -150,6 +152,7 @@
</execution>
</executions>
<configuration>
<!--Following credentials are only used during testing in docker container-->
<environmentVariables>
<MONGODB_HOST>${docker.container.mongodb-ssl.ip}</MONGODB_HOST>
<MONGODB_USER>C=US,ST=CA,L=San Francisco,O=Jaspersoft,OU=JSDev,CN=admin</MONGODB_USER>
Expand Down

0 comments on commit 944d3b4

Please sign in to comment.