feat(t215): add admin order authorization

This commit is contained in:
QiuSW
2026-07-28 12:50:42 +08:00
parent 16c2ea410a
commit 827afc7257
24 changed files with 2688 additions and 113 deletions
@@ -27,8 +27,8 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
if err != nil {
t.Fatalf("Up() error = %v", err)
}
if applied != 7 {
t.Fatalf("Up() applied = %d, want 7", applied)
if applied != 8 {
t.Fatalf("Up() applied = %d, want 8", applied)
}
assertStatuses(t, runner, map[int64]bool{
1: true,
@@ -38,6 +38,7 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
5: true,
6: true,
7: true,
8: true,
})
applied, err = runner.Up(context.Background())
@@ -58,7 +59,8 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
4: true,
5: true,
6: true,
7: false,
7: true,
8: false,
})
applied, err = runner.Up(context.Background())
@@ -76,6 +78,7 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
5: true,
6: true,
7: true,
8: true,
})
}