Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 6,558 for expect2 (0.18 sec)

  1. pkg/test/util/yml/cache_test.go

    	g.Expect(err).To(BeNil())
    
    	keys := c.AllKeys()
    	g.Expect(keys).To(HaveLen(1))
    	g.Expect(keys1).To(HaveLen(1))
    	g.Expect(keys2).To(HaveLen(1))
    	g.Expect(keys).To(ContainElement(keys1[0]))
    	g.Expect(keys).To(ContainElement(keys2[0]))
    
    	items, err := os.ReadDir(d)
    	g.Expect(err).To(BeNil())
    	g.Expect(items).To(HaveLen(1))
    }
    
    func TestCache_Clear(t *testing.T) {
    	g := NewWithT(t)
    	d := t.TempDir()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    		t.Fatalf("RemoveVolumeFromReportAsAttached failed. Expected: <no error> Actual: <%v>", markDesireToDetachErr)
    	}
    	if addErr != nil {
    		t.Fatalf("AddVolumeNode failed. Expected: <no error> Actual: <%v>", addErr)
    	}
    
    	// Assert
    	attachedVolumes := asw.GetAttachedVolumes()
    	if len(attachedVolumes) != 1 {
    		t.Fatalf("len(attachedVolumes) Expected: <1> Actual: <%v>", len(attachedVolumes))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/quota_linux_test.go

    			fail = true
    			t.Errorf("Case %v (%s, %s, %v) podQuotaCount mismatch: got %v, expect %v", seq, testcase.name, testcase.path, enabled, len(podQuotaMap), expectedPodQuotaCount)
    		}
    		if len(dirQuotaMap) != expectedDirQuotaCount {
    			fail = true
    			t.Errorf("Case %v (%s, %s, %v) dirQuotaCount mismatch: got %v, expect %v", seq, testcase.name, testcase.path, enabled, len(dirQuotaMap), expectedDirQuotaCount)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. utils/tests/utils.go

    		}
    
    		if expect != nil {
    			expect = reflect.Indirect(reflect.ValueOf(expect)).Interface()
    		}
    
    		if reflect.ValueOf(got).IsValid() != reflect.ValueOf(expect).IsValid() {
    			t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), expect, got)
    			return
    		}
    
    		if reflect.ValueOf(got).Kind() == reflect.Slice {
    			if reflect.ValueOf(expect).Kind() == reflect.Slice {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. pkg/credentialprovider/config_test.go

    	if err != nil {
    		t.Errorf("Received unexpected error: %v", err)
    	}
    
    	if !reflect.DeepEqual(expect, output) {
    		t.Errorf("Received unexpected output. Expected %#v, got %#v", expect, output)
    	}
    }
    
    func TestDockerConfigEntryJSONDecode(t *testing.T) {
    	tests := []struct {
    		input  []byte
    		expect DockerConfigEntry
    		fail   bool
    	}{
    		// simple case, just decode the fields
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. pkg/model/proxy_test.go

    func TestStringList(t *testing.T) {
    	cases := []struct {
    		in          string
    		expect      model.StringList
    		noRoundTrip bool
    	}{
    		{in: `"a,b,c"`, expect: []string{"a", "b", "c"}},
    		{in: `"\"a,b,c"`, expect: []string{`"a`, "b", "c"}},
    		{in: `"a"`, expect: []string{"a"}},
    		{in: `""`, expect: []string{}},
    		{in: `"123,@#$#,abcdef"`, expect: []string{"123", "@#$#", "abcdef"}},
    	}
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields_test.go

    			if err != nil {
    				t.Fatalf("did not expect decoding error but got: %v", err)
    			}
    			if !reflect.DeepEqual(decoded, test.expected) {
    				t.Fatalf("expected:\n%v\nbut got:\n%v", test.expected, decoded)
    			}
    		})
    	}
    }
    
    func TestSortEncodedManagedFields(t *testing.T) {
    	tests := []struct {
    		name          string
    		managedFields []metav1.ManagedFieldsEntry
    		expected      []metav1.ManagedFieldsEntry
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. tests/integration/pilot/revisions/uninstall_test.go

    	// for purge case we expect all resources removed
    	if purge {
    		if len(reStrList) != 0 {
    			msg := fmt.Sprintf("resources expected to be pruned but still exist in the cluster: %s",
    				strings.Join(reStrList, " "))
    			scopes.Framework.Warnf(msg)
    			return fmt.Errorf(msg)
    		}
    		return nil
    	}
    	// for other cases, we expect base component resources to be kept.
    	if len(reStrList) != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. operator/pkg/util/progress/progress_test.go

    	bar.ReportError("some error")
    	expect(`❌ ` + cnbo + ` encountered an error: some error`)
    
    	foo.ReportProgress()
    	expect(`- Processing resources for ` + cnpo + `.`)
    
    	foo.ReportFinished()
    	expect(`🧠 ` + cnpo + ` installed`)
    
    	p.SetState(StatePruning)
    	expect(`- Pruning removed resources`)
    
    	p.SetState(StateComplete)
    	expect(`✅ Installation complete`)
    
    	p.SetState(StateUninstallComplete)
    	expect(`✅ Uninstall complete`)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. pkg/config/schema/collection/schemas_test.go

    			g := NewWithT(t)
    			actual := c.actual()
    			g.Expect(actual).To(Equal(c.expected))
    		})
    	}
    }
    
    func TestSchemas_Remove(t *testing.T) {
    	g := NewWithT(t)
    
    	schemas := collection.SchemasFor(emptyResource, structResource)
    	g.Expect(schemas.Remove(structResource)).To(Equal(collection.SchemasFor(emptyResource)))
    	g.Expect(schemas.Remove(emptyResource, structResource)).To(Equal(collection.SchemasFor()))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top