Skip to content

Commit

Permalink
add a test deploying app with volume and db
Browse files Browse the repository at this point in the history
currently ignored, because deploying db from cli is currently broken
  • Loading branch information
barankaraaslan committed Dec 20, 2024
1 parent 3f7ced3 commit 22ef3d7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2485,3 +2485,32 @@ echo "email_sent\n";
// throw new Error(`Email does not contain expected body '${body}': ${first}`);
// }
});

// ignroed, because currently deploying database apps does not populate db credentials, causing app to fail
Deno.test("app-with-volume-and-database", {ignore: true}, async () => {
const env = TestEnv.fromEnv();

const spec: AppDefinition = {
appYaml: {
kind: "wasmer.io/App.v0",
package: "wasmer/wordpress",
locality: {
regions: [
"fi-helsinki"
]
},
volumes: [
{
name: "wp-content",
mount: "/app/wp-content"
}
]
},
};

const info = await env.deployApp(spec);
const res = await env.fetchApp(info, "/");
const body = await res.text();

assertEquals(body, "commitment");
});

0 comments on commit 22ef3d7

Please sign in to comment.