Skip to content

Commit

Permalink
Changing name from generic to Auth0-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
willvedd committed Aug 7, 2023
1 parent 4fa621b commit bb28c74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cli/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func createImportFile(importResources []ImportResource, outputDirectory string)
return fmt.Errorf("specified directory %s does not exists", outputDirectory)
}

filePath := path.Join(outputDirectory, "import.tf")
filePath := path.Join(outputDirectory, "auth0_import.tf")

file, err := os.Create(filePath)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/terraform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func TestGenerateCreateImportFile(t *testing.T) {
ResourceName: "auth0_connection.email",
}}, tmpDir)
assert.NoError(t, err)
assert.FileExists(t, path.Join(tmpDir, "import.tf"))
fileContents, err := os.ReadFile(path.Join(tmpDir, "import.tf"))
assert.FileExists(t, path.Join(tmpDir, "auth0_import.tf"))
fileContents, err := os.ReadFile(path.Join(tmpDir, "auth0_import.tf"))
assert.NoError(t, err)
assert.Equal(t, string(fileContents),
`# This file automatically generated via the Auth0 CLI.
Expand Down

0 comments on commit bb28c74

Please sign in to comment.