@@ -1200,7 +1200,7 @@ void testAddWithAutoStartAndWait(OutputType format, MockServerClient mock){
12001200
12011201 @ ParameterizedTest
12021202 @ EnumSource (OutputType .class )
1203- void testStartAsNew (OutputType format , MockServerClient mock ) throws JsonProcessingException {
1203+ void testAddAsNew (OutputType format , MockServerClient mock ) throws JsonProcessingException {
12041204
12051205 mock .when (
12061206 request ().withMethod ("GET" ).withPath ("/user-info" ), exactly (2 )
@@ -1236,7 +1236,7 @@ void testStartAsNew(OutputType format, MockServerClient mock) throws JsonProcess
12361236 response ().withStatusCode (200 ).withBody (loadResource ("studios/studios_start_as_new_response" )).withContentType (MediaType .APPLICATION_JSON )
12371237 );
12381238
1239- ExecOut out = exec (format , mock , "studios" , "start -as-new" , "-pid" , "3e8370e7" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--cpu" , "4" );
1239+ ExecOut out = exec (format , mock , "studios" , "add -as-new" , "-pid" , "3e8370e7" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--cpu" , "4" );
12401240
12411241 assertOutput (format , out , new StudiosCreated ("8aebf1b8" ,75887156211589L , "[organization1 / workspace1]" ,
12421242 "http://localhost:" +mock .getPort ()+"/orgs/organization1/workspaces/workspace1" , false ));
@@ -1297,7 +1297,7 @@ void testStartAsNew(OutputType format, MockServerClient mock) throws JsonProcess
12971297
12981298 @ ParameterizedTest
12991299 @ EnumSource (OutputType .class )
1300- void testStartAsNewUsingParentName (OutputType format , MockServerClient mock ) {
1300+ void testAddAsNewUsingParentName (OutputType format , MockServerClient mock ) {
13011301
13021302 mock .when (
13031303 request ().withMethod ("GET" ).withPath ("/user-info" ), exactly (2 )
@@ -1339,15 +1339,15 @@ void testStartAsNewUsingParentName(OutputType format, MockServerClient mock) {
13391339 response ().withStatusCode (200 ).withBody (loadResource ("studios/studios_start_as_new_response" )).withContentType (MediaType .APPLICATION_JSON )
13401340 );
13411341
1342- ExecOut out = exec (format , mock , "studios" , "start -as-new" , "-pn" , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--cpu" , "4" );
1342+ ExecOut out = exec (format , mock , "studios" , "add -as-new" , "-pn" , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--cpu" , "4" );
13431343
13441344 assertOutput (format , out , new StudiosCreated ("8aebf1b8" , 75887156211589L , "[organization1 / workspace1]" ,
13451345 "http://localhost:" +mock .getPort ()+"/orgs/organization1/workspaces/workspace1" , false ));
13461346 }
13471347
13481348 @ ParameterizedTest
13491349 @ EnumSource (OutputType .class )
1350- void testStartAsNewUsingParentCheckpointId (OutputType format , MockServerClient mock ) {
1350+ void testAddAsNewUsingParentCheckpointId (OutputType format , MockServerClient mock ) {
13511351
13521352 mock .when (
13531353 request ().withMethod ("GET" ).withPath ("/user-info" ), exactly (2 )
@@ -1387,15 +1387,15 @@ void testStartAsNewUsingParentCheckpointId(OutputType format, MockServerClient m
13871387 response ().withStatusCode (200 ).withBody (loadResource ("studios/studios_start_as_new_response" )).withContentType (MediaType .APPLICATION_JSON )
13881388 );
13891389
1390- ExecOut out = exec (format , mock , "studios" , "start -as-new" , "-pn" , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--parent-checkpoint-id" , "1" );
1390+ ExecOut out = exec (format , mock , "studios" , "add -as-new" , "-pn" , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--parent-checkpoint-id" , "1" );
13911391
13921392 assertOutput (format , out , new StudiosCreated ("8aebf1b8" , 75887156211589L , "[organization1 / workspace1]" ,
13931393 "http://localhost:" +mock .getPort ()+"/orgs/organization1/workspaces/workspace1" , false ));
13941394 }
13951395
13961396 @ ParameterizedTest
13971397 @ EnumSource (OutputType .class )
1398- void testStartAsNewThrowsInvalidDataStudioParentCheckpointException (OutputType format , MockServerClient mock ) {
1398+ void testAddAsNewThrowsInvalidDataStudioParentCheckpointException (OutputType format , MockServerClient mock ) {
13991399
14001400 mock .when (
14011401 request ().withMethod ("GET" ).withPath ("/user-info" ), exactly (2 )
@@ -1437,7 +1437,7 @@ void testStartAsNewThrowsInvalidDataStudioParentCheckpointException(OutputType f
14371437 response ().withStatusCode (200 ).withBody (loadResource ("studios/studios_start_as_new_response" )).withContentType (MediaType .APPLICATION_JSON )
14381438 );
14391439
1440- ExecOut out = exec (format , mock , "studios" , "start -as-new" , "-pn " , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--parent-checkpoint-id" , "1111" );
1440+ ExecOut out = exec (format , mock , "studios" , "add -as-new" , "--parent-name " , "studio-a66d" , "-n" , "child-studio-a66d" , "-w" , "75887156211589" , "--parent-checkpoint-id" , "1111" );
14411441
14421442 assertEquals (errorMessage (out .app , new InvalidDataStudioParentCheckpointException ("1111" )), out .stdErr );
14431443 assertEquals ("" , out .stdOut );
0 commit comments