Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for DestMatcher (0.93 sec)

  1. tests/integration/security/https_jwt/https_jwt_test.go

    						}).
    						FromMatch(
    							// TODO(JimmyCYJ): enable VM for all test cases.
    							util.SourceMatcher(ns, true)).
    						ConditionallyTo(echotest.ReachableDestinations).
    						ToMatch(util.DestMatcher(ns, true)).
    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							opts := echo.CallOptions{
    								To: to,
    								Port: echo.Port{
    									Name: "http",
    								},
    							}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tests/integration/security/util/framework.go

    	})
    
    	if !skipVM {
    		m = match.Or(m, match.ServiceName(echo.NamespacedName{
    			Name:      VMSvc,
    			Namespace: ns,
    		}))
    	}
    
    	return m
    }
    
    // DestMatcher matches workload pod B with sidecar injected and VM
    func DestMatcher(ns namespace.Instance, skipVM bool) match.Matcher {
    	m := match.ServiceName(echo.NamespacedName{
    		Name:      BSvc,
    		Namespace: ns,
    	})
    
    	if !skipVM {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tests/integration/security/remote_jwks/remote_jwks_test.go

    						}).
    						FromMatch(
    							// TODO(JimmyCYJ): enable VM for all test cases.
    							util.SourceMatcher(ns, true)).
    						ConditionallyTo(echotest.ReachableDestinations).
    						ToMatch(util.DestMatcher(ns, true)).
    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							opts := echo.CallOptions{
    								To: to,
    								Port: echo.Port{
    									Name: "http",
    								},
    							}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. pkg/config/mesh/watcher_test_utils.go

    )
    
    // only used for testing, exposes a blocking Update method that allows test environments to trigger meshConfig updates
    type TestWatcher struct {
    	internalWatcher
    	doneCh chan struct{} // used to implement a blocking Update method
    }
    
    func NewTestWatcher(meshConfig *meshconfig.MeshConfig) *TestWatcher {
    	w := &TestWatcher{
    		internalWatcher: internalWatcher{},
    	}
    	w.internalWatcher.MeshConfig.Store(meshConfig)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 03 00:26:45 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    				return nil, false, err
    			}
    		}
    
    		return inPod, false, nil
    	}
    }
    
    func (p *testPatcher) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	p.t.Fatal("Unexpected call to testPatcher.Get")
    	return nil, errors.New("Unexpected call to testPatcher.Get")
    }
    
    type testNamer struct {
    	namespace string
    	name      string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    			updateValidation: rest.AdmissionToValidateObjectUpdateFunc(admit, staticUpdateAttributes, scope),
    			admissionCheck:   mutatingAdmission,
    
    			codec: codec,
    
    			options: options,
    
    			restPatcher: r,
    			name:        name,
    			patchType:   patchType,
    			patchBytes:  patchBytes,
    			userAgent:   req.UserAgent(),
    		}
    
    		result, wasCreated, err := p.patchResource(ctx, scope)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. pkg/test/framework/resource/matcher_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package resource
    
    import "testing"
    
    func TestMatcher(t *testing.T) {
    	cases := []struct {
    		name      string
    		input     []string
    		matches   []string
    		nomatches []string
    	}{
    		{
    			name:      "empty",
    			input:     []string{},
    			matches:   []string{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. pilot/pkg/keycertbundle/watcher_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package keycertbundle
    
    import (
    	"bytes"
    	"os"
    	"path"
    	"testing"
    )
    
    func TestWatcher(t *testing.T) {
    	watcher := NewWatcher()
    
    	// 1. no key cert bundle
    	_, watch1 := watcher.AddWatcher()
    	select {
    	case bundle := <-watch1:
    		t.Errorf("watched unexpected keyCertBundle: %v", bundle)
    		return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. src/testing/match_test.go

    			ok := true
    			if err := a.verify("", regexp.MatchString); err != nil {
    				ok = false
    			}
    			if ok {
    				t.Errorf("%s: expected error in any of %q", tc.pattern, a)
    			}
    		}
    	}
    }
    
    func TestMatcher(t *T) {
    	testCases := []struct {
    		pattern     string
    		skip        string
    		parent, sub string
    		ok          bool
    		partial     bool
    	}{
    		// Behavior without subtests.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:48:54 UTC 2022
    - 8K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    starting(); private void stopping(); public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement, org.junit.runner.Description); } org/junit/rules/TestWatcher$1.class package org.junit.rules; synchronized class TestWatcher$1 extends org.junit.runners.model.Statement { void TestWatcher$1(TestWatcher, org.junit.runner.Description, org.junit.runners.model.Statement); public void evaluate() throws Throwable; } org/junit/rules/ExpectedException.class package org.junit.rules;...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 373.7K bytes
    - Viewed (0)
Back to top