You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OUT1=$(./occ context_chat:prompt admin "Which factors are taken into account for the Ethical AI Rating?")
819
-
OUT2=$(./occ context_chat:prompt admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
820
-
OUT3=$(./occ context_chat:search admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
821
-
echo "$OUT1" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Admin does not see AI overview anymore' || exit 1
822
-
echo "$OUT2" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Admin does not see AI overview anymore, after german question' || exit 1
823
-
echo "$OUT3" | grep -q -v "overview.rst" && echo 'Admin does not see AI overview anymore, when using search' || exit 1
819
+
# Check for user admin: Should be there
820
+
OUT_ADMIN_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt admin "Which factors are taken into account for the Ethical AI Rating?")
821
+
OUT_ADMIN_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
822
+
OUT_ADMIN_SEARCH_AI=$(./occ context_chat:search admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
823
+
824
+
# Check for user test: Shouldn't be there
825
+
OUT_TEST_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt test "Which factors are taken into account for the Ethical AI Rating?")
826
+
OUT_TEST_GERMAN_PROMPT_AI=$(./occ context_chat:prompt test "Welche Faktoren beeinflussen das Ethical AI Rating?")
827
+
OUT_TEST_SEARCH_AI=$(./occ context_chat:search test "Welche Faktoren beeinflussen das Ethical AI Rating?")
828
+
829
+
# Check for user test: Should be there, because it was shared
830
+
OUT_TEST_PROMPT_JOBS=$(./occ context_chat:prompt test "How do I set my TimedJob to be time insensitive?")
831
+
OUT_TEST_SEARCH_JOBS=$(./occ context_chat:search test "How do I set my TimedJob to be time insensitive?")
832
+
833
+
set -x
834
+
835
+
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI"
836
+
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI"
837
+
echo "$OUT_ADMIN_SEARCH_AI"
838
+
echo "$OUT_TEST_ENGLISH_PROMPT_AI"
839
+
echo "$OUT_TEST_GERMAN_PROMPT_AI"
840
+
echo "$OUT_TEST_SEARCH_AI"
841
+
echo "$OUT_TEST_PROMPT_JOBS"
842
+
echo "$OUT_TEST_SEARCH_JOBS"
824
843
825
-
OUT1=$(./occ context_chat:prompt test "Which factors are taken into account for the Ethical AI Rating?")
826
-
OUT2=$(./occ context_chat:prompt test "Welche Faktoren beeinflussen das Ethical AI Rating?")
827
-
OUT3=$(./occ context_chat:search test "Welche Faktoren beeinflussen das Ethical AI Rating?")
828
-
echo "$OUT1" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Test user does not see AI overview' || exit 1
829
-
echo "$OUT2" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Test user does not see AI overview, after german question' || exit 1
830
-
echo "$OUT3" | grep -q -v "overview.rst" && echo 'Test user does not see AI overview' || exit 1
844
+
set +x
831
845
832
-
OUT1=$(./occ context_chat:prompt test "How do I set my TimedJob to be time insensitive?")
833
-
OUT3=$(./occ context_chat:search test "How do I set my TimedJob to be time insensitive?")
834
-
echo "$OUT1" | grep -q "This allows the Nextcloud to delay the job until a given nightly time window" && echo 'Test user does see BackgroundJobs docs' || exit 1
835
-
echo "$OUT3" | grep -q "backgroundjobs.rst" && echo 'Test user does see BackgroundJobs docs' || exit 1
846
+
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Admin does not see AI overview anymore' || exit 1
847
+
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Admin does not see AI overview anymore, after german question' || exit 1
848
+
echo "$OUT_ADMIN_SEARCH_AI" | grep -q -v "overview.rst" && echo 'Admin does not see AI overview anymore, when using search' || exit 1
849
+
echo "$OUT_TEST_ENGLISH_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Test user does not see AI overview' || exit 1
850
+
echo "$OUT_TEST_GERMAN_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo 'Test user does not see AI overview, after german question' || exit 1
851
+
echo "$OUT_TEST_SEARCH_AI" | grep -q -v "overview.rst" && echo 'Test user does not see AI overview, when using search' || exit 1
852
+
echo "$OUT_TEST_PROMPT_JOBS" | grep -q "This allows the Nextcloud to delay the job until a given nightly time window" && echo 'Test user does see BackgroundJobs docs' || exit 1
853
+
echo "$OUT_TEST_SEARCH_JOBS" | grep -q "backgroundjobs.rst" && echo 'Test user does see BackgroundJobs docs' || exit 1
0 commit comments