Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestValidatePorts (0.33 sec)

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

    			Namespace: "foo",
    		},
    		Spec: spec,
    	}
    
    	if errs := ValidateResourceQuota(resourceQuota); len(errs) != 0 {
    		t.Errorf("expected success: %v", errs)
    	}
    }
    
    func TestValidatePorts(t *testing.T) {
    	successCase := []core.ContainerPort{
    		{Name: "abc", ContainerPort: 80, HostPort: 80, Protocol: "TCP"},
    		{Name: "easy", ContainerPort: 82, Protocol: "TCP"},
    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