Skip to content

Commit 42d2fb0

Browse files
committed
Allow creating application with a file spec
1 parent 1375d90 commit 42d2fb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apptrust/commands/application/create_app_cmd_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func TestCreateAppCommand_Run_Flags(t *testing.T) {
5050
mockAppService.EXPECT().CreateApplication(gomock.Any(), requestPayload).Return(nil).Times(1)
5151

5252
cmd := &createAppCommand{
53+
serverDetails: &config.ServerDetails{Url: "https://example.com"},
5354
applicationService: mockAppService,
5455
requestBody: requestPayload,
5556
}
@@ -115,6 +116,7 @@ func TestCreateAppCommand_MissingProjectFlag(t *testing.T) {
115116
mockAppService := mockapps.NewMockApplicationService(ctrl)
116117

117118
cmd := &createAppCommand{
119+
serverDetails: &config.ServerDetails{Url: "https://example.com"},
118120
applicationService: mockAppService,
119121
}
120122

@@ -217,6 +219,7 @@ func TestCreateAppCommand_Run_SpecFile(t *testing.T) {
217219
}
218220

219221
cmd := &createAppCommand{
222+
serverDetails: &config.ServerDetails{Url: "https://example.com"},
220223
applicationService: mockAppService,
221224
}
222225

@@ -266,6 +269,7 @@ func TestCreateAppCommand_Run_SpecVars(t *testing.T) {
266269
}).Times(1)
267270

268271
cmd := &createAppCommand{
272+
serverDetails: &config.ServerDetails{Url: "https://example.com"},
269273
applicationService: mockAppService,
270274
}
271275

@@ -289,6 +293,7 @@ func TestCreateAppCommand_Error_SpecAndFlags(t *testing.T) {
289293
mockAppService := mockapps.NewMockApplicationService(ctrl)
290294

291295
cmd := &createAppCommand{
296+
serverDetails: &config.ServerDetails{Url: "https://example.com"},
292297
applicationService: mockAppService,
293298
}
294299

0 commit comments

Comments
 (0)