コード例 #1
0
    def test_example_network(self):
        blueprint_path = \
            'examples/blueprint-examples/' \
            'aws-example-network/blueprint.yaml'
        blueprint_id = 'example-network-{0}'.format(
            self.application_prefix)
        aws_nodes = [
            'nat_gateway',
            'nat_gateway_ip',
            'private_subnet_routetable',
            'public_subnet_routetable',
            'private_subnet',
            'public_subnet',
            'internet_gateway',
            'vpc'
        ]

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment,
                        blueprint_id,
                        aws_nodes)

        utils.check_deployment(
            blueprint_path,
            blueprint_id,
            self.node_type_prefix,
            aws_nodes,
            self.check_resources_in_deployment_created,
            self.check_resources_in_deployment_deleted
        )
コード例 #2
0
    def test_example_network(self):
        blueprint_path = \
            'examples/blueprint-examples/' \
            'aws-example-network/blueprint.yaml'
        blueprint_id = 'example-network-{0}'.format(
            self.application_prefix)
        aws_nodes = [
            'nat_gateway',
            'nat_gateway_ip',
            'private_subnet_routetable',
            'public_subnet_routetable',
            'private_subnet',
            'public_subnet',
            'internet_gateway',
            'vpc'
        ]

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment,
                        blueprint_id,
                        aws_nodes)

        utils.check_deployment(
            blueprint_path,
            blueprint_id,
            self.node_type_prefix,
            aws_nodes,
            self.check_resources_in_deployment_created,
            self.check_resources_in_deployment_deleted
        )
コード例 #3
0
 def test_s3(self):
     blueprint_path = 'examples/s3-feature-demo/blueprint.yaml'
     blueprint_id = 's3-{0}'.format(self.application_prefix)
     s3_nodes = ['bucket']
     utils.check_deployment(blueprint_path, blueprint_id,
                            self.node_type_prefix, s3_nodes,
                            self.check_resources_in_deployment_created,
                            self.check_resources_in_deployment_deleted)
コード例 #4
0
    def test_cfn_stack(self):
        blueprint_path = 'examples/cloudformation-feature-demo/blueprint.yaml'
        blueprint_id = 'cfn-{0}'.format(self.application_prefix)
        cfn_nodes = ['wordpress_example', 'HelloBucket']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment, blueprint_id, cfn_nodes)

        utils.check_deployment(blueprint_path, blueprint_id,
                               self.node_type_prefix, cfn_nodes,
                               self.check_resources_in_deployment_created,
                               self.check_resources_in_deployment_deleted)
コード例 #5
0
    def test_sqs_sns(self):
        blueprint_path = 'examples/sns-feature-demo/blueprint.yaml'
        blueprint_id = 'sqs-{0}'.format(self.application_prefix)
        sns_nodes = ['queue', 'topic']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment, blueprint_id, sns_nodes)

        utils.check_deployment(blueprint_path, blueprint_id,
                               self.node_type_prefix, sns_nodes,
                               self.check_resources_in_deployment_created,
                               self.check_resources_in_deployment_deleted)
コード例 #6
0
    def test_autoscaling(self):
        blueprint_path = 'examples/autoscaling-feature-demo/test.yaml'
        blueprint_id = 'autoscaling-{0}'.format(self.application_prefix)
        autoscaling_nodes = ['autoscaling_group']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment, blueprint_id,
                        autoscaling_nodes)

        utils.check_deployment(blueprint_path, blueprint_id,
                               self.node_type_prefix, autoscaling_nodes,
                               self.check_resources_in_deployment_created,
                               self.check_resources_in_deployment_deleted)
コード例 #7
0
    def test_cfn_stack(self):
        blueprint_path = 'examples/cloudformation-feature-demo/blueprint.yaml'
        blueprint_id = 'cfn-{0}'.format(self.application_prefix)
        cfn_nodes = ['wordpress_example', 'HelloBucket']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment, blueprint_id, cfn_nodes)

        utils.check_deployment(
            blueprint_path,
            blueprint_id,
            self.node_type_prefix,
            cfn_nodes,
            self.check_resources_in_deployment_created,
            self.check_resources_in_deployment_deleted
        )
コード例 #8
0
    def test_s3(self):
        blueprint_path = 'examples/s3-feature-demo/blueprint.yaml'
        blueprint_id = 's3-{0}'.format(self.application_prefix)
        s3_nodes = ['bucket']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment, blueprint_id, s3_nodes)

        utils.check_deployment(
            blueprint_path,
            blueprint_id,
            self.node_type_prefix,
            s3_nodes,
            self.check_resources_in_deployment_created,
            self.check_resources_in_deployment_deleted
        )
コード例 #9
0
    def test_autoscaling(self):
        blueprint_path = 'examples/autoscaling-feature-demo/test.yaml'
        blueprint_id = 'autoscaling-{0}'.format(self.application_prefix)
        autoscaling_nodes = ['autoscaling_group']

        # Prepare to call clean up method whenever test pass/fail
        self.addCleanup(self.remove_deployment,
                        blueprint_id,
                        autoscaling_nodes)

        utils.check_deployment(
            blueprint_path,
            blueprint_id,
            self.node_type_prefix,
            autoscaling_nodes,
            self.check_resources_in_deployment_created,
            self.check_resources_in_deployment_deleted
        )