-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add assertions and use isEqual
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -642,7 +642,7 @@ describe("Ensure serviceAccount annotations for in-cluster building", () => { | |
log, | ||
}) | ||
// Both annotations should be present | ||
expect(isEqualAnnotations(originalServiceAccount, status.remoteResources[0])) | ||
expect(isEqualAnnotations(originalServiceAccount, status.remoteResources[0])).to.be.true | ||
|
||
const reducedAnnotations = { | ||
"iam.gke.io/gcp-service-account": "[email protected]", | ||
|
@@ -660,7 +660,7 @@ describe("Ensure serviceAccount annotations for in-cluster building", () => { | |
log, | ||
}) | ||
// Only reduced annotations should be present | ||
expect(isEqualAnnotations(updatedServiceAccount, updatedStatus.remoteResources[0])) | ||
expect(isEqualAnnotations(updatedServiceAccount, updatedStatus.remoteResources[0])).to.be.true | ||
}) | ||
it("should cycle the util deployment when the serviceAccount annotations changed", async () => { | ||
const originalAnnotations = { | ||
|
@@ -678,7 +678,7 @@ describe("Ensure serviceAccount annotations for in-cluster building", () => { | |
provider.config.kaniko = { serviceAccountAnnotations: updatedAnnotations } | ||
const { updated } = await ensureUtilDeployment({ ctx, provider, log, api, namespace: projectNamespace }) | ||
|
||
expect(updated) | ||
expect(updated).to.be.true | ||
}) | ||
}) | ||
|
||
|
@@ -740,7 +740,7 @@ describe("Ensure serviceAccount annotations for in-cluster building", () => { | |
provider.config.clusterBuildkit = { serviceAccountAnnotations: updatedAnnotations, cache: defaultCacheConfig } | ||
const { updated } = await ensureBuildkit({ ctx, provider, log: garden.log, api, namespace: projectNamespace }) | ||
|
||
expect(updated) | ||
expect(updated).to.be.true | ||
}) | ||
}) | ||
}) |