Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for testing (0.17 sec)

  1. cni/pkg/plugin/plugin_test.go

    	// it should never be added, even if the namespace has the annotation
    	assert.Equal(t, wasCalled, false)
    }
    
    func TestCmdAdd(t *testing.T) {
    	pod, ns := buildFakePodAndNSForClient()
    	testDoAddRun(t, buildMockConf(true, ""), testNSName, pod, ns)
    }
    
    func TestCmdAddTwoContainersWithAnnotation(t *testing.T) {
    	pod, ns := buildFakePodAndNSForClient()
    
    	pod.Spec.Containers[0].Name = "mockContainer"
    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)
  2. cni/test/install_cni.go

    	if value, ok := os.LookupEnv(key); ok {
    		return value
    	}
    	return fallback
    }
    
    func setEnv(key, value string, t *testing.T) {
    	t.Helper()
    	err := os.Setenv(key, value)
    	if err != nil {
    		t.Fatalf("Couldn't set environment variable, err: %v", err)
    	}
    }
    
    func mktemp(dir, prefix string, t *testing.T) string {
    	t.Helper()
    	tempDir, err := os.MkdirTemp(dir, prefix)
    	if err != nil {
    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)
  3. cni/pkg/iptables/iptables_test.go

    // limitations under the License.
    
    package iptables
    
    import (
    	"net/netip"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	testutil "istio.io/istio/pilot/test/util"
    	dep "istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    func TestIptables(t *testing.T) {
    	cases := []struct {
    		name   string
    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"errors"
    	"net/netip"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	"golang.org/x/sys/unix"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    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)
  5. 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{},
    		},
    		{
    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)
  6. cni/pkg/install/kubeconfig_test.go

    import (
    	"os"
    	"path/filepath"
    	"testing"
    
    	"istio.io/istio/cni/pkg/config"
    	"istio.io/istio/cni/pkg/constants"
    	testutils "istio.io/istio/pilot/test/util"
    )
    
    const (
    	k8sServiceHost = "10.96.0.1"
    	k8sServicePort = "443"
    	kubeCAFilepath = "testdata/kube-ca.crt"
    	saToken        = "service_account_token_string"
    )
    
    func TestCreateValidKubeconfigFile(t *testing.T) {
    	tmp := t.TempDir()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/informers_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"fmt"
    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/mock"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/cni/pkg/util"
    	"istio.io/istio/pkg/config/constants"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/tag_test.go

    package tag
    
    import (
    	"bytes"
    	"context"
    	"strings"
    	"testing"
    
    	admitv1 "k8s.io/api/admissionregistration/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/kubernetes/fake"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/util"
    	"istio.io/istio/pkg/kube"
    )
    
    func TestTagList(t *testing.T) {
    	tcs := []struct {
    		name          string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/ecds_test.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"encoding/json"
    	"os"
    	"testing"
    
    	"istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestPrintEcdsSummary(t *testing.T) {
    	gotOut := &bytes.Buffer{}
    	cw := &ConfigWriter{Stdout: gotOut}
    	cd, _ := os.ReadFile("testdata/ecds/configdump.json")
    	cw.Prime(cd)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Dec 13 01:08:07 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  10. operator/cmd/mesh/operator_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package mesh
    
    import (
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	"k8s.io/client-go/kubernetes/fake"
    	"k8s.io/client-go/rest"
    	"sigs.k8s.io/controller-runtime/pkg/client"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/operator/pkg/util"
    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)
Back to top