Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for expectedPatch (0.16 sec)

  1. cmd/kubeadm/app/phases/markcontrolplane/markcontrolplane_test.go

    	// JSON provided by strategicpatch so that "expectedPatch" can use a
    	// string equality test instead of a logical JSON equality test. That
    	// will need to change if strategicpatch's behavior changes in the
    	// future.
    	tests := []struct {
    		name           string
    		existingLabels []string
    		existingTaints []v1.Taint
    		newTaints      []v1.Taint
    		expectedPatch  string
    	}{
    		{
    			name:           "apply default labels",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 25 14:22:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/patchnode/patchnode_test.go

    		name                       string
    		currentCRISocketAnnotation string
    		newCRISocketAnnotation     string
    		expectedPatch              string
    	}{
    		{
    			name:                       "CRI-socket annotation missing",
    			currentCRISocketAnnotation: "",
    			newCRISocketAnnotation:     "unix:///run/containerd/containerd.sock",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 12 15:15:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    			}
    			var expectedPatch interface{}
    			err = json.Unmarshal(tc.patch, &expectedPatch)
    			if err != nil {
    				t.Errorf("unexpected error unmarshaling patch: %v, %v", tc.patch, err)
    			}
    			if !reflect.DeepEqual(expectedPatch, p["patch"]) {
    				t.Errorf("unmarshaled patch doesn't match, want: %v, got: %v", expectedPatch, p["patch"])
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/version/version_test.go

    		expectedMajor         uint
    		expectedMinor         uint
    		expectedPatch         uint
    		expectedPreRelease    string
    		expectedBuildMetadata string
    	}{
    		{
    			version:            "1.0.2",
    			semver:             true,
    			expectedComponents: []uint{1, 0, 2},
    			expectedMajor:      1,
    			expectedMinor:      0,
    			expectedPatch:      2,
    		},
    		{
    			version:               "1.0.2-alpha+001",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    		Old            string
    		New            string
    		ExpectedPatch  string
    		ExpectedResult string
    	}{
    		"empty": {
    			Old:            `{}`,
    			New:            `{}`,
    			ExpectedPatch:  `{}`,
    			ExpectedResult: `{}`,
    		},
    		"int32 medium": {
    			Old:            `{"int32":1000000}`,
    			New:            `{"int32":1000000,"name":"newname"}`,
    			ExpectedPatch:  `{"name":"newname"}`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/index_test.go

    		}
    		if len(scenario.expectedMatch) != 0 && volume == nil {
    			t.Errorf("Expected match but received nil volume for scenario: %s", name)
    		}
    		if len(scenario.expectedMatch) != 0 && volume != nil && string(volume.UID) != scenario.expectedMatch {
    			t.Errorf("Expected %s but got volume %s in scenario %s", scenario.expectedMatch, volume.UID, name)
    		}
    		if len(scenario.expectedMatch) == 0 && volume != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  7. pkg/volume/util/hostutil/hostutil_test.go

    				if err == nil || err.Error() != tc.expectedError {
    					t.Fatalf("expected error message `%s` but got `%v`", tc.expectedError, err)
    				}
    				return
    			}
    
    			expectedPath := filepath.FromSlash(tc.expectedPath)
    			assert.Equal(t, expectedPath, path)
    		})
    	}
    }
    
    func createSocketFile(socketDir string) (string, error) {
    	testSocketFile := filepath.Join(socketDir, "mt.sock")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. pkg/fieldpath/fieldpath_test.go

    		fieldPath         string
    		expectedPath      string
    		expectedSubscript string
    		expectedOK        bool
    	}{
    		{
    			fieldPath:         "metadata.annotations['key']",
    			expectedPath:      "metadata.annotations",
    			expectedSubscript: "key",
    			expectedOK:        true,
    		},
    		{
    			fieldPath:         "metadata.annotations['a[b']c']",
    			expectedPath:      "metadata.annotations",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 06:26:55 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. pkg/volume/util/util_test.go

    			expectedPath: `c:\var\lib\kubelet\pods\146f8428-83e7-11e7-8dd4-000d3a31dac4\volumes\kubernetes.io~disk`,
    		},
    		{
    			path:         `/`,
    			expectedPath: `c:\`,
    		},
    		{
    			path:         ``,
    			expectedPath: ``,
    		},
    	}
    
    	for _, test := range tests {
    		result := GetWindowsPath(test.path)
    		if result != test.expectedPath {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/IvyResourcePatternTest.groovy

            def artifact = artifact(group, module, version)
    
            expect:
            pattern.getLocation(artifact).path == expectedPath
    
            where:
            group       | module     | version | expectedPath
            "group"     | "projectA" | "1.2"   | 'prefix/group-projectA/1.2/ivys/1.2/ivy.xml'
            "org.group" | "projectA" | "1.2"   | 'prefix/org.group-projectA/1.2/ivys/1.2/ivy.xml'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 17:19:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top