Skip to content

Commit

Permalink
Update CI for create-private-registry to include an upgrade. (#1817)
Browse files Browse the repository at this point in the history
Ensure upgrading an app installed from a namespaced repo works during CI.
  • Loading branch information
absoludity authored and Andres Martinez Gotor committed Jul 9, 2020
1 parent 43c4d2a commit 7d174f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion integration/use-cases/create-private-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ test("Creates a private registry", async () => {

await expect(page).toClick("button", { text: "Deploy" });

await expect(page).toSelect("#chartVersion", "7.3.15");
const appName = "my-app" + randomNumber;
await page.type("#releaseName", appName);

await expect(page).toClick("button", { text: "Submit" });

await expect(page).toMatch("Ready", { timeout: 60000 });
await expect(page).toMatch("Update Available", { timeout: 60000 });

// Now that the deployment has been created, we check that the imagePullSecret
// has been added. For doing so, we query the kubernetes API to get info of the
Expand All @@ -85,4 +86,14 @@ test("Creates a private registry", async () => {
expect(deployment.spec.template.spec.imagePullSecrets).toEqual([
{ name: secret },
]);

// Upgrade apache and verify.
await expect(page).toClick(".upgrade-button");

await expect(page).toSelect("#chartVersion", "7.3.16");

await expect(page).toClick(".button-primary");

await expect(page).toMatch("Up to date", { timeout: 60000 });
await expect(page).toMatch("Ready", { timeout: 60000 });
});
1 change: 1 addition & 0 deletions script/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ fi

installChartmuseum admin password
pushChart apache 7.3.15 admin password
pushChart apache 7.3.16 admin password

# Ensure that we are testing the correct image
info ""
Expand Down

0 comments on commit 7d174f1

Please sign in to comment.