@@ -558,40 +558,43 @@ Stderr:
558558(No output)
559559
560560############################
561- Command: cbrain project switch all # 'all' not yet implemented as of Aug 2025
562- Status: 1
563- Stdout: 74 bytes
561+ Command: cbrain project switch all
562+ Status: 0
563+ Stdout: 32 bytes
564564Stderr: 0 bytes
565565
566566Stdout:
567- Error: Project switch ' all' not yet implemented as of Aug 2025 (group_id)
567+ Current project is " all" ID=all
568568Stderr:
569569(No output)
570570
571571############################
572572Command: cbrain --json project switch all
573- Status: 1
574- Stdout: 74 bytes
573+ Status: 0
574+ Stdout: 35 bytes
575575Stderr: 0 bytes
576576
577577Stdout:
578- Error: Project switch 'all' not yet implemented as of Aug 2025 (group_id)
578+ {
579+ "id": "all",
580+ "name": "all"
581+ }
579582Stderr:
580583(No output)
581584
582585############################
583586Command: cbrain --jsonl project switch all
584- Status: 1
585- Stdout: 74 bytes
587+ Status: 0
588+ Stdout: 26 bytes
586589Stderr: 0 bytes
587590
588591Stdout:
589- Error: Project switch ' all' not yet implemented as of Aug 2025 (group_id)
592+ {"id":" all","name":"all"}
590593Stderr:
591594(No output)
592595
593596############################
594- Command: cbrain project switch 3 # need to reset for rest of test to work
597+ Command: cbrain project switch 3 # reset project filter for task list below
595598Status: 0
596599Stdout: 31 bytes
597600Stderr: 0 bytes
@@ -998,18 +1001,67 @@ Stderr:
9981001(No output)
9991002
10001003############################
1001- Command: cbrain task operation # should provide error message
1004+ Command: cbrain task operation hold --task-id 2
10021005Status: 0
1003- Stdout: 41 bytes
1006+ Stdout: 182 bytes
1007+ Stderr: 0 bytes
1008+
1009+ Stdout:
1010+ TASK OPERATION RESULT
1011+ ------------------------------
1012+ Operation: hold
1013+ Succeeded: 0
1014+ Skipped: 1
1015+ Failed: 0
1016+
1017+ SKIPPED
1018+ ------------------------------
1019+ Tasks have incompatible states: 2
1020+ Stderr:
1021+ (No output)
1022+
1023+ ############################
1024+ Command: cbrain --json task operation hold --task-id 2
1025+ Status: 0
1026+ Stdout: 142 bytes
10041027Stderr: 0 bytes
10051028
10061029Stdout:
10071030{
1008- "message": "No operation selected"
1031+ "skipped_list": {
1032+ "Tasks have incompatible states": [
1033+ 2
1034+ ]
1035+ },
1036+ "success_list": [],
1037+ "failed_list": {},
1038+ "bac_ids": []
10091039}
10101040Stderr:
10111041(No output)
10121042
1043+ ############################
1044+ Command: cbrain --jsonl task operation hold --task-id 2
1045+ Status: 0
1046+ Stdout: 104 bytes
1047+ Stderr: 0 bytes
1048+
1049+ Stdout:
1050+ {"skipped_list":{"Tasks have incompatible states":[2]},"success_list":[],"failed_list":{},"bac_ids":[]}
1051+ Stderr:
1052+ (No output)
1053+
1054+ ############################
1055+ Command: cbrain task operation hold # missing --task-id / --batch-id
1056+ Status: 1
1057+ Stdout: 68 bytes
1058+ Stderr: 0 bytes
1059+
1060+ Stdout:
1061+ Error: At least one --task-id or --batch-id is required (--task-id)
1062+ Stderr:
1063+ (No output)
1064+
10131065############################
10141066Command: ./switch_session admin
10151067Status: 0
@@ -1187,36 +1239,36 @@ Stderr:
11871239############################
11881240Command: cbrain tool-config show 19 # visible to user admin
11891241Status: 1
1190- Stdout: 107 bytes
1242+ Stdout: 117 bytes
11911243Stderr: 0 bytes
11921244
11931245Stdout:
11941246Authentication error (401): Unauthorized
1195- Error: Access denied. Please log in using authorized credentials .
1247+ Error: Session expired or invalid. Run 'cbrain logout' then 'cbrain login' .
11961248Stderr:
11971249(No output)
11981250
11991251############################
12001252Command: cbrain --json tool-config show 19
12011253Status: 1
1202- Stdout: 107 bytes
1254+ Stdout: 117 bytes
12031255Stderr: 0 bytes
12041256
12051257Stdout:
12061258Authentication error (401): Unauthorized
1207- Error: Access denied. Please log in using authorized credentials .
1259+ Error: Session expired or invalid. Run 'cbrain logout' then 'cbrain login' .
12081260Stderr:
12091261(No output)
12101262
12111263############################
12121264Command: cbrain --jsonl tool-config show 19
12131265Status: 1
1214- Stdout: 107 bytes
1266+ Stdout: 117 bytes
12151267Stderr: 0 bytes
12161268
12171269Stdout:
12181270Authentication error (401): Unauthorized
1219- Error: Access denied. Please log in using authorized credentials .
1271+ Error: Session expired or invalid. Run 'cbrain logout' then 'cbrain login' .
12201272Stderr:
12211273(No output)
12221274
0 commit comments