@@ -64,7 +64,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
64
64
error := runCloudFoundryCreateService (& config , & telemetryData , cf )
65
65
if assert .NoError (t , error ) {
66
66
assert .Equal (t , []mock.ExecCall {{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"login" , "-a" , "https://api.endpoint.com" , "-o" , "testOrg" , "-s" , "testSpace" , "-u" , "testUser" , "-p" , "testPassword" }},
67
- {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-t" , "testTag, testTag2" }},
67
+ {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-t" , "testTag, testTag2" , "--wait" }},
68
68
{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"logout" }}},
69
69
m .Calls )
70
70
}
@@ -86,7 +86,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
86
86
error := runCloudFoundryCreateService (& config , & telemetryData , cf )
87
87
if assert .NoError (t , error ) {
88
88
assert .Equal (t , []mock.ExecCall {{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"login" , "-a" , "https://api.endpoint.com" , "-o" , "testOrg" , "-s" , "testSpace" , "-u" , "testUser" , "-p" , "testPassword" }},
89
- {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-b" , "testBroker" }},
89
+ {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-b" , "testBroker" , "--wait" }},
90
90
{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"logout" }}},
91
91
m .Calls )
92
92
}
@@ -108,7 +108,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
108
108
error := runCloudFoundryCreateService (& config , & telemetryData , cf )
109
109
if assert .NoError (t , error ) {
110
110
assert .Equal (t , []mock.ExecCall {{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"login" , "-a" , "https://api.endpoint.com" , "-o" , "testOrg" , "-s" , "testSpace" , "-u" , "testUser" , "-p" , "testPassword" }},
111
- {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-c" , "testConfig.json" }},
111
+ {Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"create-service" , "testService" , "testPlan" , "testName" , "-c" , "testConfig.json" , "--wait" }},
112
112
{Execution : (* mock .Execution )(nil ), Async : false , Exec : "cf" , Params : []string {"logout" }}},
113
113
m .Calls )
114
114
}
0 commit comments