src/integration-test/java/GreengrassBuildWithDockerDeploymentsIT.java
@Test
    public void shouldFailToRedeployWithoutCreatingNewKeysWithPython3FunctionWithDocker() {
        // Make sure we have a fresh group, not one reused from another test
        Optional<GreengrassGroupName> name = Optional.of(ImmutableGreengrassGroupName.builder().groupName(ioHelper.getUuid()).build());

        // Expect that the first container does not return an error
        GenericContainer genericContainer = runContainer(greengrassITShared.getPython3HelloWorldDeploymentCommandWithoutForceNewKeys(name), EXIT_CODE_IS_ZERO);

        // Stop the first container
        genericContainer.stop();

        // Expect that the second container returns an error
        runContainer(greengrassITShared.getPython3HelloWorldDeploymentCommandWithoutForceNewKeys(name), EXIT_CODE_IS_ZERO);
    }
// Test set 10: Expect success redeploying group without being able to create new keys with Python 3 Hello World with Docker
Test set 10: Expect success redeploying group without being able to create new keys with Python 3 Hello World with Docker
Test set 10 : Expect success redeploying group without being able to create new keys with Python 3 Hello World with Docker
@Test
    public void shouldFailToRedeployWithoutCreatingNewKeysWithPython3FunctionWithDocker() {
        Optional<GreengrassGroupName> name = Optional.of(ImmutableGreengrassGroupName.builder().groupName(ioHelper.getUuid()).build());
        GenericContainer genericContainer = runContainer(greengrassITShared.getPython3HelloWorldDeploymentCommandWithoutForceNewKeys(name), EXIT_CODE_IS_ZERO);
        genericContainer.stop();
        runContainer(greengrassITShared.getPython3HelloWorldDeploymentCommandWithoutForceNewKeys(name), EXIT_CODE_IS_ZERO);
    }
@ Test public void shouldFailToRedeployWithoutCreatingNewKeysWithPython3FunctionWithDocker ( ) { Optional < GreengrassGroupName > name = Optional . of ( ImmutableGreengrassGroupName . builder ( ) . groupName ( ioHelper . getUuid ( ) ) . build ( ) ) ; GenericContainer genericContainer = runContainer ( greengrassITShared . getPython3HelloWorldDeploymentCommandWithoutForceNewKeys ( name ) , EXIT_CODE_IS_ZERO ) ; genericContainer . stop ( ) ; runContainer ( greengrassITShared . getPython3HelloWorldDeploymentCommandWithoutForceNewKeys ( name ) , EXIT_CODE_IS_ZERO ) ; }
Test set 10: Expect success redeploying group without being able to create new keys with Python 3 Hello World with Docker
Test set 10 : Expect success redeploying group without being able to create new keys with Python 3 Hello World with Docker
// Make sure we have a fresh group, not one reused from another test // Expect that the first container does not return an error // Stop the first container // Expect that the second container returns an error