Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for newSpec (5.35 sec)

  1. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/JavaToolchainInputTest.groovy

            def base = new JavaToolchainInput(newSpec(11))
            def diff = new JavaToolchainInput(newSpec(14))
    
            expect:
            base.languageVersion != diff.languageVersion
            base.vendor == diff.vendor
            base.implementation == diff.implementation
        }
    
        def "change in vendor is a different input"() {
            given:
            def base = new JavaToolchainInput(newSpec(11, "adoptopenjdk"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    			oldSpecBefore := tc.oldSpec.DeepCopy()
    			dropDisabledFields(tc.newSpec, tc.oldSpec)
    			if !reflect.DeepEqual(tc.newSpec, tc.expectNewSpec) {
    				t.Error(cmp.Diff(tc.newSpec, tc.expectNewSpec))
    			}
    			if !reflect.DeepEqual(tc.oldSpec, oldSpecBefore) {
    				t.Error(cmp.Diff(tc.oldSpec, oldSpecBefore))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. pkg/api/persistentvolume/util_test.go

    			DropDisabledSpecFields(tc.newSpec, tc.oldSpec)
    			if !reflect.DeepEqual(tc.newSpec, tc.expectNewSpec) {
    				t.Error(cmp.Diff(tc.newSpec, tc.expectNewSpec))
    			}
    			if !reflect.DeepEqual(tc.oldSpec, tc.expectOldSpec) {
    				t.Error(cmp.Diff(tc.oldSpec, tc.expectOldSpec))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. pkg/apis/apps/validation/validation.go

    	templateUpdated := !apiequality.Semantic.DeepEqual(newSpec.Template, oldSpec.Template)
    	if newSpec.TemplateGeneration == oldSpec.TemplateGeneration && templateUpdated {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("templateGeneration"), newSpec.TemplateGeneration, "must be incremented upon template update"))
    	} else if newSpec.TemplateGeneration > oldSpec.TemplateGeneration && !templateUpdated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    	assert.Equal(oldSpec, body)
    	resp.Body.Close()
    
    	// verify we are able to update the served spec using the exposed service
    	newSpec := []byte(`{"swagger":"2.0","info":{"title":"Test Updated Generic API Server Swagger","version":"v0.1.0"},"paths":null}`)
    	swagger := new(spec.Swagger)
    	err = json.Unmarshal(newSpec, swagger)
    	assert.NoError(err)
    
    	err = s.OpenAPIVersionedService.UpdateSpec(swagger)
    	assert.NoError(err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. pkg/kube/util.go

    				})
    			}
    		}
    		oldSpec := pod.Spec
    		newSpec := corev1.PodSpec{
    			Containers:         containers,
    			ServiceAccountName: oldSpec.ServiceAccountName,
    			NodeName:           oldSpec.NodeName,
    			HostNetwork:        oldSpec.HostNetwork,
    			Hostname:           oldSpec.Hostname,
    			Subdomain:          oldSpec.Subdomain,
    		}
    		pod.Spec = newSpec
    		pod.Status.InitContainerStatuses = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. pkg/apis/batch/validation/validation_test.go

    				return
    			}
    
    			oldSpec := v.cronJob.DeepCopy()
    			oldSpec.ResourceVersion = "1"
    
    			newSpec := v.cronJob.DeepCopy()
    			newSpec.ResourceVersion = "2"
    			if v.update != nil {
    				v.update(newSpec)
    			}
    
    			errs = ValidateCronJobUpdate(newSpec, oldSpec, corevalidation.PodValidationOptions{})
    			if len(errs) > 0 {
    				err := errs[0]
    				if len(v.updateErr) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  8. pkg/apis/networking/validation/validation.go

    	return allErrs
    }
    
    // validateIngressClassSpecUpdate ensures that IngressClassSpec updates are
    // valid.
    func validateIngressClassSpecUpdate(newSpec, oldSpec *networking.IngressClassSpec, fldPath *field.Path) field.ErrorList {
    	return apivalidation.ValidateImmutableField(newSpec.Controller, oldSpec.Controller, fldPath.Child("controller"))
    }
    
    // validateIngressTypedLocalObjectReference ensures that Parameters fields are valid.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/time/time_test.go

    	for i := int64(0); i < 100; i++ {
    		sec := notMonoTime.Unix()
    		notMonoTime = notMonoTime.Add(Duration(i * 1e9))
    		if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 {
    			t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64)
    		}
    	}
    
    	// Test it with negative delta.
    	maxInt64 = -maxInt64
    	notMonoTime = NotMonoNegativeTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    		t.Fatalf("failed to get PVC: %v", err)
    	}
    
    	// Assume PVC
    	newPVC := pvc.DeepCopy()
    	newPVC.Annotations[volume.AnnSelectedNode] = "test-node"
    	if err := cache.Assume(newPVC); err != nil {
    		t.Fatalf("failed to assume PVC: %v", err)
    	}
    	if err := verifyPVC(cache, getPVCName(pvc), newPVC); err != nil {
    		t.Fatalf("failed to get PVC after assume: %v", err)
    	}
    
    	// Add old PVC
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top