Skip to content

Commit

Permalink
i am but a servant to the great ol' Code Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Oct 22, 2023
1 parent ef2e1c4 commit 210c1c4
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdk/kittyhawk/src/application/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class RedisApplication extends Application {
},
spec: {
storageClassName: `${appname}-redis-storage`,
accessModes: ["ReadWriteMany"], // TODO: WHAT IS THIS
accessModes: ["ReadWriteMany"], // TODO: ask Redis folks
capacity: {
storage: Quantity.fromString("1Gi"),
},
Expand All @@ -62,7 +62,7 @@ export class RedisApplication extends Application {
},
spec: {
storageClassName: `${appname}-redis-storage`,
accessModes: ["ReadWriteMany"], // TODO: WHAT IS THIS
accessModes: ["ReadWriteMany"], // TODO: ask Redis folks
resources: {
requests: {
storage: Quantity.fromString("1Gi"),
Expand Down
62 changes: 62 additions & 0 deletions cdk/kittyhawk/test/__snapshots__/deployment.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions cdk/kittyhawk/test/deployment.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Construct } from "constructs";
import { Container, Deployment } from "../src";
import { chartTest, failingTestNoGitSha } from "./utils";

export function buildDeploymentDefault(scope: Construct) {
new Deployment(scope, "container", {
image: "pennlabs/website",
tag: "latest",
});
}

export function buildContainerDefault() {
new Container({
image: "pennlabs/website",
tag: "latest",
});
}

test("Deployment -- No Git Sha", () =>
failingTestNoGitSha(buildDeploymentDefault));
test("Deployment -- Default", () => chartTest(buildDeploymentDefault));

0 comments on commit 210c1c4

Please sign in to comment.