Skip to content

Commit a9ea0fb

Browse files
refactor: importer
Signed-off-by: Tagscherer Ádám <adam.tagscherer@gmail.com>
1 parent 540777d commit a9ea0fb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/e2e/local/06_import_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ var _ = ginkgo.Describe("Running dirctl end-to-end tests for the import command"
3737
// Verify command failed
3838
gomega.Expect(err).To(gomega.HaveOccurred())
3939

40-
// Verify error message indicates enrichment is mandatory
41-
// The error message is in the wrapped error, not the output (stderr vs stdout)
42-
gomega.Expect(err.Error()).To(gomega.ContainSubstring("enrichment is mandatory"))
40+
// Enricher init fails when mcphost config is missing/invalid; errors are wrapped by CLI and importer.
41+
gomega.Expect(err.Error()).To(gomega.Or(
42+
gomega.ContainSubstring("failed to create enricher"),
43+
gomega.ContainSubstring("failed to create MCPHost client"),
44+
gomega.ContainSubstring("enrichment is mandatory"),
45+
))
4346
})
4447
})
4548
})

0 commit comments

Comments
 (0)