(namespace string)
| 63 | } |
| 64 | |
| 65 | func ExpectNamespace(namespace string) { |
| 66 | kubeClient, err := kube.NewKubeHelper() |
| 67 | ExpectNoErrorWithOffset(1, err) |
| 68 | |
| 69 | err = wait.PollUntilContextTimeout(context.TODO(), time.Second, time.Minute*2, true, func(ctx context.Context) (done bool, err error) { |
| 70 | ns, err := kubeClient.Client().KubeClient().CoreV1().Namespaces().Get(ctx, namespace, metav1.GetOptions{}) |
| 71 | if err != nil { |
| 72 | return false, nil |
| 73 | } |
| 74 | |
| 75 | return ns.Name == namespace, nil |
| 76 | }) |
| 77 | ExpectNoErrorWithOffset(1, err) |
| 78 | } |
| 79 | |
| 80 | func ExpectRemoteFileContents(imageSelector string, namespace string, filePath string, contents string) { |
| 81 | kubeClient, err := kube.NewKubeHelper() |
no test coverage detected