Skip to content

Commit

Permalink
Update test unicode domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jul 16, 2019
1 parent 37454bd commit 9e7c741
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cloudflare/resource_cloudflare_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func TestAccZoneWithUnicodeIsStoredAsUnicode(t *testing.T) {
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testZoneConfig("tf-acc-unicode-test-1", "zajęzyk.pl", "true", "false"),
Config: testZoneConfig("tf-acc-unicode-test-1", "żółw.cfapi.net", "true", "false"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(name, "zone", "zajęzyk.pl"),
resource.TestCheckResourceAttr(name, "zone", "żółw.cfapi.net"),
resource.TestCheckResourceAttr(name, "paused", "true"),
resource.TestCheckResourceAttr(name, "name_servers.#", "2"),
resource.TestCheckResourceAttr(name, "plan", planIDFree),
Expand All @@ -87,9 +87,9 @@ func TestAccZoneWithoutUnicodeIsStoredAsUnicode(t *testing.T) {
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testZoneConfig("tf-acc-unicode-test-2", "xn--zajzyk-y4a.pl", "true", "false"),
Config: testZoneConfig("tf-acc-unicode-test-2", "xn--w-uga1v8h.cfapi.net", "true", "false"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(name, "zone", "zajęzyk.pl"),
resource.TestCheckResourceAttr(name, "zone", "żółw.cfapi.net"),
resource.TestCheckResourceAttr(name, "paused", "true"),
resource.TestCheckResourceAttr(name, "name_servers.#", "2"),
resource.TestCheckResourceAttr(name, "plan", planIDFree),
Expand All @@ -108,20 +108,20 @@ func TestAccZonePerformsUnicodeComparison(t *testing.T) {
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testZoneConfig("tf-acc-unicode-test-3", "zajęzyk.pl", "true", "false"),
Config: testZoneConfig("tf-acc-unicode-test-3", "żółw.cfapi.net", "true", "false"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(name, "zone", "zajęzyk.pl"),
resource.TestCheckResourceAttr(name, "zone", "żółw.cfapi.net"),
resource.TestCheckResourceAttr(name, "paused", "true"),
resource.TestCheckResourceAttr(name, "name_servers.#", "2"),
resource.TestCheckResourceAttr(name, "plan", planIDFree),
resource.TestCheckResourceAttr(name, "type", "full"),
),
},
{
Config: testZoneConfig("tf-acc-unicode-test-3", "xn--zajzyk-y4a.pl", "true", "false"),
Config: testZoneConfig("tf-acc-unicode-test-3", "xn--w-uga1v8h.cfapi.net", "true", "false"),
PlanOnly: true,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(name, "zone", "zajęzyk.pl"),
resource.TestCheckResourceAttr(name, "zone", "żółw.cfapi.net"),
resource.TestCheckResourceAttr(name, "paused", "true"),
resource.TestCheckResourceAttr(name, "name_servers.#", "2"),
resource.TestCheckResourceAttr(name, "plan", planIDFree),
Expand Down Expand Up @@ -204,7 +204,7 @@ func TestPlanIDFallsBackToEmptyIfUnknown(t *testing.T) {
func testZoneConfigWithPartialSetup(resourceID, zoneName, paused, jumpStart, plan string) string {
return fmt.Sprintf(`
resource "cloudflare_zone" "%[1]s" {
zone = "%[2]s"
zone = "%[2]s"
paused = %[3]s
jump_start = %[4]s
plan = "%[5]s"
Expand All @@ -215,7 +215,7 @@ func testZoneConfigWithPartialSetup(resourceID, zoneName, paused, jumpStart, pla
func testZoneConfigWithExplicitFullSetup(resourceID, zoneName, paused, jumpStart, plan string) string {
return fmt.Sprintf(`
resource "cloudflare_zone" "%[1]s" {
zone = "%[2]s"
zone = "%[2]s"
paused = %[3]s
jump_start = %[4]s
plan = "%[5]s"
Expand Down

0 comments on commit 9e7c741

Please sign in to comment.