Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for expectedValue (0.65 sec)

  1. cluster/images/etcd/migrate/options_test.go

    		value         string
    		valueSet      bool
    		expectedValue string
    		expectedError bool
    	}{
    		{
    			desc:          "value unset",
    			env:           "FOO",
    			valueSet:      false,
    			expectedValue: "",
    			expectedError: true,
    		},
    		{
    			desc:          "value set empty",
    			env:           "FOO",
    			value:         "",
    			valueSet:      true,
    			expectedValue: "",
    			expectedError: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:55:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver_test.go

    		expression    string
    		expectedValue any
    	}{
    		{
    			name:          "not an object",
    			expression:    `string(114514)`,
    			expectedValue: "114514",
    		},
    		{
    			name:          "empty",
    			expression:    "Object{}",
    			expectedValue: map[string]any{},
    		},
    		{
    			name:       "Object.spec",
    			expression: "Object{spec: Object.spec{replicas: 3}}",
    			expectedValue: map[string]any{
    				"spec": map[string]any{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/authenticationconfig/metrics/metrics_test.go

    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(expectedValue), metrics...); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestAuthenticationConfigAutomaticReloadLastTimestampSeconds(t *testing.T) {
    	testCases := []struct {
    		expectedValue string
    		resultLabel   string
    		timestamp     int64
    	}{
    		{
    			expectedValue: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. pkg/apis/core/pods/helpers_test.go

    			expectedValue: "myValue",
    		},
    		{
    			version:       "v1",
    			label:         "spec.host",
    			value:         "127.0.0.1",
    			expectedLabel: "spec.nodeName",
    			expectedValue: "127.0.0.1",
    		},
    		{
    			version:       "v1",
    			label:         "status.podIPs",
    			value:         "10.244.0.6,fd00::6",
    			expectedLabel: "status.podIPs",
    			expectedValue: "10.244.0.6,fd00::6",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/metrics/metrics_test.go

    	if err := testutil.GatherAndCompare(registry, strings.NewReader(expectedValue), metricNames...); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestEncryptionConfigAutomaticReloadLastTimestampSeconds(t *testing.T) {
    	testCases := []struct {
    		expectedValue string
    		resultLabel   string
    		timestamp     int64
    	}{
    		{
    			expectedValue: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 05:47:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider_test.go

    	for _, tc := range []struct {
    		name          string
    		expression    string
    		expectedValue any
    	}{
    		{
    			name:          "not an object",
    			expression:    `2 * 31 * 1847`,
    			expectedValue: int64(114514), // type resolver should not interfere.
    		},
    		{
    			name:          "empty",
    			expression:    "Object{}",
    			expectedValue: map[string]any{},
    		},
    		{
    			name:          "Object.spec",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy

                def actualValue = getter(actual)
                def expectedValue = getter(expected)
                if (checker instanceof Closure) {
                    if (expectedValue instanceof Collection) {
                        assert actualValue instanceof Collection
                        checkCollection(actualValue, expectedValue, checker)
                    } else if (expectedValue instanceof Map) {
                        assert actualValue instanceof Map
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectTest.groovy

            String expectedValue = 'somevalue'
    
            when:
            project.convention.plugins.test = new TestConvention()
            project.convention.conv = expectedValue
    
            then:
            project."$propertyName" == expectedValue
            project.convention."$propertyName" == expectedValue
            child1."$propertyName" == expectedValue
        }
    
        def setPropertyAndPropertyMissingWithConventionProperty() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

    	{
    		dummyAuthorizer.decision = authorizer.DecisionAllow
    		_, _, _ = a.Authorize(context.Background(), nil)
    		expectedValue := prefix + `
    			apiserver_authorization_decisions_total{decision="allowed",name="myname",type="mytype"} 1
    		`
    		if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(expectedValue), metrics...); err != nil {
    			t.Fatal(err)
    		}
    		authorizationDecisionsTotal.Reset()
    	}
    
    	// deny
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics_test.go

    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(expectedValue), metrics...); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestAuthorizationConfigAutomaticReloadLastTimestampSeconds(t *testing.T) {
    	testCases := []struct {
    		expectedValue string
    		resultLabel   string
    		timestamp     int64
    	}{
    		{
    			expectedValue: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top