@@ -22,12 +22,10 @@ func TestAccShippingZoneRate_createAndUpdate(t *testing.T) {
22
22
CheckDestroy : testAccCheckShippingZoneRateDestroy ,
23
23
Steps : []resource.TestStep {
24
24
{
25
- Config : testAccShippingZoneRateConfig (taxCategoryName , shippingMethodName , "EUR" ),
25
+ Config : testAccShippingZoneRateCreate (taxCategoryName , shippingMethodName , "EUR" ),
26
26
Check : resource .ComposeTestCheckFunc (
27
27
resource .TestCheckResourceAttr (resourceName , "price.0.cent_amount" , "5000" ),
28
28
resource .TestCheckResourceAttr (resourceName , "price.0.currency_code" , "EUR" ),
29
- resource .TestCheckResourceAttr (resourceName , "free_above.0.cent_amount" , "50000" ),
30
- resource .TestCheckResourceAttr (resourceName , "free_above.0.currency_code" , "EUR" ),
31
29
resource .TestCheckResourceAttr (resourceName , "shipping_rate_price_tier.#" , "2" ),
32
30
resource .TestCheckResourceAttr (resourceName , "shipping_rate_price_tier.0.type" , "CartValue" ),
33
31
resource .TestCheckResourceAttr (resourceName , "shipping_rate_price_tier.0.minimum_cent_amount" , "5000" ),
@@ -60,7 +58,7 @@ func TestAccShippingZoneRate_createAndUpdate(t *testing.T) {
60
58
})
61
59
}
62
60
63
- func testAccShippingZoneRateConfig (taxCategoryName string , shippingMethodName string , currencyCode string ) string {
61
+ func testAccShippingZoneRateCreate (taxCategoryName string , shippingMethodName string , currencyCode string ) string {
64
62
return hclTemplate (`
65
63
resource "commercetools_tax_category" "standard" {
66
64
name = "{{ .taxCategoryName }}"
@@ -93,11 +91,6 @@ func testAccShippingZoneRateConfig(taxCategoryName string, shippingMethodName st
93
91
currency_code = "{{ .currencyCode }}"
94
92
}
95
93
96
- free_above {
97
- cent_amount = 50000
98
- currency_code = "{{ .currencyCode }}"
99
- }
100
-
101
94
shipping_rate_price_tier {
102
95
type = "CartValue"
103
96
minimum_cent_amount = 5000
0 commit comments