- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for DoRaw (0.05 sec)
-
staging/src/k8s.io/apiextensions-apiserver/test/integration/limit_test.go
SetHeader("Content-Type", "application/yaml"). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural). Body(yamlBody). DoRaw(context.TODO()) if !apierrors.IsRequestEntityTooLargeError(err) { t.Errorf("expected too large error, got %v", err) } }) // Create YAML just under 3MB limit, nested
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go
Param("fieldManager", "apply_test"). Body(yamlBody). DoRaw(context.TODO()) if err != nil { t.Fatal(err, string(result)) } result, err = rest.Patch(types.MergePatchType). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural). Name("mytest"). Body([]byte(`{"values":{"numVal": 5}}`)). DoRaw(context.TODO()) if err != nil { t.Fatal(err, string(result))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 3.5K bytes - Viewed (0) -
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) -
CHANGELOG/CHANGELOG-1.18.md
- `(*"k8s.io/client-go/rest".Request).{Do,DoRaw,Stream,Watch}` now require callers to pass a `context.Context` as an argument. The context is used for timeout and cancellation signaling and to pass supplementary information to round trippers in the wrapped transport chain. If you don't need any...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 16 17:18:28 UTC 2021 - 373.2K bytes - Viewed (0)