Fossil SCM

Fix json tests that no longer reflects default capabilities for anonymous.

preben 2023-11-26 16:48 test-fixes-2.24
Commit 9ba74ae04ee2e7aee2228feeae4b814b3eea36fb39fd949d5a03ce549494adc6
1 file changed +1 -1
+1 -1
--- test/json.test
+++ test/json.test
@@ -276,11 +276,11 @@
276276
proc test_hascaps {testname need caps} {
277277
foreach n [split $need {}] {
278278
test $testname-$n {[string first $n $caps] >= 0}
279279
}
280280
}
281
-test_hascaps json-login-c "hmnc" [dict get $AuthAnon capabilities]
281
+test_hascaps json-login-c "hz" [dict get $AuthAnon capabilities]
282282
283283
fossil user new U1 User-1 Uone
284284
fossil user capabilities U1 s
285285
write_file u1 {
286286
{
287287
--- test/json.test
+++ test/json.test
@@ -276,11 +276,11 @@
276 proc test_hascaps {testname need caps} {
277 foreach n [split $need {}] {
278 test $testname-$n {[string first $n $caps] >= 0}
279 }
280 }
281 test_hascaps json-login-c "hmnc" [dict get $AuthAnon capabilities]
282
283 fossil user new U1 User-1 Uone
284 fossil user capabilities U1 s
285 write_file u1 {
286 {
287
--- test/json.test
+++ test/json.test
@@ -276,11 +276,11 @@
276 proc test_hascaps {testname need caps} {
277 foreach n [split $need {}] {
278 test $testname-$n {[string first $n $caps] >= 0}
279 }
280 }
281 test_hascaps json-login-c "hz" [dict get $AuthAnon capabilities]
282
283 fossil user new U1 User-1 Uone
284 fossil user capabilities U1 s
285 write_file u1 {
286 {
287

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button