Skip to content

Commit c3648cd

Browse files
[~] testing fworch user for dotnet unit tests
1 parent 3f7ed1c commit c3648cd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/test-install.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- name: do test install in case of merged pull request
2727
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K --skip-tags unittests
28+
- name: switch to fworch user for c# unit tests
29+
run: sudo su -l fworch
30+
- name: opening test files location
31+
run: cd /test/csharp/FWO.Test
2832
- name: exec dotnet test
29-
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test
33+
run: dotnet restore && dotnet build && dotnet test

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public async Task GeneratePdf()
7373
ExecutablePath = installedBrowser.GetExecutablePath(),
7474
Headless = true,
7575
DumpIO = isGitHubActions != null ? true : false, // Enables debug logs
76-
Args = new[] { "--database=/tmp", "--no-sandbox", "--no-zygote" }
76+
Args = new[] { "--database=/tmp", "--no-sandbox" }
7777
});
7878

7979
try

0 commit comments

Comments
 (0)