Auto container test (#8)

* Add test workflow

* Add test workflow

* Add descriptions to test workflow

* Add manual trigger to test

* Remove YAML delimiters from test.yml

* Update syntax to ignore main

* Fix test file name

* Publish test report

* Fix container-structure-test race condition

* Fix container-structure-test download

* Reconfigure tests
This commit is contained in:
Luke Tainton
2022-04-29 22:21:30 +01:00
committed by GitHub
parent d482a48e50
commit ad1d5d50b1
2 changed files with 70 additions and 0 deletions

19
structure_tests.yml Normal file
View File

@@ -0,0 +1,19 @@
schemaVersion: '2.0.0'
fileExistenceTests:
- name: 'Check HESK folder'
path: '/srv'
shouldExist: true
- name: 'Check Apache config exists'
path: '/etc/apache2/sites-enabled/000-default.conf'
shouldExist: true
# Failng - need to figure out why
# fileContentTests:
# - name: 'Check Apache config has contents'
# path: '/etc/apache2/sites-enabled/000-default.conf'
# expectedContents: ['.*VirtualHost.*']
metadataTest:
exposedPorts: ["80"]
# user: "www-data"