Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix options:requested-chassis with hostname
This test currently passes, but is broken in two ways. 1) The `fetch_column` helper should be used to retrieve the value of hostname, not `fetch` wich results in a "fetch: command not found" error which is currently not caught by the test. As a consequence the requested-chassis option was set to the empty string ("") and not the chassis hostname. 2) When we introduced testing with TLS+RBAC in c948d6b the ovn_az_attach helper was updated to set the hostname to match system-id. This of course also makes the name and hostname columns in the Chassis record contain the same value which made this test no longer do what it says on the tin. Update test to explicitly set the value to be used for requested-chassis option in the Chassis hostname record, and add a check for it not being empty nor equal to chassis name. Fixes: 4afe409 ("tests: Introduce new testing helpers.") Fixes: c948d6b ("tests: Test with SSL and RBAC for controller by default") Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com> Signed-off-by: Numan Siddique <numans@ovn.org> (cherry picked from commit 9dadbd4)
- Loading branch information