turbonomic / kubeturbo

140 stars 75 forks source link

[TRB-43699]: Automation test to verify cluster role generation when installing via kubeturbo operator #905

Closed LionelWuW closed 1 year ago

LionelWuW commented 1 year ago

Implementation automation test for TRB-42315 to check if the cluster role will be generated correctly.

The test is supposed to pass when using operator image version 8.9.5+

Intent

Implementation automation test for TRB-42315

Background

Implementation automation test for TRB-42315

Test result

> Tearing up kubeturbo tests

> Start testing for Deploy single kubeturbo test
namespace/testns1 created
kubeturbo.charts.helm.k8s.io/kubeturbo-testcr1 created
Wait for 20s to finish container creation
>  Deployment deployment.apps/kubeturbo-testcr1 cr check........PASSED
>  Deployment deployment.apps/kubeturbo-testcr1 log check........PASSED
>  ClusterRoleBinding turbo-all-binding-kubeturbo-testcr1-testns1 check........PASSED
>  ClusterRole cluster-admin check........PASSED
> Deploy single kubeturbo test........PASSED

> Start testing for Deploy multiple kubeturbos test
namespace/testns2 created
kubeturbo.charts.helm.k8s.io/kubeturbo-testcr2 created
Wait for 20s to finish container creation
>  Deployment deployment.apps/kubeturbo-testcr2 cr check........PASSED
>  Deployment deployment.apps/kubeturbo-testcr2 log check........PASSED
>  ClusterRoleBinding turbo-all-binding-kubeturbo-testcr2-testns2 check........PASSED
>  ClusterRole cluster-admin check........PASSED
> Deploy multiple kubeturbos test........PASSED

> Start testing for Deploy single turbo-cluster-reader kubeturbo test
namespace/testns3 created
kubeturbo.charts.helm.k8s.io/kubeturbo-testcr3 created
Wait for 20s to finish container creation
>  Deployment deployment.apps/kubeturbo-testcr3 cr check........PASSED
>  Deployment deployment.apps/kubeturbo-testcr3 log check........PASSED
>  ClusterRoleBinding turbo-all-binding-kubeturbo-testcr3-testns3 check........PASSED
>  ClusterRole turbo-cluster-reader-kubeturbo-testcr3-testns3 check........PASSED
> Deploy single turbo-cluster-reader kubeturbo test........PASSED

> Start testing for Deploy multiple turbo-cluster-reader kubeturbos test
namespace/testns4 created
kubeturbo.charts.helm.k8s.io/kubeturbo-testcr4 created
Wait for 20s to finish container creation
>  Deployment deployment.apps/kubeturbo-testcr4 cr check........PASSED
>  Deployment deployment.apps/kubeturbo-testcr4 log check........PASSED
>  ClusterRoleBinding turbo-all-binding-kubeturbo-testcr4-testns4 check........PASSED
>  ClusterRole turbo-cluster-reader-kubeturbo-testcr4-testns4 check........PASSED
> Deploy multiple turbo-cluster-reader kubeturbos test........PASSED

> Tearing down kubeturbo tests