Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateUpdate (0.28 sec)

  1. pkg/registry/core/pod/strategy_test.go

    							},
    						},
    					},
    				},
    			},
    		},
    	}
    
    	// expect no errors
    	for _, tc := range test {
    		t.Run(tc.name, func(t *testing.T) {
    			if errs := EphemeralContainersStrategy.ValidateUpdate(genericapirequest.NewContext(), tc.newPod, tc.oldPod); len(errs) != 0 {
    				t.Errorf("unexpected error:%v", errs)
    			}
    		})
    	}
    
    	test = []struct {
    		name   string
    		newPod *api.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  2. pkg/apis/certificates/validation/validation_test.go

    					filteredWantErrors = append(filteredWantErrors, err)
    				}
    			}
    
    			if diff := cmp.Diff(gotErrors, filteredWantErrors); diff != "" {
    				t.Fatalf("Unexpected error output from ValidateUpdate; diff (-got +want)\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestValidateClusterTrustBundleUpdate(t *testing.T) {
    	goodCert1 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    		sts,
    		nil, // No need for status
    		nil, // No need for scale
    		nil, // No need for selectable fields
    	)
    
    	return func(new, old *unstructured.Unstructured) {
    		_ = strategy.ValidateUpdate(context.TODO(), new, old)
    	}, nil
    }
    
    // Recursively walks the provided directory and parses the YAML files into
    // unstructured objects. If there are more than one object in a single file,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
Back to top