From 22ef3d78f691ab5ca6e4ba98c68ce3d363a92d26 Mon Sep 17 00:00:00 2001 From: Baran Karaaslan Date: Fri, 20 Dec 2024 16:23:55 +0300 Subject: [PATCH] add a test deploying app with volume and db currently ignored, because deploying db from cli is currently broken --- test.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test.ts b/test.ts index 2bda7dc..99327f9 100644 --- a/test.ts +++ b/test.ts @@ -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"); +}); \ No newline at end of file