check resource data for base64 encoded string

This commit is contained in:
clint shryock 2016-04-13 10:44:26 -05:00
parent 012d06489f
commit 2830558bc9
1 changed files with 5 additions and 0 deletions

View File

@ -291,6 +291,10 @@ func TestAccAWSInstance_vpc(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckInstanceExists(
"aws_instance.foo", &v),
resource.TestCheckResourceAttr(
"aws_instance.foo",
"user_data",
"2fad308761514d9d73c3c7fdc877607e06cf950d"),
),
},
},
@ -825,6 +829,7 @@ resource "aws_instance" "foo" {
subnet_id = "${aws_subnet.foo.id}"
associate_public_ip_address = true
tenancy = "dedicated"
# pre-encoded base64 data
user_data = "3dc39dda39be1205215e776bad998da361a5955d"
}
`