provider/aws: fixing security groups test

This commit is contained in:
Armon Dadgar 2014-07-28 13:13:50 -04:00
parent f6fa012e82
commit 8c69536b3b
1 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ func TestAccAWSSecurityGroup_normal(t *testing.T) {
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"aws_security_group.web", "ingress.0.cidr_blocks.#", "1"), "aws_security_group.web", "ingress.0.cidr_blocks.#", "1"),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"aws_security_group.web", "ingress.0.cidr_blocks.0", "10.0.0.0/0"), "aws_security_group.web", "ingress.0.cidr_blocks.0", "10.0.0.0/8"),
), ),
}, },
}, },
@ -77,7 +77,7 @@ func TestAccAWSSecurityGroup_vpc(t *testing.T) {
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"aws_security_group.web", "ingress.0.cidr_blocks.#", "1"), "aws_security_group.web", "ingress.0.cidr_blocks.#", "1"),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"aws_security_group.web", "ingress.0.cidr_blocks.0", "10.0.0.0/0"), "aws_security_group.web", "ingress.0.cidr_blocks.0", "10.0.0.0/8"),
testCheck, testCheck,
), ),
}, },
@ -163,7 +163,7 @@ func testAccCheckAWSSecurityGroupAttributes(group *ec2.SecurityGroupInfo) resour
FromPort: 80, FromPort: 80,
ToPort: 8000, ToPort: 8000,
Protocol: "tcp", Protocol: "tcp",
SourceIPs: []string{"10.0.0.0/0"}, SourceIPs: []string{"10.0.0.0/8"},
} }
if group.Name != "terraform_acceptance_test_example" { if group.Name != "terraform_acceptance_test_example" {
@ -195,7 +195,7 @@ resource "aws_security_group" "web" {
protocol = "tcp" protocol = "tcp"
from_port = 80 from_port = 80
to_port = 8000 to_port = 8000
cidr_blocks = ["10.0.0.0/0"] cidr_blocks = ["10.0.0.0/8"]
} }
} }
` `
@ -214,7 +214,7 @@ resource "aws_security_group" "web" {
protocol = "tcp" protocol = "tcp"
from_port = 80 from_port = 80
to_port = 8000 to_port = 8000
cidr_blocks = ["10.0.0.0/0"] cidr_blocks = ["10.0.0.0/8"]
} }
} }
` `