Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestResourceByName (0.29 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    		replaced := b.ReplaceAliases(test.arg)
    		if replaced != test.expected {
    			t.Errorf("%s: unexpected argument: expected %s, got %s", test.name, test.expected, replaced)
    		}
    	}
    }
    
    func TestResourceByName(t *testing.T) {
    	pods, _ := testData()
    	b := newDefaultBuilderWith(fakeClientWith("", t, map[string]string{
    		"/namespaces/test/pods/foo": runtime.EncodeOrDie(corev1Codec, &pods.Items[0]),
    	})).NamespaceParam("test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
Back to top