MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getExistingDevWorkspace

Function getExistingDevWorkspace

controllers/workspace/util_test.go:82–93  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

80}
81
82func getExistingDevWorkspace(name string) *dw.DevWorkspace {
83 By(fmt.Sprintf("Getting existing DevWorkspace %s", name))
84 devworkspace := &dw.DevWorkspace{}
85 dwNN := namespacedName(name, testNamespace)
86 Eventually(func() (string, error) {
87 if err := k8sClient.Get(ctx, dwNN, devworkspace); err != nil {
88 return "", err
89 }
90 return devworkspace.Status.DevWorkspaceId, nil
91 }, timeout, interval).Should(Not(BeEmpty()))
92 return devworkspace
93}
94
95// deleteDevWorkspace forces a DevWorkspace to be deleted by removing all finalizers
96func deleteDevWorkspace(name string) {

Calls 2

namespacedNameFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected