Skip to content

Commit 4730865

Browse files
committed
fix: make single openshift schema test pass
1 parent 90a1b7a commit 4730865

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/schemaValidation.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,9 @@ obj:
11941194
languageService.configure(kubernetesSettings);
11951195
const content = `apiVersion: route.openshift.io/v1\nkind: Route\nfoo: bar`;
11961196
const result = await parseSetup(content, 'invalid-oc.yml');
1197-
expect(result.length).to.eq(1);
1198-
expect(result[0].message).to.eq('Property foo is not allowed.');
1197+
expect(result.length).to.eq(2);
1198+
expect(result[0].message).to.eq('Missing property "spec".');
1199+
expect(result[1].message).to.eq('Property foo is not allowed.');
11991200
});
12001201

12011202
it('custom kubernetes schema version and openshift custom resource definition (CRD) should return validation errors', async () => {

0 commit comments

Comments
 (0)