-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Run Fence unit tests | ||
on: push | ||
#comment | ||
jobs: | ||
run_tests: | ||
uses: uc-cdis/.github/.github/workflows/python_unit_test.yaml@bf95ae6b77fb034677f81aedc56d13c7ad832897 | ||
with: | ||
setup-script-location: https://raw.githubusercontent.com/uc-cdis/fence/reusable-unit-test-workflow/tests/setup/fence.sh | ||
python-versions: "['3.6.7', '3.9']" | ||
package-names: "['fence', 'migrations/versions']" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
psql -h localhost -U postgres -c 'SELECT version();' | ||
psql -h localhost -U postgres -c "create database fence_test_tmp" | ||
pip list | ||
|
||
sudo rm -f /etc/boto.cfg | ||
mkdir -p tests/resources/keys | ||
|
||
cd tests/resources/keys | ||
openssl genrsa -out test_private_key.pem 2048 | ||
openssl rsa -in test_private_key.pem -pubout -out test_public_key.pem | ||
|
||
openssl genrsa -out test_private_key_2.pem 2048 | ||
openssl rsa -in test_private_key_2.pem -pubout -out test_public_key_2.pem | ||
|
||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters