src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use this method to mock the retrieval of the status of a change set.  This scenario returns 1 change
         * without any details.
         *
         * @param describeChangeSetRequest contains the request to describe a change set request.
         * @return a response with the status of a change set request.
         */
Use this method to mock the retrieval of the status of a change set.  This scenario returns 1 change
without any details.

@param describeChangeSetRequest contains the request to describe a change set request.
@return a response with the status of a change set request.
Use this method to mock the retrieval of the status of a change set . This scenario returns 1 change without any details . @param describeChangeSetRequest contains the request to describe a change set request . @return a response with the status of a change set request .
@Override
        public CompletableFuture<DescribeChangeSetResponse> describeChangeSet(DescribeChangeSetRequest describeChangeSetRequest) {
            return CompletableFuture.supplyAsync(() -> {
                Assert.assertTrue(describeChangeSetRequest.stackName().equals("Test"));
                Collection<Change> changes = new ArrayList<>();
                Change change = Change.builder().build();
                changes.add(change);
                return DescribeChangeSetResponse.builder()
                        .changes(changes)
                        .status("CREATE_COMPLETE")
                        .stackId("arn:aws:cloudformation:us-east-1:1111:stack/Test/" +
                                UUID.randomUUID().toString()).build();
            });
        }
@ Override public CompletableFuture < DescribeChangeSetResponse > describeChangeSet ( DescribeChangeSetRequest describeChangeSetRequest ) { return CompletableFuture . supplyAsync ( ( ) -> { Assert . assertTrue ( describeChangeSetRequest . stackName ( ) . equals ( "Test" ) ) ; Collection < Change > changes = new ArrayList < > ( ) ; Change change = Change . builder ( ) . build ( ) ; changes . add ( change ) ; return DescribeChangeSetResponse . builder ( ) . changes ( changes ) . status ( "CREATE_COMPLETE" ) . stackId ( "arn:aws:cloudformation:us-east-1:1111:stack/Test/" + UUID . randomUUID ( ) . toString ( ) ) . build ( ) ; } ) ; }
Use this method to mock the retrieval of the status of a change set.
Use this method to mock the retrieval of the status of a change set .