Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testSetUp (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    }
    
    func TestCreate(t *testing.T) {
    	ctx, store, etcdClient := testSetup(t)
    	storagetesting.RunTestCreate(ctx, t, store, checkStorageInvariants(etcdClient, store.codec))
    }
    
    func TestCreateWithTTL(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestCreateWithTTL(ctx, t, store)
    }
    
    func TestCreateWithKeyExist(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestCreateWithKeyExist(ctx, t, store)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    	ctx, cacher, terminate := testSetup(t)
    	t.Cleanup(terminate)
    	storagetesting.RunTestCreate(ctx, t, cacher, checkStorageInvariants)
    }
    
    func TestCreateWithTTL(t *testing.T) {
    	ctx, cacher, terminate := testSetup(t)
    	t.Cleanup(terminate)
    	storagetesting.RunTestCreateWithTTL(ctx, t, cacher)
    }
    
    func TestCreateWithKeyExist(t *testing.T) {
    	ctx, cacher, terminate := testSetup(t)
    	t.Cleanup(terminate)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    	"k8s.io/utils/ptr"
    )
    
    func TestWatch(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestWatch(ctx, t, store)
    }
    
    func TestClusterScopedWatch(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestClusterScopedWatch(ctx, t, store)
    }
    
    func TestNamespaceScopedWatch(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestNamespaceScopedWatch(ctx, t, store)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (1)
  4. tests/integration/telemetry/tracing/otelcollector/tracing_test.go

    					})
    			}
    		})
    }
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(tracing.GetIstioInstance(), setupConfig)).
    		Setup(tracing.TestSetup).
    		Setup(testSetup).
    		Run()
    }
    
    // TODO: convert test to Telemetry API for both scenarios
    func setupConfig(_ resource.Context, cfg *istio.Config) {
    	if cfg == nil {
    		return
    	}
    	cfg.ControlPlaneValues = `
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:30 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tests/integration/telemetry/tracing/zipkin/main_test.go

    )
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(tracing.GetIstioInstance(), setupConfig)).
    		Setup(tracing.TestSetup).
    		Run()
    }
    
    func setupConfig(ctx resource.Context, cfg *istio.Config) {
    	if cfg == nil {
    		return
    	}
    	cfg.Values["meshConfig.enableTracing"] = "true"
    	cfg.Values["pilot.traceSampling"] = "100.0"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 07 16:59:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. tests/integration/telemetry/policy/envoy_ratelimit_test.go

    	framework.
    		NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(&ist, nil)).
    		Setup(testSetup).
    		Setup(setupPrometheus).
    		Run()
    }
    
    func setupPrometheus(ctx resource.Context) (err error) {
    	prom, err = prometheus.New(ctx, prometheus.Config{})
    	return err
    }
    
    func testSetup(ctx resource.Context) (err error) {
    	echoNsInst, err = namespace.New(ctx, namespace.Config{
    		Prefix: "istio-echo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. tests/integration/telemetry/tracing/tracing.go

    func GetAppNamespace() namespace.Instance {
    	return appNsInst
    }
    
    func GetIngressInstance() ingress.Instance {
    	return ingInst
    }
    
    func GetZipkinInstance() zipkin.Instance {
    	return zipkinInst
    }
    
    func TestSetup(ctx resource.Context) (err error) {
    	appNsInst, err = namespace.New(ctx, namespace.Config{
    		Prefix: "echo",
    		Inject: true,
    	})
    	if err != nil {
    		return
    	}
    	builder := deployment.New(ctx)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 19:05:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/server_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config/testing/defaults"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    func TestSetup(t *testing.T) {
    	// temp dir
    	tmpDir, err := os.MkdirTemp("", "scheduler-options")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpDir)
    
    	// https server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. pkg/volume/emptydir/empty_dir_test.go

    	}
    	if config.volumeDirExists {
    		if err := os.MkdirAll(volPath, perm); err != nil {
    			t.Errorf("fail to create path: %s", volPath)
    		}
    	}
    
    	// Stat the directory and check the permission bits
    	testSetUp(mounter, metadataDir, volPath)
    
    	log := physicalMounter.GetLog()
    	// Check the number of mounts performed during setup
    	if e, a := config.expectedSetupMounts, len(log); e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top