Skip to content

Commit 760b3e5

Browse files
committed
fix missing url
1 parent 59617bb commit 760b3e5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

apptrust/commands/version/create_app_version_cmd_test.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ func TestCreateAppVersionCommand(t *testing.T) {
4848
ctrl := gomock.NewController(t)
4949
defer ctrl.Finish()
5050

51-
serverDetails := &config.ServerDetails{Url: "https://example.com"}
51+
serverDetails := &config.ServerDetails{
52+
Url: "https://example.com",
53+
}
5254
mockVersionService := mockversions.NewMockVersionService(ctrl)
5355
if tt.shouldError {
5456
mockVersionService.EXPECT().CreateAppVersion(gomock.Any(), tt.request).
@@ -86,7 +88,9 @@ func TestCreateAppVersionCommand_SpecAndFlags_Error(t *testing.T) {
8688
ctx.AddStringFlag("spec", testSpecPath)
8789
ctx.AddStringFlag("package-name", "name")
8890

89-
serverDetails := &config.ServerDetails{Url: "https://example.com"}
91+
serverDetails := &config.ServerDetails{
92+
Url: "https://example.com",
93+
}
9094
mockVersionService := mockversions.NewMockVersionService(ctrl)
9195

9296
cmd := &createAppVersionCommand{
@@ -161,7 +165,9 @@ func TestCreateAppVersionCommand_FlagsSuite(t *testing.T) {
161165
ctx := &components.Context{}
162166
tt.ctxSetup(ctx)
163167

164-
serverDetails := &config.ServerDetails{Url: "https://example.com"}
168+
serverDetails := &config.ServerDetails{
169+
Url: "https://example.com",
170+
}
165171
var actualPayload *model.CreateAppVersionRequest
166172
mockVersionService := mockversions.NewMockVersionService(ctrl)
167173
if !tt.expectsError {
@@ -329,7 +335,9 @@ func TestCreateAppVersionCommand_SpecFileSuite(t *testing.T) {
329335
}
330336
ctx.AddStringFlag("spec", tt.specPath)
331337

332-
serverDetails := &config.ServerDetails{Url: "https://example.com"}
338+
serverDetails := &config.ServerDetails{
339+
Url: "https://example.com",
340+
}
333341
var actualPayload *model.CreateAppVersionRequest
334342
mockVersionService := mockversions.NewMockVersionService(ctrl)
335343
if !tt.expectsError {

0 commit comments

Comments
 (0)