Exemplo n.º 1
0
    def test_must_return_location(self):

        data = {
            "Fn::Transform": {
                "Name": "AWS::Include",
                "Parameters": {
                    "Location": "s3://bucket/swagger.yaml"
                }
            }
        }

        expected = "s3://bucket/swagger.yaml"
        result = parse_aws_include_transform(data)

        self.assertEquals(result, expected)
Exemplo n.º 2
0
    def test_must_return_location(self):

        data = {
            "Fn::Transform": {
                "Name": "AWS::Include",
                "Parameters": {
                    "Location": "s3://bucket/swagger.yaml"
                }
            }
        }

        expected = "s3://bucket/swagger.yaml"
        result = parse_aws_include_transform(data)

        self.assertEquals(result, expected)
Exemplo n.º 3
0
 def test_invalid_aws_include_data(self, data):
     result = parse_aws_include_transform(data)
     self.assertIsNone(result)
Exemplo n.º 4
0
 def test_invalid_aws_include_data(self, data):
     result = parse_aws_include_transform(data)
     self.assertIsNone(result)