Skip to content

Commit

Permalink
revert changes of aws_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ideahitme committed Apr 6, 2017
1 parent 6739848 commit 1ae6188
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provider/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ func TestAWSCreateRecordsCNAME(t *testing.T) {
t.Fatal(err)
}

records := []*endpoint.Endpoint{{DNSName: "create-test.ext-dns-test.teapot.zalan.do.", Target: "foo.elb.amazonaws.com."}}
records := []*endpoint.Endpoint{{DNSName: "create-test.ext-dns-test.teapot.zalan.do.", Target: "foo.elb.amazonaws.com"}}

err = provider.CreateRecords("ext-dns-test.teapot.zalan.do.", records)
if err != nil {
Expand Down Expand Up @@ -978,21 +978,21 @@ func TestAWSApplyCNAME(t *testing.T) {
}

if !found {
t.Fatal("update-test.ext-dns-test.teapot.zalan.do. should point to bar.elb.amazonaws.com.")
t.Fatal("update-test.ext-dns-test.teapot.zalan.do. should point to bar.elb.amazonaws.com")
}

found = false

for _, r := range records {
if r.DNSName == "update-test.ext-dns-test.teapot.zalan.do." {
if r.Target == "foo.elb.amazonaws.com." {
if r.Target == "foo.elb.amazonaws.com" {
found = true
}
}
}

if found {
t.Fatal("update-test.ext-dns-test.teapot.zalan.do. should point to bar.elb.amazonaws.com.")
t.Fatal("update-test.ext-dns-test.teapot.zalan.do. should point to bar.elb.amazonaws.com")
}

// delete validation
Expand Down

0 comments on commit 1ae6188

Please sign in to comment.