Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for tests (0.16 sec)

  1. istioctl/pkg/writer/envoy/configdump/endpoint_test.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"path"
    	"testing"
    
    	"istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestPrintEndpointsSummary(t *testing.T) {
    	tests := []struct {
    		name   string
    		filter EndpointFilter
    	}{
    		{
    			name:   "emptyfilter",
    			filter: EndpointFilter{},
    		},
    		{
    			name: "portfilter",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 12 02:25:59 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  2. operator/cmd/mesh/operator_test.go

    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			args := []string{"operator", "init", "--dry-run"}
    			if test.operatorNamespace != "" {
    				args = append(args, "--operatorNamespace", test.operatorNamespace)
    			}
    			if test.watchedNamespaces != "" {
    				args = append(args, "--watchedNamespaces", test.watchedNamespaces)
    			}
    
    			kubeClientFunc = func() (kube.CLIClient, error) {
    				return nil, nil
    			}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. bin/update_crds.sh

      fail "Unable to generate the CRDs for ${GATEWAY_VERSION}. Not updating the CRD file.";
    fi
    
    rm -f "${ROOTDIR}/tests/integration/pilot/testdata/gateway-api-crd.yaml"
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 14:28:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    const (
    	testPodName          = "testPod"
    	testNSName           = "testNS"
    	testSandboxDirectory = "/tmp"
    	invalidVersion       = "0.1.0"
    	preVersion           = "0.2.0"
    )
    
    var mockConfTmpl = `{
        "cniVersion": "%s",
    	"name": "istio-plugin-sample-test",
    	"type": "sample",
        "capabilities": {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net_test.go

    	).Return(nil)
    
    	netServer := fixture.netServer
    	err := netServer.syncHostIPSets([]*corev1.Pod{pod})
    	assert.NoError(t, err)
    	fakeIPSetDeps.AssertExpectations(t)
    }
    
    // for tests that call `runtime.GC()` - we have no control over when the GC is actually scheduled,
    // and it is flake-prone to check for closure after calling it, this retries for a bit to make
    // sure the netns is closed eventually.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver.go

    	c.mu.Lock()
    	defer c.mu.Unlock()
    	delete(c.connectionSet, conn)
    	if c.latestConn == conn {
    		c.latestConn = nil
    	}
    	ztunnelConnected.RecordInt(int64(len(c.connectionSet)))
    }
    
    // this is used in tests
    // nolint: unused
    func (c *connMgr) len() int {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	return len(c.connectionSet)
    }
    
    type ztunnelServer struct {
    	listener *net.UnixListener
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  7. cni/test/install_cni.go

    }
    
    // RunInstallCNITest sets up temporary directories and runs the test.
    //
    // Doing a go test install_cni.go by itself will not execute the test as the
    // file doesn't have a _test.go suffix, and this func doesn't start with a Test
    // prefix. This func is only meant to be invoked programmatically. A separate
    // install_cni_test.go file exists for executing this test.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables.go

    	//
    	// Note that SortedList is used here because the istio sets class has no order guarantees,
    	// and our unit tests will flake if rules have a nondeterministic ordering.
    	// CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT
    	//
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  9. 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)
  10. istioctl/pkg/writer/compare/comparator_test.go

    	}
    }
    
    // TestComparatorMismatchedConfigs tests the scenario where Istiod and Envoy configurations do not match
    func TestComparatorMismatchedConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    	diffCfg, err := os.ReadFile("testdata/configdump_diff.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    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)
Back to top