Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TrackResource (0.44 sec)

  1. tests/integration/operator/switch_cr_test.go

    			istioCtl.InvokeOrFail(t, initCmd)
    			t.TrackResource(&operatorDumper{rev: "v2"})
    
    			initCmd = []string{
    				"operator", "init",
    				"--hub=" + s.Image.Hub,
    				"--tag=" + tag,
    				"--manifests=" + ManifestPath,
    				"--revision=" + "v3",
    			}
    			// install third operator deployment with different revision
    			istioCtl.InvokeOrFail(t, initCmd)
    			t.TrackResource(&operatorDumper{rev: "v3"})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. pkg/test/framework/testcontext.go

    }
    
    func (c *testContext) Settings() *resource.Settings {
    	return c.suite.settings
    }
    
    func (c *testContext) Context() context.Context {
    	return c.test.tc
    }
    
    func (c *testContext) TrackResource(r resource.Resource) resource.ID {
    	id := c.suite.allocateResourceID(c.id, r)
    	rid := &resourceID{id: id}
    	c.scope.add(r, rid)
    	return rid
    }
    
    func (c *testContext) GetResource(ref any) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. tests/integration/README.md

    func newNative(ctx resource.Context) (Instance, error) {
        if config.Galley == nil {
            return nil, errors.New("galley must be provided")
        }
    
        instance := &nativeComponent{}
        instance.id = ctx.TrackResource(instance)
    
        //...
        return instance, nil
    }
    
    func (c *nativeComponent) ID() resource.ID {
        return c.id
    }
    ```
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. pkg/test/framework/suite_test.go

    		runFn := func(ctx *suiteContext) int {
    			err = ctx.GetResource(refPtr)
    			return 0
    		}
    		s := newTestSuite("tid", runFn, defaultExitFn, defaultSettingsFn)
    		s.Setup(func(c resource.Context) error {
    			c.TrackResource(trackedResource)
    			return nil
    		})
    		s.Run()
    		return err
    	}
    
    	t.Run("struct reference", func(t *testing.T) {
    		g := NewWithT(t)
    		var ref *resource.FakeResource
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. pkg/test/framework/components/istio/kube.go

    		externalControlPlane: ctx.AllClusters().IsExternalControlPlane(),
    	}
    
    	t0 := time.Now()
    	defer func() {
    		ctx.RecordTraceEvent("istio-deploy", time.Since(t0).Seconds())
    	}()
    	i.id = ctx.TrackResource(i)
    
    	if !cfg.DeployIstio {
    		scopes.Framework.Info("skipping deployment as specified in the config")
    		return i, nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top