@@ -198,7 +198,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
198198 initializeDockerAppEnvironment (t , & cmd , tmpDir , swarm , useBindMount )
199199
200200 // Install an illformed Docker Application Package
201- cmd .Command = dockerCli .Command ("app" , "install " , "testdata/simple/simple.dockerapp" , "--set" , "web_port=-1" , "--name" , appName )
201+ cmd .Command = dockerCli .Command ("app" , "run " , "testdata/simple/simple.dockerapp" , "--set" , "web_port=-1" , "--name" , appName )
202202 icmd .RunCmd (cmd ).Assert (t , icmd.Expected {
203203 ExitCode : 1 ,
204204 Err : "error decoding 'Ports': Invalid hostPort: -1" ,
@@ -220,7 +220,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
220220 })
221221
222222 // Install a Docker Application Package with an existing failed installation is fine
223- cmd .Command = dockerCli .Command ("app" , "install " , "testdata/simple/simple.dockerapp" , "--name" , appName )
223+ cmd .Command = dockerCli .Command ("app" , "run " , "testdata/simple/simple.dockerapp" , "--name" , appName )
224224 checkContains (t , icmd .RunCmd (cmd ).Assert (t , icmd .Success ).Combined (),
225225 []string {
226226 fmt .Sprintf ("WARNING: installing over previously failed installation %q" , appName ),
@@ -240,7 +240,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
240240 })
241241
242242 // Installing again the same application is forbidden
243- cmd .Command = dockerCli .Command ("app" , "install " , "testdata/simple/simple.dockerapp" , "--name" , appName )
243+ cmd .Command = dockerCli .Command ("app" , "run " , "testdata/simple/simple.dockerapp" , "--name" , appName )
244244 icmd .RunCmd (cmd ).Assert (t , icmd.Expected {
245245 ExitCode : 1 ,
246246 Err : fmt .Sprintf ("Installation %q already exists, use 'docker app upgrade' instead" , appName ),
@@ -307,7 +307,7 @@ func TestCredentials(t *testing.T) {
307307
308308 t .Run ("missing" , func (t * testing.T ) {
309309 cmd .Command = dockerCli .Command (
310- "app" , "install " ,
310+ "app" , "run " ,
311311 "--credential" , "secret1=foo" ,
312312 // secret2 deliberately omitted.
313313 "--credential" , "secret3=baz" ,
@@ -322,7 +322,7 @@ func TestCredentials(t *testing.T) {
322322
323323 t .Run ("full" , func (t * testing.T ) {
324324 cmd .Command = dockerCli .Command (
325- "app" , "install " ,
325+ "app" , "run " ,
326326 "--credential" , "secret1=foo" ,
327327 "--credential" , "secret2=bar" ,
328328 "--credential" , "secret3=baz" ,
@@ -334,7 +334,7 @@ func TestCredentials(t *testing.T) {
334334
335335 t .Run ("mixed-credstore" , func (t * testing.T ) {
336336 cmd .Command = dockerCli .Command (
337- "app" , "install " ,
337+ "app" , "run " ,
338338 "--credential-set" , "test-creds" ,
339339 "--credential" , "secret3=xyzzy" ,
340340 "--name" , "mixed-credstore" , bundle ,
@@ -345,7 +345,7 @@ func TestCredentials(t *testing.T) {
345345
346346 t .Run ("mixed-local-cred" , func (t * testing.T ) {
347347 cmd .Command = dockerCli .Command (
348- "app" , "install " ,
348+ "app" , "run " ,
349349 "--credential-set" , tmpDir .Join ("local" , "test-creds.yaml" ),
350350 "--credential" , "secret3=xyzzy" ,
351351 "--name" , "mixed-local-cred" , bundle ,
@@ -356,7 +356,7 @@ func TestCredentials(t *testing.T) {
356356
357357 t .Run ("overload" , func (t * testing.T ) {
358358 cmd .Command = dockerCli .Command (
359- "app" , "install " ,
359+ "app" , "run " ,
360360 "--credential-set" , "test-creds" ,
361361 "--credential" , "secret1=overload" ,
362362 "--credential" , "secret3=xyzzy" ,
0 commit comments