MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ExpectLocalCurlContains

Function ExpectLocalCurlContains

e2e/framework/helper.go:95–104  ·  view source on GitHub ↗
(urlString string, contents string)

Source from the content-addressed store, hash-verified

93}
94
95func ExpectLocalCurlContains(urlString string, contents string) {
96 client := resty.New()
97 err := wait.PollUntilContextTimeout(context.TODO(), time.Second, time.Minute*2, true, func(_ context.Context) (done bool, err error) {
98 resp, _ := client.R().
99 EnableTrace().
100 Get(urlString)
101 return strings.Contains(strings.TrimSpace(string(resp.Body())), strings.TrimSpace(contents)), nil
102 })
103 ExpectNoErrorWithOffset(1, err)
104}
105
106func ExpectContainerNameAndImageEqual(namespace, deploymentName, containerImage, containerName string) {
107 kubeClient, err := kube.NewKubeHelper()

Callers 1

portforward.goFile · 0.92

Calls 2

ExpectNoErrorWithOffsetFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected