fail -> not match

This commit is contained in:
Shreyas Goenka 2024-09-27 12:55:54 +02:00
parent 65ad2f0557
commit b4bd47f4ba
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
13 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ func TestProcessInclude(t *testing.T) {
assert.Equal(t, "bar", b.Config.Workspace.Host) assert.Equal(t, "bar", b.Config.Workspace.Host)
} }
func TestProcessIncludeFormatPass(t *testing.T) { func TestProcessIncludeFormatMatch(t *testing.T) {
for _, fileName := range []string{ for _, fileName := range []string{
"one_job.job.yml", "one_job.job.yml",
"one_pipeline.pipeline.yaml", "one_pipeline.pipeline.yaml",
@ -46,7 +46,7 @@ func TestProcessIncludeFormatPass(t *testing.T) {
} { } {
t.Run(fileName, func(t *testing.T) { t.Run(fileName, func(t *testing.T) {
b := &bundle.Bundle{ b := &bundle.Bundle{
RootPath: "testdata/format_pass", RootPath: "testdata/format_match",
Config: config.Root{ Config: config.Root{
Bundle: config.Bundle{ Bundle: config.Bundle{
Name: "format_test", Name: "format_test",
@ -61,7 +61,7 @@ func TestProcessIncludeFormatPass(t *testing.T) {
} }
} }
func TestProcessIncludeFormatFail(t *testing.T) { func TestProcessIncludeFormatNotMatch(t *testing.T) {
for fileName, expectedDiags := range map[string]diag.Diagnostics{ for fileName, expectedDiags := range map[string]diag.Diagnostics{
"single_job.pipeline.yaml": { "single_job.pipeline.yaml": {
{ {
@ -201,7 +201,7 @@ func TestProcessIncludeFormatFail(t *testing.T) {
} { } {
t.Run(fileName, func(t *testing.T) { t.Run(fileName, func(t *testing.T) {
b := &bundle.Bundle{ b := &bundle.Bundle{
RootPath: "testdata/format_fail", RootPath: "testdata/format_not_match",
Config: config.Root{ Config: config.Root{
Bundle: config.Bundle{ Bundle: config.Bundle{
Name: "format_test", Name: "format_test",