Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for sendTraffic (0.24 sec)

  1. tests/integration/ambient/wasm_test.go

    		} else {
    			sendTraffic(t, check.ResponseHeader(injectedHeader, "0.0.1"))
    		}
    	})
    }
    
    func resetCustomWasmConfig(ctx framework.TestContext, pluginName, path string) {
    	ctx.NewSubTest("Delete WasmPlugin " + pluginName).Run(func(t framework.TestContext) {
    		if err := uninstallWasmExtension(t, pluginName, path); err != nil {
    			t.Fatal(err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 21:02:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. tests/integration/telemetry/api/wasmplugin_test.go

    		} else {
    			sendTraffic(t, check.ResponseHeader(injectedHeader, c.expectedVersion))
    		}
    	})
    }
    
    func resetWasm(ctx framework.TestContext, pluginName string) {
    	ctx.NewSubTest("Delete WasmPlugin " + pluginName).Run(func(t framework.TestContext) {
    		if err := uninstallWasmExtension(t, pluginName, wasmConfigFile); err != nil {
    			t.Fatal(err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. tests/integration/telemetry/tracing/tracing.go

    		ServiceName: fmt.Sprintf("client-%s.%s", clName, namespace),
    		ChildSpans:  []*zipkin.Span{&serverSpan},
    	}
    	return
    }
    
    // SendTraffic makes a client call to the "server" service on the http port.
    func SendTraffic(t framework.TestContext, headers map[string][]string, cl cluster.Cluster) error {
    	t.Helper()
    	t.Logf("Sending from %s...", cl.Name())
    	for _, cltInstance := range client {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 19:05:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. tests/integration/telemetry/tracing/zipkin/server_tracing_test.go

    				t.NewSubTest(cluster.StableName()).Run(func(t framework.TestContext) {
    					retry.UntilSuccessOrFail(t, func() error {
    						err := tracing.SendTraffic(t, nil, cluster)
    						if err != nil {
    							return fmt.Errorf("cannot send traffic from cluster %s: %v", cluster.Name(), err)
    						}
    						traces, err := tracing.GetZipkinInstance().QueryTraces(300,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tests/integration/telemetry/tracing/zipkin/client_tracing_test.go

    						// Send test traffic with a trace header.
    						id := uuid.NewString()
    						extraHeader := map[string][]string{
    							tracing.TraceHeader: {id},
    						}
    						err := tracing.SendTraffic(ctx, extraHeader, cluster)
    						if err != nil {
    							return fmt.Errorf("cannot send traffic from cluster %s: %v", cluster.Name(), err)
    						}
    						traces, err := tracing.GetZipkinInstance().QueryTraces(100,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. tests/integration/telemetry/api/istioctl_metrics_test.go

    func TestIstioctlMetrics(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			retry.UntilSuccessOrFail(t, func() error {
    				if err := SendTraffic(GetClientInstances()[0]); err != nil {
    					return err
    				}
    				return validateDefaultOutput(t, GetTarget().Config().Service)
    			}, retry.Delay(framework.TelemetryRetryDelay), retry.Timeout(framework.TelemetryRetryTimeout))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. tests/integration/telemetry/api/stats_test.go

    					}
    					return nil
    				})
    			}
    			if err := g.Wait(); err != nil {
    				t.Fatalf("test failed: %v", err)
    			}
    		})
    }
    
    // SendTraffic makes a client call to the "server" service on the http port.
    func SendTraffic(from echo.Instance) error {
    	_, err := from.Call(echo.CallOptions{
    		To: GetTarget(),
    		Port: echo.Port{
    			Name: "http",
    		},
    		Check: check.OK(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. tests/integration/telemetry/tracing/otelcollector/tracing_test.go

    							cluster := cluster
    							ctx.NewSubTest(cluster.StableName()).Run(func(ctx framework.TestContext) {
    								retry.UntilSuccessOrFail(ctx, func() error {
    									err := tracing.SendTraffic(ctx, nil, cluster)
    									if err != nil {
    										return fmt.Errorf("cannot send traffic from cluster %s: %v", cluster.Name(), err)
    									}
    
    									// the OTel collector exports to Zipkin
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:30 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top