quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Creates playbook for provisioning ocp instance #377

Closed nicolearagao closed 1 year ago

nicolearagao commented 1 year ago

After careful consideration I've come to the conclusion that the Camayoc is the right place for this playbook/test. If I place this on Camayoc I can take advantage of the already obligatory config.yaml to place my config variables such as token and server info instead of prompting the user for them. Camayoc does already most of the cli tasks I would need to do, so placing it here would also avoid code duplication. Observations:

  1. I gave up using ocp modules for Ansible since most of them are deprecated. People are using community.k8s nowadays, but using shell instead gave me more freedom.
  2. To run this playbook successfully the user must have the oc installed in his computer. I didn't find where I should add this observation. Could you help me with this @ruda ?
  3. I discarded the Molecule tests for this. This playbook usually runs in around 2 seconds. Tests were taking almost 3 minutes to complete.

I will follow this PR with another that adds a test which will verify the details report for the existence of the discovery app I deployed. After we remodel ocp we can improve the test.

ruda commented 1 year ago

Closing this in favor of PR #380