Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
dependabot-1 Fixed test file names for azure InvalidResourceName s/ /_/
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebyl committed Jul 15, 2022
1 parent d366988 commit 12a3977
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,43 +80,43 @@ func TestPlugin(t *testing.T) {
success bool
}{
{
name: "existing mount",
name: "existing_mount",
mount: func(name string) []string {
return exampleFileTree(t, name, make([]byte, 1*1024))
},
success: true,
},
{
name: "non-existing mount",
name: "non-existing_mount",
mount: func(_ string) []string {
return []string{"idonotexist"}
},
success: false,
},
{
name: "empty mount",
name: "empty_mount",
mount: func(name string) []string {
return []string{exampleDir(t, name)}
},
success: true,
},
{
name: "existing mount with nested files",
name: "existing_mount_with_nested_files",
mount: func(name string) []string {
return exampleNestedFileTree(t, name, make([]byte, 1*1024))
},
success: true,
},
{
name: "existing mount with cache key",
name: "existing_mount_with_cache_key",
mount: func(name string) []string {
return exampleFileTree(t, name, make([]byte, 1*1024))
},
cacheKey: "{{ .Repo.Name }}_{{ .Commit.Branch }}_{{ .Build.Number }}",
success: true,
},
{
name: "existing mount with symlink",
name: "existing_mount_with_symlink",
mount: func(name string) []string {
return exampleFileTreeWithSymlinks(t, name, make([]byte, 1*1024))
},
Expand Down

0 comments on commit 12a3977

Please sign in to comment.