Skip to content

Commit 4e97c24

Browse files
authoredDec 8, 2022
Refactor OPA tests (cvat-ai#5373)
- OPA tests are now autogenerated - Updated invocation docs
1 parent 03dd995 commit 4e97c24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3076
-118870
lines changed
 

‎.github/workflows/full.yml

+3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ jobs:
243243
244244
- name: Running OPA tests
245245
run: |
246+
python cvat/apps/iam/rules/tests/generate_tests.py \
247+
--output-dir cvat/apps/iam/rules/
248+
246249
curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static
247250
chmod +x ./opa
248251
./opa test cvat/apps/iam/rules

‎.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ jobs:
209209
210210
- name: Running OPA tests
211211
run: |
212+
python cvat/apps/iam/rules/tests/generate_tests.py \
213+
--output-dir cvat/apps/iam/rules/
214+
212215
curl -L -o opa https://openpolicyagent.org/downloads/v0.34.2/opa_linux_amd64_static
213216
chmod +x ./opa
214217
./opa test cvat/apps/iam/rules

0 commit comments

Comments
 (0)
Please sign in to comment.