Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestValidateOverhead (0.24 sec)

  1. pkg/apis/node/validation/validation_test.go

    			errs := ValidateRuntimeClassUpdate(&test.new, &test.old)
    			if test.expectError {
    				assert.NotEmpty(t, errs)
    			} else {
    				assert.Empty(t, errs)
    			}
    		})
    	}
    }
    
    func TestValidateOverhead(t *testing.T) {
    	successCase := []struct {
    		Name     string
    		overhead *node.Overhead
    	}{{
    		Name: "Overhead with valid cpu and memory resources",
    		overhead: &node.Overhead{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. plugin/pkg/admission/runtimeclass/admission_test.go

    			errs := rt.Validate(context.TODO(), attrs, o)
    			if tc.expectError {
    				assert.NotEmpty(t, errs)
    			} else {
    				assert.Empty(t, errs)
    			}
    		})
    	}
    }
    
    func TestValidateOverhead(t *testing.T) {
    	tests := []struct {
    		name         string
    		runtimeClass *nodev1.RuntimeClass
    		pod          *core.Pod
    		expectError  bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation_test.go

    			if diff := cmp.Diff(tc.wantFieldErrors, errs); diff != "" {
    				t.Errorf("unexpected field errors (-want, +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestValidateOverhead(t *testing.T) {
    	successCase := []struct {
    		Name     string
    		overhead core.ResourceList
    	}{{
    		Name: "Valid Overhead for CPU + Memory",
    		overhead: core.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top