Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for CallOrFail (0.17 sec)

  1. tests/integration/telemetry/api/stats_test.go

    	})
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func SendTrafficOrFail(t test.Failer, from echo.Instance) {
    	from.CallOrFail(t, echo.CallOptions{
    		To: GetTarget(),
    		Port: echo.Port{
    			Name: "http",
    		},
    		Check: check.OK(),
    	})
    	from.CallOrFail(t, echo.CallOptions{
    		To: apps.Naked,
    		Port: echo.Port{
    			Name: "http",
    		},
    		Retry: echo.Retry{
    			NoRetry: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. tests/integration/pilot/multiplecontrolplanes/main_test.go

    					from:       apps.NS[2].B,
    					to:         apps.NS[0].B,
    				},
    			}
    
    			for _, tc := range testCases {
    				t.NewSubTest(tc.name).Run(func(t framework.TestContext) {
    					tc.from[0].CallOrFail(t, echo.CallOptions{
    						To: tc.to,
    						Port: echo.Port{
    							Protocol:    protocol.HTTP,
    							ServicePort: 80,
    						},
    						Check: check.And(
    							check.ErrorOrStatus(tc.statusCode),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. tests/integration/security/policy_attachment_only/jwt_gateway_test.go

    								opts := echo.CallOptions{
    									Port: echo.Port{
    										Protocol: protocol.HTTP,
    									},
    								}
    
    								c.customizeCall(&opts, to)
    
    								from.CallOrFail(t, opts)
    							})
    						}
    					})
    			})
    		})
    }
    
    func TestGatewayAPIAuthorizationPolicy(t *testing.T) {
    	framework.NewTest(t).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. tests/integration/security/jwt_test.go

    									To: to,
    									Port: echo.Port{
    										Name: "http",
    									},
    								}
    
    								// Apply any custom options for the test.
    								c.customizeCall(t, from, &opts)
    
    								from.CallOrFail(t, opts)
    							})
    						}
    					})
    				}
    			}
    
    			t.NewSubTest("authn-only").Run(newTest("testdata/requestauthn/authn-only.yaml.tmpl", []testCase{
    				{
    					name: "valid-token-noauthz",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  5. tests/integration/ambient/waypoint_test.go

    					}
    					for _, host := range apps.Captured.Config().HostnameVariants() {
    						host := host
    						t.NewSubTestf("to %s", host).Run(func(t framework.TestContext) {
    							src.CallOrFail(t, echo.CallOptions{
    								To:      apps.Captured,
    								Address: host,
    								Port:    echo.Port{Name: "http"},
    								Scheme:  scheme.HTTP,
    								Count:   10,
    								Check: check.And(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. tests/integration/security/remote_jwks/remote_jwks_test.go

    							opts := echo.CallOptions{
    								To: to,
    								Port: echo.Port{
    									Name: "http",
    								},
    							}
    
    							c.customizeCall(t, from, &opts)
    
    							from.CallOrFail(t, opts)
    						})
    				})
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. tests/integration/security/ca_custom_root/trust_domain_alias_secure_naming_test.go

    								Scheme:  s,
    							}
    							if success {
    								opts.Check = check.And(check.OK(), check.ReachedTargetClusters(t))
    							} else {
    								opts.Check = check.NotOK()
    							}
    
    							from.CallOrFail(t, opts)
    						})
    					}
    
    					client := match.Cluster(cluster).FirstOrFail(t, client)
    					cases := []struct {
    						src    echo.Instance
    						dest   echo.Instances
    						expect bool
    					}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/match/matchers_test.go

    func (f fakeInstance) Clusters() cluster.Clusters {
    	panic("implement me")
    }
    
    func (f fakeInstance) Call(echo.CallOptions) (echo.CallResult, error) {
    	panic("implement me")
    }
    
    func (f fakeInstance) CallOrFail(test.Failer, echo.CallOptions) echo.CallResult {
    	panic("implement me")
    }
    
    func (f fakeInstance) UpdateWorkloadLabel(add map[string]string, remove []string) error {
    	panic("implement me")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. tests/integration/pilot/locality_test.go

    			}
    		}
    		return nil
    	}
    	// This is a hack to remain infrastructure agnostic when running these tests
    	// We actually call the host set above not the endpoint we pass
    	_ = from.CallOrFail(t, echo.CallOptions{
    		To: from,
    		Port: echo.Port{
    			Name: "http",
    		},
    		HTTP: echo.HTTP{
    			Headers: headers,
    		},
    		Count: sendCount,
    		Check: checker,
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tests/integration/pilot/common/traffic.go

    				if opts.Check == nil {
    					opts.Check = check.OK()
    				}
    				return opts
    			}
    			if optsSpecified {
    				from.CallOrFail(t, buildOpts(c.opts))
    			}
    			for _, child := range c.children {
    				t.NewSubTest(child.name).Run(func(t framework.TestContext) {
    					from.CallOrFail(t, buildOpts(child.opts))
    				})
    			}
    		}
    
    		if c.toN > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 19:10:01 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top