Skip to content

Commit

Permalink
update application tests with mycelium
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Harby committed Oct 8, 2024
1 parent 1ef744b commit 6e4dfd4
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test("TC2727 - Applications: Deploy Algorand", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
NETWORK: network,
Expand Down Expand Up @@ -129,6 +129,7 @@ test("TC2727 - Applications: Deploy Algorand", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2683 - Applications: Deploy Casperlabs", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
CASPERLABS_HOSTNAME: domain,
Expand Down Expand Up @@ -148,6 +148,7 @@ test("TC2683 - Applications: Deploy Casperlabs", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].rootfs_size).toBe(GBToBytes(rootfsSize));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test.skip("TC2690 - Applications: Deploy Discourse", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
DISCOURSE_HOSTNAME: domain,
Expand Down Expand Up @@ -163,6 +163,7 @@ test.skip("TC2690 - Applications: Deploy Discourse", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2685 - Applications: Deploy Funkwhale", async () => {
entrypoint: "/init.sh",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
FUNKWHALE_HOSTNAME: domain,
Expand Down Expand Up @@ -151,6 +151,7 @@ test("TC2685 - Applications: Deploy Funkwhale", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].rootfs_size).toBe(GBToBytes(rootfsSize));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2689 - Applications: Deploy Mattermost", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
MATTERMOST_DOMAIN: domain,
Expand Down Expand Up @@ -151,6 +151,7 @@ test("TC2689 - Applications: Deploy Mattermost", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2692 - Applications: Deploy Nextcloud", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
NEXTCLOUD_DOMAIN: domain,
Expand Down Expand Up @@ -151,6 +151,7 @@ test("TC2692 - Applications: Deploy Nextcloud", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ test.skip("TC2701 - Applications: Deploy Nodepilot", async () => {
flist: "https://hub.grid.tf/tf-official-vms/node-pilot-zdbfs.flist",
entrypoint: "/",
public_ip: publicIp,
planetary: false,
mycelium: false,
planetary: true,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
},
Expand Down Expand Up @@ -140,7 +140,8 @@ test.skip("TC2701 - Applications: Deploy Nodepilot", async () => {
expect(result[0].interfaces[0]["ip"]).toMatch(ipRegex);
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeUndefined();
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeDefined();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(disk1Name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2684 - Applications: Deploy Peertube", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
PEERTUBE_WEBSERVER_HOSTNAME: domain,
Expand Down Expand Up @@ -150,6 +150,7 @@ test("TC2684 - Applications: Deploy Peertube", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].rootfs_size).toBe(GBToBytes(rootfsSize));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test("TC2728 - Applications: Deploy Presearch", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
PRESEARCH_REGISTRATION_CODE: "130b4f9393d3c852b50a65f2996586b4",
Expand Down Expand Up @@ -130,6 +130,7 @@ test("TC2728 - Applications: Deploy Presearch", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2693 - Applications: Deploy Subsquid", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
SUBSQUID_WEBSERVER_HOSTNAME: domain,
Expand Down Expand Up @@ -149,6 +149,7 @@ test("TC2693 - Applications: Deploy Subsquid", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2691 - Applications: Deploy Taiga", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
DOMAIN_NAME: domain,
Expand Down Expand Up @@ -151,6 +151,7 @@ test("TC2691 - Applications: Deploy Taiga", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test("TC2694 - Applications: Deploy Umbrel", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
UMBREL_DISK: mountPoint2,
Expand Down Expand Up @@ -140,6 +140,7 @@ test("TC2694 - Applications: Deploy Umbrel", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(disk1Name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test("TC2700 - Applications: Deploy Wordpress", async () => {
entrypoint: "/sbin/zinit init",
public_ip: publicIp,
planetary: true,
mycelium: false,
mycelium: true,
env: {
SSH_KEY: config.ssh_key,
WP_URL: domain,
Expand Down Expand Up @@ -151,6 +151,7 @@ test("TC2700 - Applications: Deploy Wordpress", async () => {
expect(result[0].capacity["cpu"]).toBe(cpu);
expect(result[0].capacity["memory"]).toBe(memory * 1024);
expect(result[0].planetary).toBeDefined();
expect(result[0].myceliumIP).toBeDefined();
expect(result[0].publicIP).toBeNull();
expect(result[0].description).toBe(description);
expect(result[0].mounts[0]["name"]).toBe(diskName);
Expand Down

0 comments on commit 6e4dfd4

Please sign in to comment.