Skip to content

Commit

Permalink
Fix test command
Browse files Browse the repository at this point in the history
  • Loading branch information
lvps committed Apr 5, 2024
1 parent d1b5ba5 commit 1f66a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
- name: Run test script
working-directory: ./aci
run: |
python ci_test_acis.py
pytest test_acis.py
8 changes: 4 additions & 4 deletions aci/test_acis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
SUFFIX = os.getenv('TEST_SUFFIX')
ACI_LDIF = os.getenv('TEST_ACI_LDIF')

if len(LDAP_CONNECTION_STRING) <= 0:
if LDAP_CONNECTION_STRING is None or len(LDAP_CONNECTION_STRING) <= 0:
print("Set the env variable TEST_LDAP_CONNECTION_STRING")
exit(1)
if len(PASSWORD) <= 0:
if PASSWORD is None or len(PASSWORD) <= 0:
print("Set the env variable TEST_PASSWORD")
exit(1)
if len(SUFFIX) <= 0:
if SUFFIX is None or len(SUFFIX) <= 0:
print("Set the env variable TEST_SUFFIX")
exit(1)
if len(ACI_LDIF) <= 0:
if ACI_LDIF is None or len(ACI_LDIF) <= 0:
print("Set the env variable TEST_ACI_LDIF")
exit(1)

Expand Down

0 comments on commit 1f66a7b

Please sign in to comment.