Skip to content

Commit

Permalink
Merge pull request #361 from kingdonb/fixup-test
Browse files Browse the repository at this point in the history
fixup typos in copypasta of kustomization tests
  • Loading branch information
Kingdon Barrett authored Aug 4, 2022
2 parents fb5f4df + 9ab7fcf commit 2be99db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ suite('Extension Test Suite', () => {
await api.shell.execWithOutput('flux create kustomization podinfo --target-namespace=default --source=podinfo --path="./kustomize"');
await vscode.commands.executeCommand('gitops.views.refreshWorkloadTreeView');

let source = await getTreeItem(api.data.workloadTreeViewProvider, 'podinfo');
assert.notStrictEqual(source, undefined, 'Adding a Kustomization and refreshing the view should list it');
let workload = await getTreeItem(api.data.workloadTreeViewProvider, 'podinfo');
assert.notStrictEqual(workload, undefined, 'Adding a Kustomization and refreshing the view should list it');

await api.shell.execWithOutput('flux delete kustomization podinfo -s');
await vscode.commands.executeCommand('gitops.views.refreshAllTreeViews'); // refresh all'

source = await getTreeItem(api.data.workloadTreeViewProvider, 'podinfo');
assert.strictEqual(source, undefined, 'Removing a GitSource and refreshing all views should unlist it');
workload = await getTreeItem(api.data.workloadTreeViewProvider, 'podinfo');
assert.strictEqual(workload, undefined, 'Removing a Kustomization and refreshing all views should unlist it');
});

test('Disable GitOps uninstalls Flux', async function () {
Expand Down

0 comments on commit 2be99db

Please sign in to comment.