Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 56 of 56 for NewWithT (0.11 sec)

  1. pkg/config/mesh/kubemesh/watcher_test.go

    		{deleted: cm, expect: mesh.DefaultMeshConfig()},
    		{added: badCM, expect: mesh.DefaultMeshConfig()},
    	}
    
    	for i, step := range steps {
    		t.Run(fmt.Sprintf("[%v]", i), func(t *testing.T) {
    			g := NewWithT(t)
    
    			switch {
    			case step.added != nil:
    				_, err := cms.Create(context.TODO(), step.added, metav1.CreateOptions{})
    				g.Expect(err).Should(BeNil())
    			case step.updated != nil:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. pkg/bootstrap/config_test.go

    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:                          "test",
    		Envs:                        os.Environ(),
    		ExitOnZeroActiveConnections: true,
    	})
    
    	g := NewWithT(t)
    	g.Expect(err).Should(BeNil())
    	g.Expect(node.Metadata.Owner).To(Equal(expectOwner))
    	g.Expect(node.Metadata.WorkloadName).To(Equal(expectWorkloadName))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. tests/integration/pilot/istioctl_test.go

    			podID, err := getPodID(apps.A[0])
    			if err != nil {
    				t.Fatalf("Could not get Pod ID: %v", err)
    			}
    
    			var output string
    			var args []string
    			g := NewWithT(t)
    
    			args = []string{
    				"--namespace=dummy",
    				"pc", "bootstrap", fmt.Sprintf("%s.%s", podID, apps.Namespace.Name()),
    			}
    			output, _ = istioCtl.InvokeOrFail(t, args)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. pkg/bootstrap/option/instances_test.go

    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.testName, func(t *testing.T) {
    			g := NewWithT(t)
    
    			params, err := option.NewTemplateParams(c.option)
    			if c.expectError {
    				g.Expect(err).ToNot(BeNil())
    			} else {
    				g.Expect(err).To(BeNil())
    				actual, ok := params[c.key]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret_test.go

    			} else if diff := cmp.Diff(got, c.want); diff != "" {
    				tt.Fatalf(" got %v\nwant %v\ndiff %v", got, c.want, diff)
    			}
    		})
    	}
    }
    
    func TestRemoteSecretOptions(t *testing.T) {
    	g := NewWithT(t)
    
    	ctx := cli.NewFakeContext(nil)
    	o := RemoteSecretOptions{}
    	flags := pflag.NewFlagSet("test", pflag.ContinueOnError)
    	o.addFlags(flags)
    	g.Expect(flags.Parse([]string{
    		"--name",
    		"valid-name",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  6. pilot/pkg/model/push_context_test.go

    				t.Errorf("WasmPlugins did not match expectations\n\ngot: %v\n\nexpected: %v", result, tc.expectedExtensions)
    			}
    		})
    	}
    }
    
    func TestServiceIndex(t *testing.T) {
    	g := NewWithT(t)
    	env := NewEnvironment()
    	env.ConfigStore = NewFakeStore()
    	env.ServiceDiscovery = &localServiceDiscovery{
    		services: []*Service{
    			{
    				Hostname: "svc-unset",
    				Ports:    allPorts,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
Back to top