Add tests for `vhost_config` behavior
The following discussion from !32 (merged) should be addressed:
-
@estevesm started a discussion: (+2 comments) Tests are interesting but I have few remarks:
- As of recent changes, all
webeossite
that are created are supposed to have their name match theirspec.hostName
; - All
webeossite
CRs are currently created with thelegacyBaseURL
structure present. This, however, will not always happen as the operatorwebeossitemgmt
is able to create awebeossite
without this structure; - I liked that syntax check that was introduced. However are we able to take it a little bit further and check if the
vhost_config
is actually doing what it's supposed? Currently, we have to relly on okd4-install integration tests to debug this. So I think this would bring value to the tests. However, since I'm not too much familiar with apache I'm not sure how much work this would take;
- As of recent changes, all