Skip to content

Commit

Permalink
CLosing in
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly committed Feb 6, 2024
1 parent bea389e commit 582949a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/run_tests_access_drogon_manage_login.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Test access to Sumo with DROGON-MANAGE login

on:
pull_request:
branches: [main]
schedule:
- cron: "44 4 * * *"
workflow_dispatch:

jobs:
build_pywheels:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/run_tests_access_drogon_read_login.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Test access to Sumo with DROGON-READ login

on:
pull_request:
branches: [main]
schedule:
- cron: "24 4 * * *"
workflow_dispatch:

jobs:
build_pywheels:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/run_tests_access_drogon_write_login.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Test access to Sumo with DROGON-WRITE login

on:
pull_request:
branches: [main]
schedule:
- cron: "34 4 * * *"
workflow_dispatch:

jobs:
build_pywheels:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/run_tests_access_no_access_login.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Test access to Sumo with NO-ACCESS login

on:
pull_request:
branches: [main]
schedule:
- cron: "54 4 * * *"
workflow_dispatch:

jobs:
build_pywheels:
Expand Down
7 changes: 2 additions & 5 deletions tests/test_access/tst_access_no_access_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def test_get_userpermissions(explorer: Explorer):
print("/Userpermissions response: ", response.text)
userperms = json.loads(response.text)
assert "Drogon" not in userperms
# assert "read" not in userperms.get("Drogon")
# assert 1 == len(userperms.get("Drogon"))
# assert 1 == len(userperms)
assert 0 == len(userperms)


def test_get_cases(explorer: Explorer):
Expand All @@ -67,7 +65,6 @@ def test_write(explorer: Explorer):
print("Running test:", inspect.currentframe().f_code.co_name)
cases = explorer.cases
print("Number of cases: ", len(cases))
# assert len(cases) == 0

with open("./tests/data/test_case_080/case2.json") as json_file:
metadata = json.load(json_file)
Expand All @@ -87,7 +84,7 @@ def test_read_restricted_classification_data(explorer: Explorer):
print("Running test:", inspect.currentframe().f_code.co_name)
cases = explorer.cases
print("Number of cases: ", len(cases))
# assert len(cases) > 0
assert len(cases) > 0

# A default Drogon iteration contains 2 restricted objects,
# so in normal situations there should be some restricted objects
Expand Down

0 comments on commit 582949a

Please sign in to comment.