info "Ensuring that environment variables are present in the node containers as set in the config (with comma)"
exec_in_node "k3d-$clustername-server-0""env"| grep -q "bar=baz,bob"|| failed "Expected env var 'bar=baz,bob' is not present in node k3d-$clustername-server-0"
## Container Labels
info "Ensuring that container labels have been set as stated in the config"
docker_assert_container_label "k3d-$clustername-server-0""foo=bar"|| failed "Expected label 'foo=bar' not present on container/node k3d-$clustername-server-0"
## K3s Node Labels
info "Ensuring that k3s node labels have been set as stated in the config"
k3s_assert_node_label "k3d-$clustername-server-0""foo=bar"|| failed "Expected label 'foo=bar' not present on node k3d-$clustername-server-0"
## Registry Node
registryname="stdintest.registry.localhost"
info "Ensuring, that we have a registry node present"
$EXE node list "$registryname"|| failed "Expected registry node $registryname to be present"
## merged registries.yaml
info "Ensuring, that the registries.yaml file contains both registries"
exec_in_node "k3d-$clustername-server-0""cat /etc/rancher/k3s/registries.yaml"| grep -qi "my.company.registry"|| failed "Expected 'my.company.registry' to be in the /etc/rancher/k3s/registries.yaml"
exec_in_node "k3d-$clustername-server-0""cat /etc/rancher/k3s/registries.yaml"| grep -qi "$registryname"|| failed "Expected '$registryname' to be in the /etc/rancher/k3s/registries.yaml"