From 6dc9d85f6b5c0805958eb05832aa7378821fefec Mon Sep 17 00:00:00 2001 From: Andreas Tsarida Date: Sat, 22 Jun 2024 11:02:14 +0200 Subject: [PATCH] fix network --- .github/workflows/ghcr-publish.yml | 2 +- tests/e2e/settings.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index a4907b4..1cb2e32 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -61,7 +61,7 @@ jobs: done - name: Run Docker Container - run: platform=${{ matrix.platform }} && ip a && docker run -d --network bridge --ip 172.17.0.30 -p 8080:8080 -p 11470:11470 -e NO_CORS=1 -e CASTING_DISABLED=1 --platform ${{ matrix.platform }} ${{ env.TMP_LOCAL_IMAGE }}:${platform//\//-} + run: platform=${{ matrix.platform }} && ip a && docker network create --subnet=172.18.0.0/24 custom_network && docker run -d --network custom_network --ip 172.18.0.1 -p 8080:8080 -p 11470:11470 -e NO_CORS=1 -e CASTING_DISABLED=1 --platform ${{ matrix.platform }} ${{ env.TMP_LOCAL_IMAGE }}:${platform//\//-} - uses: actions/setup-node@v3 with: diff --git a/tests/e2e/settings.spec.ts b/tests/e2e/settings.spec.ts index ff437ff..ca17a46 100644 --- a/tests/e2e/settings.spec.ts +++ b/tests/e2e/settings.spec.ts @@ -3,7 +3,7 @@ import { test, expect, request } from '@playwright/test'; test('api', async ({ page }) => { // Create a context that will issue http requests. const context = await request.newContext({ - baseURL: 'http://172.17.0.3:11470', + baseURL: 'http://172.18.0.1:11470', }); // Delete a repository. const settings = await context.get(`/settings`, {}); @@ -20,12 +20,12 @@ test('api', async ({ page }) => { }); test('settings', async ({ page }) => { - await page.goto('http://172.17.0.3:8080/#/settings'); + await page.goto('http://172.18.0.1:8080/#/settings'); await page.getByTitle('Streaming').click(); await page.getByTitle('Configure server url').getByRole('img').click(); await page.getByPlaceholder('Enter a streaming server url').click(); await page.getByPlaceholder('Enter a streaming server url').press('Meta+a'); - await page.getByPlaceholder('Enter a streaming server url').fill('http://172.17.0.3:11470/'); + await page.getByPlaceholder('Enter a streaming server url').fill('http://172.18.0.1:11470/'); await page.getByText('Submit').click(); await expect(page.getByText('Online')).toHaveText('Online'); });