- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestLabels (0.11 sec)
-
pkg/test/framework/label/labels_test.go
// See the License for the specific language governing permissions and // limitations under the License. package label import ( "strconv" "testing" ) func TestLabels(t *testing.T) { tests := []struct { filter string labels Set expected bool err bool }{ {filter: "", labels: nil, expected: true}, {filter: "", labels: NewSet(Postsubmit), expected: true},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 18 17:08:05 UTC 2021 - 3.2K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
testLabels := []LabelSet{} for _, namespaceLabel := range []klabels.Set{empty, revLabel, legacyLabel, legacyLabelDisabled, legacyAndRevLabel, legacyDisabledAndRevLabel} { for _, podLabel := range []klabels.Set{empty, revLabel, objEnabled, objDisable, objEnabledAndRev, objDisableAndRev} { testLabels = append(testLabels, LabelSet{namespaceLabel, podLabel}) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 18:05:06 UTC 2024 - 43.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
ctx := t.TestContext() testLabels := map[string]string{"key": "value"} foo3 := obj.DeepCopyObject() t.setObjectMeta(foo3, "foo3") foo4 := obj.DeepCopyObject() foo4Meta := t.getObjectMetaOrFail(foo4) foo4Meta.SetName("foo4") foo4Meta.SetNamespace(genericapirequest.NamespaceValue(ctx)) foo4Meta.SetLabels(testLabels) objs := ([]runtime.Object{foo3, foo4})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 55.8K bytes - Viewed (0)