Skip to content

Commit

Permalink
debug terraform file
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Nov 28, 2023
1 parent 8c546b4 commit f1f0a82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/service/project/data_source_projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAccProjectDSProjects_basic(t *testing.T) {
ProtoV6ProviderFactories: acc.TestAccProviderV6Factories,
Steps: []resource.TestStep{
{
Config: testAccMongoDBAtlasProjectsConfigWithDS(projectName, orgID,
Config: testAccMongoDBAtlasProjectsConfigWithDS(t, projectName, orgID,
[]*matlas.ProjectTeam{
{
TeamID: acc.GetProjectTeamsIds(0),
Expand Down Expand Up @@ -87,11 +87,13 @@ func TestAccProjectDSProjects_withPagination(t *testing.T) {
})
}

func testAccMongoDBAtlasProjectsConfigWithDS(projectName, orgID string, teams []*matlas.ProjectTeam) string {
func testAccMongoDBAtlasProjectsConfigWithDS(t *testing.T, projectName, orgID string, teams []*matlas.ProjectTeam) string {
config := fmt.Sprintf(`
%s
data "mongodbatlas_projects" "test" {}
`, acc.ConfigProject(projectName, orgID, teams))

t.Logf("TERRAFORM FILE:%s\nEND\n", config)
return config
}

Expand Down

0 comments on commit f1f0a82

Please sign in to comment.