Skip to content

Commit

Permalink
FUSETOOLS2-1066 - reactivate all tests
Browse files Browse the repository at this point in the history
- adapt number of expected traits in tests
- check for include instead fo strict equality as there is an extra
message provided now

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Apr 28, 2021
1 parent 66ba685 commit 62d683c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/suite/CamelKTaskCompletionItemProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ suite("Camel K Task Completion", function () {
]
}`;
const res = await new CamelKTaskCompletionItemProvider().provideCompletionItemsForText(contentWithEmptyTrait, 236, new vscode.Position(9,24));
expect(res).to.have.lengthOf(30);
expect(res).to.have.lengthOf(32);
const affinityCompletionItem = res.find(item => item.label === 'affinity');
const affinitySnippet = affinityCompletionItem?.insertText as vscode.SnippetString;
expect(affinitySnippet.value).equals('"affinity.${1|enabled,pod-affinity,pod-anti-affinity,node-affinity-labels,pod-affinity-labels,pod-anti-affinity-labels|}="');
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/StartIntegration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async function prepareNewNamespaceWithCamelK(EXTRA_NAMESPACE_FOR_TEST: string) {
waitUntil(() => {
return createNamespaceExec.stdout.includes(`namespace/${EXTRA_NAMESPACE_FOR_TEST} created`);
});
assert.equal(shelljs.exec(`${await kamel.create().getPath()} install --namespace=${EXTRA_NAMESPACE_FOR_TEST}`).stdout, `Camel K installed in namespace ${EXTRA_NAMESPACE_FOR_TEST} \n`);
assert.include(shelljs.exec(`${await kamel.create().getPath()} install --namespace=${EXTRA_NAMESPACE_FOR_TEST}`).stdout, `Camel K installed in namespace ${EXTRA_NAMESPACE_FOR_TEST} \n`);
}

async function checkIntegrationRunning() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function run(): Promise<void> {
const coverageRunner = loadCoverageRunner(testsRoot);

return new Promise((c, e) => {
glob('**/NewIntegra*.test.js', { cwd: testsRoot }, (err, files) => {
glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
if (err) {
return e(err);
}
Expand Down

0 comments on commit 62d683c

Please sign in to comment.