- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewFakeContext (0.11 sec)
-
istioctl/pkg/workload/workload_test.go
expectedException: false, expectedOutput: customYAML, }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.description), func(t *testing.T) { verifyTestcaseOutput(t, Cmd(cli.NewFakeContext(nil)), c) }) } } func verifyTestcaseOutput(t *testing.T, cmd *cobra.Command, c testcase) { t.Helper() var out bytes.Buffer cmd.SetArgs(c.args) cmd.SetOut(&out) cmd.SetErr(&out)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 14.6K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
// ClusterName: testCluster, KubeOptions: KubeOptions{ Namespace: testNamespace, }, Type: c.secType, SecretName: c.secretName, } ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", Objects: c.objs, Namespace: testNamespace, Version: c.k8sMinorVersion, }) client, err := ctx.CLIClient()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 20.7K bytes - Viewed (0) -
istioctl/pkg/describe/describe_test.go
} } } func verifyExecAndK8sConfigTestCaseTestOutput(t *testing.T, c execAndK8sConfigTestCase) { t.Helper() ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ Namespace: c.namespace, IstioNamespace: c.istioNamespace, Results: c.configDumps, }) client, err := ctx.CLIClient() assert.NoError(t, err)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 30.8K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
wantError: true, // Since the directory has invalid files }, } for i, c := range cases { t.Run(fmt.Sprintf("[%v] %v", i, c.name), func(t *testing.T) { ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", }) validateCmd := NewValidateCommand(ctx) validateCmd.SilenceUsage = true validateCmd.SetArgs(c.args)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 02 16:18:14 UTC 2024 - 21.4K bytes - Viewed (0)