Commit Graph

6 Commits

Author SHA1 Message Date
Luca Sacchi Ricciardi
1a17eeb3a5 test(02-01): add test orchestration script for lab 01
- Created run-all-tests.sh to execute test suite in sequence
- Fail-fast approach stops on first failure (TDD RED phase)
- Provides summary and next steps (final verification)
- Can be run from any directory (uses absolute paths)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 22:19:52 +01:00
Luca Sacchi Ricciardi
99edd848a7 test(02-01): add final verification script for student self-check
- Created 99-final-verification.sh as "double check" command
- Verifies all lab requirements: user config, Docker access, INF-01, docs
- Uses visual indicators (✓ pass, ✗ fail, ○ skip) for clarity
- Tests Diátaxis framework documentation completeness
- Exit code 0 for all-pass, 1 for any failure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 22:19:33 +01:00
Luca Sacchi Ricciardi
4b2cab386f test(02-01): add non-root container verification test (INF-01)
- Created 03-non-root-test.sh for INF-01 compliance validation
- Tests verify no container runs as root (safety requirement)
- Checks docker exec whoami, docker inspect, and compose file
- Handles missing infrastructure gracefully with SKIP results

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 22:19:09 +01:00
Luca Sacchi Ricciardi
2926a53746 test(02-01): add Docker access control test script (TDD RED phase)
- Created test-02-docker-access.sh for socket access validation
- Tests verify socket permissions, docker group existence, and ownership
- Checks for usermod availability in /usr/sbin as well as PATH
- All tests pass against current Docker installation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 22:18:45 +01:00
Luca Sacchi Ricciardi
a5969baf0d test(02-01): add user creation test script (TDD RED phase)
- Created test-01-user-creation.sh for Linux user/group validation
- Tests verify user existence, docker group membership, and access control
- Uses helper functions for counter increments to work with set -e
- Handles missing sudo gracefully with SKIP results

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 22:18:07 +01:00
Luca Sacchi Ricciardi
16ddb802ad feat(01-02): create lab directory structure with placeholder READMEs
- Created labs/ directory with 5 lab subdirectories
- Created how-to-guides/ and reference/ directories
- Added placeholder README.md in each lab directory
2026-03-24 19:54:51 +01:00