Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for CallOrFail (0.24 sec)

  1. tests/integration/telemetry/policy/envoy_ratelimit_test.go

    	}
    	return func() {
    		ctx.ConfigIstio().YAML(ist.Settings().SystemNamespace, con).DeleteOrFail(ctx)
    	}
    }
    
    func sendTrafficAndCheckIfRatelimited(t framework.TestContext) {
    	t.Helper()
    	clt.CallOrFail(t, echo.CallOptions{
    		To: srv,
    		Port: echo.Port{
    			Name: "http",
    		},
    		Count: 5,
    		Check: check.TooManyRequests(),
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tests/integration/telemetry/api/wasmplugin_test.go

    		HTTP: echo.HTTP{
    			Path:   "/path",
    			Method: "GET",
    		},
    		Count: 1,
    		Retry: echo.Retry{
    			Options: append(defaultOptions, options...),
    		},
    		Check: checker,
    	}
    
    	_ = cltInstance.CallOrFail(ctx, httpOpts)
    }
    
    func sendTrafficToHostname(ctx framework.TestContext, checker echo.Checker, hostname string, options ...retry.Option) {
    	ctx.Helper()
    	if len(GetClientInstances()) == 0 {
    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/security/util/cert/cert.go

    )
    
    // DumpCertFromSidecar gets the certificates served by the destination.
    func DumpCertFromSidecar(t test.Failer, from echo.Instance, to echo.Target, port string) []string {
    	result := from.CallOrFail(t, echo.CallOptions{
    		To:    to,
    		Count: 1,
    		Port: echo.Port{
    			Name: port,
    		},
    		Scheme: scheme.TLS,
    		TLS: echo.TLS{
    			Alpn: []string{"istio"},
    		},
    		Check: check.NoError(),
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 16:44:37 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. tests/integration/security/ca_custom_root/trust_domain_validation_test.go

    										Key:  trustDomains[td].key,
    									},
    									Check: check.OK(),
    								}
    							}
    							if !allow {
    								opt.Check = check.ErrorContains("tls: unknown certificate")
    							}
    							from.CallOrFail(t, opt)
    						})
    					}
    
    					// Request using plaintext should always allowed.
    					verify(t, client, "plaintext", httpPlaintext, scheme.HTTP, true)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tests/integration/pilot/workloadentry_test.go

    					for _, src := range apps.A.Instances() {
    						src := src
    						// TODO possibly can run parallel
    						t.NewSubTestf("from %s", src.Clusters().Default().Name()).Run(func(t framework.TestContext) {
    							src.CallOrFail(t, echo.CallOptions{
    								// check that we lb to all the networks (we won't reach non-config clusters because of the topology.istio.io/cluster selector)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. tests/integration/security/egress_gateway_origination_test.go

    					newTLSGatewayTest(t).
    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							callOpt := newTLSGatewayCallOpts(to, host, tc.statusCode, tc.useGateway)
    							from.CallOrFail(t, callOpt)
    						})
    				})
    			}
    		})
    }
    
    // TestMutualTlsOrigination test MUTUAL TLS mode with TLS origination happening at Gateway proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tests/integration/security/normalization_test.go

    									checker := check.URL(expected.out)
    									if expected.out == "400" {
    										checker = check.Status(http.StatusBadRequest)
    									}
    									from.CallOrFail(t, echo.CallOptions{
    										To:    to,
    										Count: 1,
    										HTTP: echo.HTTP{
    											Path: expected.in,
    										},
    										Port: echo.Port{
    											Name: "http",
    										},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/ingress.go

    	}
    
    	return addrs
    }
    
    func (c *ingressImpl) Call(options echo.CallOptions) (echo.CallResult, error) {
    	return c.callEcho(options)
    }
    
    func (c *ingressImpl) CallOrFail(t test.Failer, options echo.CallOptions) echo.CallResult {
    	t.Helper()
    	resp, err := c.Call(options)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return resp
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. tests/integration/security/authz_test.go

    								},
    								HTTP: echo.HTTP{
    									Headers: headers.New().WithHost(c.host).Build(),
    								},
    								Check: check.And(check.NoError(), check.Status(wantCode)),
    							}
    							from.CallOrFail(t, opts)
    						})
    					}
    				})
    		})
    }
    
    func TestAuthz_NotMethod(t *testing.T) {
    	// NOTE: negative match for mtls is tested by TestAuthz_DenyPlaintext.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  10. tests/integration/security/pass_through_filter_chain_test.go

    									mtlsString = "plaintext"
    								}
    								testName := fmt.Sprintf("%s/%s(%s)", mtlsString, p.Name, allow)
    								t.NewSubTest(testName).Run(func(t framework.TestContext) {
    									from.CallOrFail(t, opts)
    								})
    							}
    						})
    				})
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top