vmware-archive/wardroom

Add image testing

Opened this issue · 4 comments

kubernetes-sigs/cluster-api-provider-aws#538 adds image testing using goss. Might be worth porting to wardroom

@randomvariable I did some initial testing with goss. I came up with the following tests (for a 1.11.7 image):

package:
  docker-ce:
    installed: true
    versions:
    - 18.06.3~ce~3-0~ubuntu
  kubeadm:
    installed: true
    versions:
    - 1.11.7-00
  kubectl:
    installed: true
    versions:
    - 1.11.7-00
  kubelet:
    installed: true
    versions:
    - 1.11.7-00
mount:
  swap:
    exists: false

Did you have any other tests/conditions in mind to test the images?

Think that's a sufficient start for now. We can build it up incrementally.

@scottslowe one potential issue with this is that since the versions are set using Ansible variables, this would cause failures if the versions are overridden. Ansible itself should also error out if the version installed does not match the version requested.

@detiber You are correct, of course. I posted the list of tests above more for an idea of what other sorts of tests we should consider. In my testing, I've already moved to a templated goss config file that pulls the Kubernetes and Docker versions from variables files. I hope to have a PR ready soon for review (initial testing looks pretty good).