@@ -29,7 +29,7 @@ func TestAccCECostCategory_basic(t *testing.T) {
2929 ErrorCheck : acctest .ErrorCheck (t , costexplorer .EndpointsID ),
3030 Steps : []resource.TestStep {
3131 {
32- Config : testAccCostCategoryConfig (rName ),
32+ Config : testAccCostCategoryConfig_basic (rName ),
3333 Check : resource .ComposeTestCheckFunc (
3434 testAccCheckCostCategoryExists (resourceName , & output ),
3535 resource .TestCheckResourceAttr (resourceName , "name" , rName ),
@@ -56,14 +56,14 @@ func TestAccCECostCategory_complete(t *testing.T) {
5656 ErrorCheck : acctest .ErrorCheck (t , costexplorer .EndpointsID ),
5757 Steps : []resource.TestStep {
5858 {
59- Config : testAccCostCategoryConfig (rName ),
59+ Config : testAccCostCategoryConfig_basic (rName ),
6060 Check : resource .ComposeTestCheckFunc (
6161 testAccCheckCostCategoryExists (resourceName , & output ),
6262 resource .TestCheckResourceAttr (resourceName , "name" , rName ),
6363 ),
6464 },
6565 {
66- Config : testAccCostCategoryOperandAndConfig (rName ),
66+ Config : testAccCostCategoryConfig_operandAnd (rName ),
6767 Check : resource .ComposeTestCheckFunc (
6868 testAccCheckCostCategoryExists (resourceName , & output ),
6969 resource .TestCheckResourceAttr (resourceName , "name" , rName ),
@@ -90,14 +90,14 @@ func TestAccCECostCategory_splitCharge(t *testing.T) {
9090 ErrorCheck : acctest .ErrorCheck (t , costexplorer .EndpointsID ),
9191 Steps : []resource.TestStep {
9292 {
93- Config : testAccCostCategorySplitChargesConfig (rName , "PROPORTIONAL" ),
93+ Config : testAccCostCategoryConfig_splitCharges (rName , "PROPORTIONAL" ),
9494 Check : resource .ComposeTestCheckFunc (
9595 testAccCheckCostCategoryExists (resourceName , & output ),
9696 resource .TestCheckResourceAttr (resourceName , "name" , rName ),
9797 ),
9898 },
9999 {
100- Config : testAccCostCategorySplitChargesConfig (rName , "EVEN" ),
100+ Config : testAccCostCategoryConfig_splitCharges (rName , "EVEN" ),
101101 Check : resource .ComposeTestCheckFunc (
102102 testAccCheckCostCategoryExists (resourceName , & output ),
103103 resource .TestCheckResourceAttr (resourceName , "name" , rName ),
@@ -124,7 +124,7 @@ func TestAccCECostCategory_disappears(t *testing.T) {
124124 ErrorCheck : acctest .ErrorCheck (t , costexplorer .EndpointsID ),
125125 Steps : []resource.TestStep {
126126 {
127- Config : testAccCostCategoryConfig (rName ),
127+ Config : testAccCostCategoryConfig_basic (rName ),
128128 Check : resource .ComposeTestCheckFunc (
129129 testAccCheckCostCategoryExists (resourceName , & output ),
130130 acctest .CheckResourceDisappears (acctest .Provider , tfce .ResourceCostCategory (), resourceName ),
@@ -186,7 +186,7 @@ func testAccCheckCostCategoryDestroy(s *terraform.State) error {
186186
187187}
188188
189- func testAccCostCategoryConfig (rName string ) string {
189+ func testAccCostCategoryConfig_basic (rName string ) string {
190190 return fmt .Sprintf (`
191191resource "aws_ce_cost_category" "test" {
192192 name = %[1]q
@@ -228,7 +228,7 @@ resource "aws_ce_cost_category" "test" {
228228` , rName )
229229}
230230
231- func testAccCostCategoryOperandAndConfig (rName string ) string {
231+ func testAccCostCategoryConfig_operandAnd (rName string ) string {
232232 return fmt .Sprintf (`
233233resource "aws_ce_cost_category" "test" {
234234 name = %[1]q
@@ -264,7 +264,7 @@ resource "aws_ce_cost_category" "test" {
264264` , rName )
265265}
266266
267- func testAccCostCategorySplitChargesConfig (rName , method string ) string {
267+ func testAccCostCategoryConfig_splitCharges (rName , method string ) string {
268268 return fmt .Sprintf (`
269269resource "aws_ce_cost_category" "test1" {
270270 name = "%[1]s-1"
0 commit comments