- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DoRaw (0.08 sec)
-
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
// Discovery { result, err := rest.Get(). SetHeader("Accept", "application/yaml"). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name). DoRaw(context.TODO()) if err != nil { t.Fatal(err, string(result)) } obj, err := decodeYAML(result) if err != nil { t.Fatal(err) } if obj.GetAPIVersion() != "v1" || obj.GetKind() != "APIResourceList" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/options_test.go
return } // test the client talks to the endpoint we expect with the credentials we expect username = "" _, err = config.Client.Discovery().RESTClient().Get().AbsPath("/").DoRaw(context.TODO()) if err != nil { t.Error(err) return } if username != tc.expectedUsername { t.Errorf("expected server call with user %q, got %q", tc.expectedUsername, username) } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 30.3K bytes - Viewed (0)