Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,135 for fake0 (0.04 sec)

  1. pkg/kubelet/volumemanager/volume_manager_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: testHostname},
    		Status: v1.NodeStatus{
    			VolumesAttached: []v1.AttachedVolume{
    				{
    					Name:       "fake/fake-device",
    					DevicePath: "fake/path",
    				},
    			}},
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "abc",
    			Namespace: "nsA",
    			UID:       "1234",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/LoggingDeprecatedFeatureHandlerTest.groovy

        }
    
        def 'fake call with #deprecationTracePropertyName=true logs full stack trace.'() {
            given:
            System.setProperty(deprecationTracePropertyName, 'true')
            useStackTrace(fakeStackTrace)
    
            when:
            handler.featureUsed(new DeprecatedFeatureUsage(deprecatedFeatureUsage('fake')))
            def events = outputEventListener.events
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 16:09:54 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. pkg/controller/deployment/rolling_test.go

    		if !test.scaleExpected {
    			if scaled || len(fake.Actions()) > 0 {
    				t.Errorf("unexpected scaling: %v", fake.Actions())
    			}
    			continue
    		}
    		if test.scaleExpected && !scaled {
    			t.Errorf("expected scaling to occur")
    			continue
    		}
    		if len(fake.Actions()) != 1 {
    			t.Errorf("expected 1 action during scale, got: %v", fake.Actions())
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    	}
    
    	fakePluginCount := dswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    		t.Errorf("Expected 1 fake-plugin volume in DesiredStateOfWorld, got %d", fakePluginCount)
    	}
    
    	aswCount, ok := totalVolumesMap["actual_state_of_world"]
    	if !ok {
    		t.Errorf("Expected actual_state_of_world, got nothing")
    	}
    
    	fakePluginCount = aswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi.go

    	openapi "k8s.io/kube-openapi/pkg/util/proto"
    )
    
    // Fake opens and returns a openapi swagger from a file Path. It will
    // parse only once and then return the same copy everytime.
    type Fake struct {
    	Path string
    
    	once     sync.Once
    	document *openapi_v2.Document
    	err      error
    }
    
    // OpenAPISchema returns the openapi document and a potential error.
    func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/metrics/metrics_test.go

    	}
    
    	fakePluginCount := dswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    		t.Errorf("getVolumeCount failed. Expected <1> fake-plugin volume in DesiredStateOfWorld, got <%d>",
    			fakePluginCount)
    	}
    
    	aswCount, ok := count["actual_state_of_world"]
    	if !ok {
    		t.Errorf("getVolumeCount failed. Expected <actual_state_of_world>, got nothing")
    	}
    
    	fakePluginCount = aswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. pkg/kubelet/network/dns/dns_other_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package dns
    
    var (
    	defaultResolvConf = "/etc/resolv.conf"
    	// configurer.getHostDNSConfig is faked on Windows, while it is not faked on Linux.
    	fakeGetHostDNSConfigCustom = getHostDNSConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 804 bytes
    - Viewed (0)
  8. pkg/scheduler/eventhandlers_test.go

    				return st.MakeNode().Name("fake-node").Label("hostname", "fake-node").Capacity(cpu8).Obj()
    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Name("p").HostPort(80).Obj(),
    			},
    			pods: []*v1.Pod{
    				st.MakePod().Name("p1").Req(cpu4).NodeAffinityNotIn("hostname", []string{"fake-node"}).Obj(),
    				st.MakePod().Name("p2").Req(cpu16).NodeAffinityIn("hostname", []string{"fake-node"}).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. pkg/controller/certificates/rootcacertpublisher/publisher_test.go

    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes/fake"
    	corev1listers "k8s.io/client-go/listers/core/v1"
    	clienttesting "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/kubernetes/pkg/controller"
    )
    
    func TestConfigMapCreation(t *testing.T) {
    	ns := metav1.NamespaceDefault
    	fakeRootCA := []byte("fake-root-ca")
    
    	caConfigMap := defaultCrtConfigMapPtr(fakeRootCA)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_cc_cache_issue64423.txt

    # this test, we instead simulate it by injecting a fake "clang"
    # binary that runs the real one as a subprocess.
    
    [!cgo] skip
    [short] skip 'builds and links a fake clang binary'
    [!cc:clang] skip 'test is specific to clang version parsing'
    
    # Save the location of the real clang command for our fake one to use.
    go run ./which clang
    cp stdout $WORK/.realclang
    
    # Build a fake clang and ensure that it is the one in $PATH.
    mkdir $WORK/bin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:13:29 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top