Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for ExpectSuccess (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go

    		apiAuds       []string
    		respAuds      []string
    		expectSuccess bool
    	}{
    		{
    			name:          "no api audience and no audience in response",
    			apiAuds:       nil,
    			respAuds:      nil,
    			expectSuccess: true,
    		},
    		{
    			name:          "audience in response",
    			apiAuds:       nil,
    			respAuds:      []string{"other"},
    			expectSuccess: true,
    		},
    		{
    			name:          "with api audience",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. platforms/software/maven/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/maven/AbstractMavenPublishIntegTest.groovy

                    additionalArtifacts: additionalArtifacts?.asImmutable(),
                    variant: variant,
                    resolveModuleMetadata: withModuleMetadata,
                    expectFailure: !expectationSpec.expectSuccess,
                    optionalFeatureCapabilities: optionalFeatureCapabilities,
                )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/expectation.go

    	"strings"
    )
    
    // Expectation represents the expected result of some operation.
    type Expectation struct {
    	failure      bool
    	errorMatcher *regexp.Regexp
    }
    
    // ExpectSuccess returns an Expectation that trivially expects success.
    func ExpectSuccess() *Expectation {
    	return new(Expectation)
    }
    
    // Check validates whether err conforms to the expectation. Returns
    // an error if it does not conform.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. tests/integration/security/util/reachability/context.go

    								// TODO(https://github.com/istio/istio/issues/37629) go back to 5s
    								opts.Timeout = time.Second * 10
    
    								expectSuccess := c.ExpectSuccess(from, opts)
    								expectMTLS := c.ExpectMTLS(from, opts)
    								var tpe string
    								if expectSuccess {
    									tpe = "positive"
    									opts.Check = check.And(
    										check.OK(),
    										check.ReachedTargetClusters(t))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 23 21:20:43 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  5. platforms/software/ivy/src/testFixtures/groovy/org/gradle/api/publish/ivy/AbstractIvyPublishIntegTest.groovy

                    status: status,
                    variant: variant,
                    resolveModuleMetadata: withModuleMetadata,
                    expectFailure: !expectationSpec.expectSuccess,
                    optionalFeatureCapabilities: optionalFeatureCapabilities,
                )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. src/internal/trace/internal/testgen/go122/trace.go

    func (t *Trace) ExpectFailure(pattern string) {
    	t.bad = true
    	t.badMatch = regexp.MustCompile(pattern)
    }
    
    // ExpectSuccess writes down that the trace should successfully parse.
    func (t *Trace) ExpectSuccess() {
    	t.bad = false
    }
    
    // RawEvent emits an event into the trace. name must correspond to one
    // of the names in Specs() result for the version that was passed to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. tests/integration/ambient/baseline_test.go

    				return cfg.Apply(apply.Wait)
    			})
    			runTest(t, func(t framework.TestContext, src echo.Instance, dst echo.Instance, opt echo.CallOptions) {
    				expectSuccess := c.ExpectSuccess(src, opt)
    				expectMTLS := c.ExpectMTLS(src, opt)
    
    				var tpe string
    				if expectSuccess {
    					tpe = "positive"
    					opt.Check = check.And(
    						check.OK(),
    						check.ReachedTargetClusters(t))
    					if expectMTLS {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/server_test.go

    }
    
    func TestIstiodCipherSuites(t *testing.T) {
    	cases := []struct {
    		name               string
    		serverCipherSuites []uint16
    		clientCipherSuites []uint16
    		expectSuccess      bool
    	}{
    		{
    			name:          "default cipher suites",
    			expectSuccess: true,
    		},
    		{
    			name:               "client and istiod cipher suites match",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          int logFloor = BigIntegerMath.log10(x, FLOOR);
          boolean expectSuccess = TEN.pow(logFloor).equals(x);
          try {
            assertEquals(logFloor, BigIntegerMath.log10(x, UNNECESSARY));
            assertTrue(expectSuccess);
          } catch (ArithmeticException e) {
            assertFalse(expectSuccess);
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10HalfUp() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/IntMathTest.java

        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          int floor = IntMath.log10(x, FLOOR);
          boolean expectSuccess = IntMath.pow(10, floor) == x;
          try {
            assertEquals(floor, IntMath.log10(x, UNNECESSARY));
            assertTrue(expectSuccess);
          } catch (ArithmeticException e) {
            assertFalse(expectSuccess);
          }
        }
      }
    
      @GwtIncompatible // log10
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top