Skip to content

Commit

Permalink
fix: make single openshift schema test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktron committed Mar 24, 2023
1 parent 90a1b7a commit 4730865
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/schemaValidation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1194,8 +1194,9 @@ obj:
languageService.configure(kubernetesSettings);
const content = `apiVersion: route.openshift.io/v1\nkind: Route\nfoo: bar`;
const result = await parseSetup(content, 'invalid-oc.yml');
expect(result.length).to.eq(1);
expect(result[0].message).to.eq('Property foo is not allowed.');
expect(result.length).to.eq(2);
expect(result[0].message).to.eq('Missing property "spec".');
expect(result[1].message).to.eq('Property foo is not allowed.');
});

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

0 comments on commit 4730865

Please sign in to comment.