[arvados] created: 2.5.0-38-g7ef0ede6b
git repository hosting
git at public.arvados.org
Tue Jan 24 19:38:39 UTC 2023
at 7ef0ede6b0e235685013e54fa7ef8d1eb4da345e (commit)
commit 7ef0ede6b0e235685013e54fa7ef8d1eb4da345e
Author: Brett Smith <brett.smith at curii.com>
Date: Tue Jan 24 14:37:27 2023 -0500
WIP: Run tests with a strict vocabulary
This commit isn't meant to be merged as-is. I'm pushing it to run the
tests on Jenkins and see how many tests fail when run this way, and
estimate the effort required to turn this on for tests by default.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/sdk/python/tests/data/vocabulary.json b/sdk/python/tests/data/vocabulary.json
new file mode 100644
index 000000000..475292600
--- /dev/null
+++ b/sdk/python/tests/data/vocabulary.json
@@ -0,0 +1,27 @@
+{
+ "strict_tags": true,
+ "tags": {
+ "IDTAGANIMALS": {
+ "strict": false,
+ "labels": [{"label": "Animal" }, {"label": "Creature"}, {"label": "Species"}],
+ "values": {
+ "IDVALANIMALS1": { "labels": [{"label": "Human"}, {"label": "Homo sapiens"}] },
+ "IDVALANIMALS2": { "labels": [{"label": "Dog"}, {"label": "Canis lupus familiaris"}] },
+ "IDVALANIMALS3": { "labels": [{"label": "Elephant"}, {"label": "Loxodonta"}] },
+ "IDVALANIMALS4": { "labels": [{"label": "Eagle"}, {"label": "Haliaeetus leucocephalus"}] }
+ }
+ },
+ "IDTAGCOMMENT": {
+ "labels": [{"label": "Comment"}, {"label": "Suggestion"}]
+ },
+ "IDTAGIMPORTANCES": {
+ "strict": true,
+ "labels": [{"label": "Importance"}, {"label": "Priority"}],
+ "values": {
+ "IDVALIMPORTANCES1": { "labels": [{"label": "Critical"}, {"label": "Urgent"}, {"label": "High"}] },
+ "IDVALIMPORTANCES2": { "labels": [{"label": "Normal"}, {"label": "Moderate"}] },
+ "IDVALIMPORTANCES3": { "labels": [{"label": "Low"}] }
+ }
+ }
+ }
+}
diff --git a/sdk/python/tests/run_test_server.py b/sdk/python/tests/run_test_server.py
index f9fb36a01..efeb26c18 100644
--- a/sdk/python/tests/run_test_server.py
+++ b/sdk/python/tests/run_test_server.py
@@ -793,6 +793,7 @@ def setup_config():
"API": {
"RequestTimeout": "30s",
"LockBeforeUpdate": True,
+ "VocabularyPath": os.path.join(MY_DIRNAME, 'data', 'vocabulary.json'),
},
"Login": {
"Test": {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list