From c3b8b9db9ec052e3bed350d1e126ff3175fd7de4 Mon Sep 17 00:00:00 2001 From: soup-bowl Date: Wed, 15 Jan 2025 08:28:35 +0000 Subject: [PATCH] Updated unit --- unit-test.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/unit-test.yaml b/unit-test.yaml index 7862a2b..64864b9 100644 --- a/unit-test.yaml +++ b/unit-test.yaml @@ -10,10 +10,17 @@ fileExistenceTests: path: '/usr/local/bin/docker-entrypoint.sh' shouldExist: true isExecutableBy: 'owner' -# commandTests: -# - name: "Run OpenSimulator" -# setup: [["docker-entrypoint.sh"]] -# command: "timeout" -# args: ["-s", "SIGINT", "10s", "dotnet", "OpenSim.dll"] +commandTests: + - name: "Check Entrypoint" + command: "docker-entrypoint.sh" + expectedError: + - ".*No OpenSim configuration found.*" + - ".*No Grid Common configuration found.*" + - ".*No region details found.*" + # Does not work with allocateTty, but the software needs a tty. Poss. a bug in the test framework? + # - name: "Run OpenSimulator" + # setup: [["docker-entrypoint.sh"]] + # command: "timeout" + # args: ["-s", "SIGINT", "10s", "dotnet", "OpenSim.dll"] containerRunOptions: - allocateTty: true \ No newline at end of file + # allocateTty: true \ No newline at end of file