mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 08:59:44 +01:00
More debug info added.
This commit is contained in:
parent
2a89c16678
commit
00391b0856
11
.github/workflows/test-acceptance.yml
vendored
11
.github/workflows/test-acceptance.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
working-directory: ./e107_tests/lib/ci/salt/
|
working-directory: ./e107_tests/lib/ci/salt/
|
||||||
- name: Launch test container
|
- name: Launch test container
|
||||||
run: |
|
run: |
|
||||||
docker run -d --rm --name target -v .:/app/ ${{ matrix.operating_system.image }} tail -f /dev/null
|
docker run -d --rm --network host --name target -v .:/app/ ${{ matrix.operating_system.image }} tail -f /dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
if ! docker ps | grep -q target; then
|
if ! docker ps | grep -q target; then
|
||||||
docker logs target
|
docker logs target
|
||||||
@ -35,13 +35,16 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Install SaltStack
|
- name: Install SaltStack
|
||||||
run: |
|
run: |
|
||||||
|
echo "Validating host network connectivity..."
|
||||||
|
ping -c 4 google.com || echo "Error: Host network connectivity issue"
|
||||||
echo "Checking file permissions..."
|
echo "Checking file permissions..."
|
||||||
docker exec target ls -l /app/e107_tests/lib/ci/salt/ > salt_file_permissions.log || echo "Error: Failed to list file permissions"
|
docker exec target ls -l /app/e107_tests/lib/ci/salt/ > salt_file_permissions.log || echo "Error: Failed to list file permissions"
|
||||||
echo "Checking network connectivity..."
|
echo "Validating internet access inside the container..."
|
||||||
docker exec target ping -c 4 google.com > salt_network_check.log || echo "Error: Network connectivity issue"
|
docker exec target ping -c 4 google.com || echo "Error: Network connectivity issue inside container"
|
||||||
echo "Fetching container logs before script execution..."
|
echo "Fetching container logs before script execution..."
|
||||||
docker logs target > salt_container_logs_before.log
|
docker logs target > salt_container_logs_before.log
|
||||||
docker exec target /app/e107_tests/lib/ci/salt/salt-bootstrap onedir
|
echo "Executing SaltStack bootstrap script..."
|
||||||
|
docker exec target /app/e107_tests/lib/ci/salt/salt-bootstrap onedir || echo "Error: SaltStack bootstrap script failed"
|
||||||
echo "Fetching container logs after script execution..."
|
echo "Fetching container logs after script execution..."
|
||||||
docker logs target > salt_container_logs_after.log
|
docker logs target > salt_container_logs_after.log
|
||||||
- name: Apply Salt state
|
- name: Apply Salt state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user