Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for testis (0.39 sec)

  1. cni/pkg/plugin/cnieventclient_test.go

    	assert.Error(t, err)
    	assert.Equal(t, strings.Contains(err.Error(), fmt.Sprintf("unable to push CNI event, error was %d", http.StatusInternalServerError)), true)
    }
    
    func TestPushCNIAddEventGoodPayload(t *testing.T) {
    	testPod := "testpod"
    	testNS := "testns"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/comparator_test.go

    // limitations under the License.
    
    package compare
    
    import (
    	"bytes"
    	"os"
    	"testing"
    )
    
    // TestComparatorMatchingConfigs tests the scenario where Istiod and Envoy configurations match
    func TestComparatorMatchingSameConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    	var outputBuffer bytes.Buffer
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. istioctl/pkg/wait/wait_test.go

    	// Typically use one of the three
    	expectedOutput string // Expected constant output
    
    	wantException bool
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	if c.wantException {
    		// Ensure tests do not hang for 30s
    		c.args = append(c.args, "--timeout=20ms")
    	}
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-generate_test.go

    		t.Fatalf("DockerInfoHub, DockerInfoTag got: %s,%s, want: %s, %s", iop.Spec.Hub, iop.Spec.Tag, version.DockerInfo.Hub, version.DockerInfo.Tag)
    	}
    }
    
    func runTestGroup(t *testing.T, tests testGroup) {
    	for _, tt := range tests {
    		tt := tt
    		t.Run(tt.desc, func(t *testing.T) {
    			t.Parallel()
    			inPath := filepath.Join(testDataDir, "input", tt.desc+".yaml")
    			outputSuffix := goldenFileSuffixHideChangesInReview
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  5. CODEOWNERS

    /tests/                                                          @istio/wg-test-and-release-maintainers
    /tests/integration/conformance/                                  @istio/wg-test-and-release-maintainers
    /tests/integration/framework/                                    @istio/wg-test-and-release-maintainers
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 19:22:33 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. operator/cmd/mesh/test-util_test.go

    }
    
    func mustSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    	kselector := labels2.Set(selector).AsSelectorPreValidated()
    	if !kselector.Matches(labels2.Set(labels)) {
    		t.Fatalf("%v does not select %v", selector, labels)
    	}
    }
    
    func mustNotSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. architecture/networking/controllers.md

    `kube.Client` just bundles these all in one place, so we have a single object to pass around anywhere we need Kubernetes access.
    Additionally, it has a fake client variant, that does the same thing but with fake clients for use in unit tests.
    
    Aside from this, there are a few conveniences and workarounds built-in to the client to make things simpler.
    
    *All Istio Kubernetes usage should use this library and not operate on Kubernetes clients directly.*
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 09 17:41:25 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. common/config/.golangci.yml

      # Default: []
      exclude-files:
        - ".*\\.pb\\.go"
        - ".*\\.gen\\.go"
      exclude-rules:
        # Exclude some linters from running on test files.
        - path: _test\.go$|^tests/|^samples/
          linters:
            - errcheck
            - maligned
        - path: _test\.go$
          text: "dot-imports: should not use dot imports"
        # We need to use the deprecated module since the jsonpb replacement is not backwards compatible.
    Others
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 19:22:39 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/fakes_test.go

    	f.addedPods.Add(1)
    	return f.addError
    }
    
    func (f *fakeZtunnel) Close() error {
    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig_test.go

    // limitations under the License.
    
    package install
    
    import (
    	"context"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    
    	"istio.io/istio/cni/pkg/config"
    	testutils "istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestGetDefaultCNINetwork(t *testing.T) {
    	tempDir := t.TempDir()
    
    	cases := []struct {
    		name            string
    		dir             string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top