Skip to content

Commit be63780

Browse files
committed
bump goldens
Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent a43585e commit be63780

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

internal/core/bootstrap_test.go

+46
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,51 @@ func TestInterruptError(t *testing.T) {
8484
TestCheckStderrGolden(),
8585
),
8686
}))
87+
t.Run("emtpy-success", Test(&TestConfig{
88+
Commands: NewCommands(
89+
&Command{
90+
Namespace: "test",
91+
Resource: "empty",
92+
Verb: "success",
93+
ArgsType: reflect.TypeOf(args.RawArgs{}),
94+
Run: func(ctx context.Context, argsI interface{}) (i interface{}, e error) {
95+
return &SuccessResult{
96+
Empty: true,
97+
Message: "dummy",
98+
Details: "dummy",
99+
Resource: "dummy",
100+
Verb: "dummy",
101+
}, nil
102+
},
103+
},
104+
),
105+
UseE2EClient: true,
106+
DisableParallel: true, // because e2e client is used
107+
Cmd: "scw test empty success",
108+
Check: TestCheckStdoutGolden(),
109+
}))
110+
t.Run("emtpy-success-json", Test(&TestConfig{
111+
Commands: NewCommands(
112+
&Command{
113+
Namespace: "test",
114+
Resource: "empty",
115+
Verb: "success",
116+
ArgsType: reflect.TypeOf(args.RawArgs{}),
117+
Run: func(ctx context.Context, argsI interface{}) (i interface{}, e error) {
118+
return &SuccessResult{
119+
Empty: true,
120+
Message: "dummy",
121+
Details: "dummy",
122+
Resource: "dummy",
123+
Verb: "dummy",
124+
}, nil
87125

126+
},
127+
},
128+
),
129+
UseE2EClient: true,
130+
DisableParallel: true, // because e2e client is used
131+
Cmd: "scw -o json test empty success",
132+
Check: TestCheckStdoutGolden(),
133+
}))
88134
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)