mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add acceptance test
=== RUN TestAccAWSRoute53Record_weighted --- PASS: TestAccAWSRoute53Record_weighted (249.19s)
This commit is contained in:
parent
a0d9a4c96f
commit
44f2d85de8
@ -133,6 +133,7 @@ func TestAccAWSRoute53Record_weighted(t *testing.T) {
|
||||
Check: resource.ComposeTestCheckFunc(
|
||||
testAccCheckRoute53RecordExists("aws_route53_record.www-dev"),
|
||||
testAccCheckRoute53RecordExists("aws_route53_record.www-live"),
|
||||
testAccCheckRoute53RecordExists("aws_route53_record.www-off"),
|
||||
),
|
||||
},
|
||||
},
|
||||
@ -407,6 +408,16 @@ resource "aws_route53_record" "www-live" {
|
||||
set_identifier = "live"
|
||||
records = ["dev.notexample.com"]
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "www-off" {
|
||||
zone_id = "${aws_route53_zone.main.zone_id}"
|
||||
name = "www"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
weight = 0
|
||||
set_identifier = "off"
|
||||
records = ["dev.notexample.com"]
|
||||
}
|
||||
`
|
||||
|
||||
const testAccRoute53ElbAliasRecord = `
|
||||
|
Loading…
Reference in New Issue
Block a user