Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for Jest (0.15 sec)

  1. istioctl/pkg/proxystatus/proxystatus_test.go

    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	cmdutil "k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/istioctl/pkg/multixds"
    	"istio.io/istio/istioctl/pkg/xds"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    type execTestCase struct {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. istioctl/pkg/cli/context_test.go

    package cli
    
    import "testing"
    
    func Test_handleNamespace(t *testing.T) {
    	ns := handleNamespace("test", "default")
    	if ns != "test" {
    		t.Fatalf("Get the incorrect namespace: %q back", ns)
    	}
    
    	tests := []struct {
    		description      string
    		namespace        string
    		defaultNamespace string
    		wantNamespace    string
    	}{
    		{
    			description:      "return test namespace",
    			namespace:        "test",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			ic := util.ReadFile(t, test.inputConfig)
    			cd := configdump.Wrapper{}
    			err := cd.UnmarshalJSON(ic)
    			if err != nil {
    				t.Fatal(err)
    			}
    			out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort)
    			if err != nil {
    				t.Fatal(err)
    			}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"os"
    	"testing"
    
    	"istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestConfigWriter_Prime(t *testing.T) {
    	tests := []struct {
    		name        string
    		wantConfigs int
    		inputFile   string
    		wantErr     bool
    	}{
    		{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. cni/pkg/install/install_test.go

    package install
    
    import (
    	"context"
    	"os"
    	"path/filepath"
    	"sync/atomic"
    	"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"
    	"istio.io/istio/pkg/util/sets"
    )
    
    func TestCheckInstall(t *testing.T) {
    	cases := []struct {
    		name              string
    		expectedFailure   bool
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/generate_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/serializer"
    
    	"istio.io/api/label"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    var (
    	defaultRevisionCanonicalWebhook = admitv1.MutatingWebhookConfiguration{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   "istio-sidecar-injector",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  7. cni/pkg/pluginlistener/listener_test.go

    import (
    	"context"
    	"net"
    	"path/filepath"
    	"testing"
    
    	"google.golang.org/grpc"
    	"google.golang.org/grpc/credentials/insecure"
    )
    
    func TestCNIListener(t *testing.T) {
    	f := filepath.Join(t.TempDir(), "test")
    	l, err := NewListener(f)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	defer l.Close()
    	conn, err := connect(f)
    	if err != nil {
    		t.Fatalf("failed to connect %v", err)
    	}
    	conn.Close()
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 21:58:32 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. cni/test/install_k8s_test.go

    // This tests the k8s installation.  It validates the CNI plugin configuration
    // and the existence of the CNI plugin binary locations.
    package install_test
    
    import (
    	"testing"
    
    	install "istio.io/istio/cni/test"
    	"istio.io/istio/pkg/test/env"
    )
    
    var (
    	Hub = "gcr.io/istio-release"
    	Tag = "master-latest-daily"
    )
    
    type testCase struct {
    	name             string
    	chainedCNIPlugin bool
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/listener_test.go

    zirain <******@****.***> 1694446170 +0800
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. istioctl/pkg/dashboard/dashboard_test.go

    Xiaopeng Han <******@****.***> 1700529444 +0800
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top