rancher / qa-tasks

List of QA Backlog
1 stars 1 forks source link

Update k3s/rke2 airgap tests system-default-registry method to support other OSes besides Ubuntu #147

Open rancher-max opened 3 years ago

rancher-max commented 3 years ago
# Note this only works on Ubuntu currently. There is a future enhancement
# to enable this to work for any OS.
def trust_certs_on_node(bastion_node, ag_node):
    ag_node_update_certs = \
        'sudo cp domain.crt ' \
        '/usr/local/share/ca-certificates/domain.crt && ' \
        'sudo update-ca-certificates'
    run_command_on_airgap_node(bastion_node, ag_node,
                               ag_node_update_certs)

Update this function so that it can trust certs on rhel-like operating systems as well

rancher-max commented 6 months ago

This effort is mostly transitioning the tests into the distros-test-framework, using some of the logic of what we have today in the Python framework but building via Terraform to enable different OSes.