Skip to content

Commit

Permalink
temp: to see if sudo remova worked.w
Browse files Browse the repository at this point in the history
  • Loading branch information
feanil committed Jan 19, 2024
1 parent 39fd704 commit 9905784
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
image: mongo:${{ matrix.mongo-version }}
ports:
- 27017:27017
# Note: Calling mongo here only works with mongo 4, in newer versions of mongo
# Note: Calling `mongo` here only works with mongo 4, in newer versions of mongo
# we'll have to use `mongosh`
options: >-
--health-cmd "mongo --quiet --eval 'db.runCommand(\"ping\")'"
Expand All @@ -70,24 +70,24 @@ jobs:
steps:
# - name: sync directory owner
# run: sudo chown runner:runner -R .*
- name: Setup mongodb user
run: |
mongo edxapp --eval '
db.createUser(
{
user: "edxapp",
pwd: "password",
roles: [
{ role: "readWrite", db: "edxapp" },
]
}
);
'
- name: Verify mongo and mysql db credentials
run: |
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp
mongo --host 127.0.0.1 --username edxapp --password password --eval 'use edxapp; db.adminCommand("ping");' edxapp
# - name: Setup mongodb user
# run: |
# mongo edxapp --eval '
# db.createUser(
# {
# user: "edxapp",
# pwd: "password",
# roles: [
# { role: "readWrite", db: "edxapp" },
# ]
# }
# );
# '
#
# - name: Verify mongo and mysql db credentials
# run: |
# mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp
# mongo --host 127.0.0.1 --username edxapp --password password --eval 'use edxapp; db.adminCommand("ping");' edxapp


- name: Setup Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 9905784

Please sign in to comment.