Skip to content

Commit

Permalink
test(kendra): rm kendra from func, const names
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennChia authored and anGie44 committed Jun 20, 2022
1 parent 53712f8 commit adddb85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/service/kendra/index_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ func TestAccKendraIndexDataSource_basic(t *testing.T) {
ProviderFactories: acctest.ProviderFactories,
Steps: []resource.TestStep{
{
Config: testAccKendraIndexDataSourceConfig_nonExistent,
Config: testAccIndexDataSourceConfig_nonExistent,
ExpectError: regexp.MustCompile(`error getting Kendra Index`),
},
{
Config: testAccKendraIndexDataSourceConfig_userTokenJSON(rName, rName2, rName3),
Config: testAccIndexDataSourceConfig_userTokenJSON(rName, rName2, rName3),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair(datasourceName, "arn", resourceName, "arn"),
resource.TestCheckResourceAttrPair(datasourceName, "capacity_units.#", resourceName, "capacity_units.#"),
Expand Down Expand Up @@ -65,13 +65,13 @@ func TestAccKendraIndexDataSource_basic(t *testing.T) {
})
}

const testAccKendraIndexDataSourceConfig_nonExistent = `
const testAccIndexDataSourceConfig_nonExistent = `
data "aws_kendra_index" "test" {
id = "tf-acc-test-does-not-exist-kendra-id"
}
`

func testAccKendraIndexDataSourceConfig_userTokenJSON(rName, rName2, rName3 string) string {
func testAccIndexDataSourceConfig_userTokenJSON(rName, rName2, rName3 string) string {
return acctest.ConfigCompose(
testAccIndexConfigBase(rName, rName2),
fmt.Sprintf(`
Expand Down

0 comments on commit adddb85

Please sign in to comment.