Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data_source/aws_ecr_lifecycle_policy_document: adding new data source for ECR #6133

Closed
Prev Previous commit
Next Next commit
fixing acc test
  • Loading branch information
slapula committed Oct 12, 2018
commit c3c906d7d919f59d9ae4d952d660ca2a73665526
24 changes: 14 additions & 10 deletions aws/data_source_aws_ecr_lifecycle_policy_document_test.go
Original file line number Diff line number Diff line change
@@ -52,11 +52,13 @@ var testAccAWSEcrLifecyclePolicyDocumentConfig = `
data "aws_ecr_lifecycle_policy_document" "test" {
rule {
priority = 1
description = "This is a test."
tag_status = "tagged"
tag_prefix_list = ["prod"]
count_type = "imageCountMoreThan"
count_number = 100
description = "This is a test."
slapula marked this conversation as resolved.
Show resolved Hide resolved
selection = {
tag_status = "tagged"
tag_prefix_list = ["prod"]
count_type = "imageCountMoreThan"
count_number = 100
}
}
}
`
@@ -66,15 +68,17 @@ var testAccAWSEcrLifecyclePolicyDocumentExpectedJSON = `{
{
"rulePriority": 1,
"description": "This is a test.",
"selection": [
"selection": {
"tagStatus": "tagged",
"tagPrefixList": ["prod"],
"tagPrefixList": [
"prod"
],
"countType": "imageCountMoreThan",
"countNumber": 100
],
"action": [
},
"action": {
"type": "expire"
]
}
}
]
}`