Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 213 for testcontainer (0.19 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/TestContainer.java

     * limitations under the License.
     */
    package org.gradle.api.internal;
    
    import org.gradle.internal.reflect.Instantiator;
    
    public class TestContainer extends AbstractNamedDomainObjectContainer<TestObject> {
    
        public TestContainer(org.gradle.internal.reflect.Instantiator instantiator) {
            super(TestObject.class, instantiator, new DynamicPropertyNamer(), CollectionCallbackActionDecorator.NOOP);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/NamedDomainObjectContainerIntegrationTest.groovy

        }
    
        def "chained lookup of testContainer.withType.matching"() {
            buildFile << """
                testContainer.withType(testContainer.type).matching({ it.name.endsWith("foo") }).all { element ->
                    assert element.name in ['foo', 'barfoo']
                }
    
                testContainer.register("foo")
                testContainer.register("bar")
                testContainer.register("foobar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractMutatingDomainObjectContainerInHookIntegrationTest.groovy

                    testContainer.create("afterEvaluate")
                }
    
                project(':nested').beforeEvaluate {
                    testContainer.create("beforeEvaluate")
                }
    
                task verify {
                    doLast {
                        assert testContainer.findByName("afterEvaluate") != null
                        assert testContainer.findByName("beforeEvaluate") != null
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/NamedDomainObjectCollectionSchemaIntegrationTest.groovy

                def factory = { name -> new Impl(name) }
                def testContainer = project.container(PubType, factory)
    
                testContainer.create("foo")
                testContainer.register("bar")
                testContainer.register("baz").get()
    
                task assertSchema {
                    doLast {
                        assertSchemaIs(testContainer,
                            "foo": "PubType",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    		fakeSandBoxConfig, _ := m.generatePodSandboxConfig(testPod, 0)
    		testContainer.Lifecycle = cmdPostStart
    		fakePodStatus := &kubecontainer.PodStatus{
    			ContainerStatuses: []*kubecontainer.Status{
    				{
    					ID: kubecontainer.ContainerID{
    						Type: "docker",
    						ID:   testContainer.Name,
    					},
    					Name:      testContainer.Name,
    					State:     kubecontainer.ContainerStateCreated,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/defaults_test.go

    	for desc, tc := range map[string]struct {
    		testContainer        v1.Container
    		expectedResizePolicy []v1.ContainerResizePolicy
    	}{
    		"CPU and memory limits are specified": {
    			testContainer: v1.Container{
    				Resources: v1.ResourceRequirements{
    					Limits: v1.ResourceList{
    						v1.ResourceCPU:    resource.MustParse("100m"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/helpers_test.go

    func TestEvictonMessageWithResourceResize(t *testing.T) {
    	testpod := newPod("testpod", 1, []v1.Container{
    		newContainer("testcontainer", newResourceList("", "200Mi", ""), newResourceList("", "", "")),
    	}, nil)
    	testpod.Status = v1.PodStatus{
    		ContainerStatuses: []v1.ContainerStatus{
    			{
    				Name:               "testcontainer",
    				AllocatedResources: newResourceList("", "100Mi", ""),
    			},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    	testPod1 := makePod("fakePod", "fakeContainer", "2", "2")
    	testContainer1 := &testPod1.Spec.Containers[0]
    	testPod2 := makePod("fakePod", "fakeContainer", "5", "5")
    	testContainer2 := &testPod2.Spec.Containers[0]
    	testPod3 := makePod("fakePod", "fakeContainer", "7", "7")
    	testContainer3 := &testPod3.Spec.Containers[0]
    	testPod4 := makePod("fakePod", "fakeContainer", "11", "11")
    	testContainer4 := &testPod4.Spec.Containers[0]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods_test.go

    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
    	nowTime := time.Now()
    	testContainerName := "ctr0"
    	testContainerID := kubecontainer.ContainerID{Type: "test", ID: testContainerName}
    	testContainer := v1.Container{
    		Name:  testContainerName,
    		Image: "img",
    	}
    	testContainerStatus := v1.ContainerStatus{
    		Name: testContainerName,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  10. container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt

    import org.mockserver.model.HttpResponse.response
    import org.testcontainers.containers.GenericContainer
    import org.testcontainers.containers.MockServerContainer
    import org.testcontainers.containers.Network
    import org.testcontainers.junit.jupiter.Container
    import org.testcontainers.junit.jupiter.Testcontainers
    import org.testcontainers.utility.DockerImageName
    
    @Testcontainers
    class SocksProxyTest {
      val network: Network = Network.newNetwork()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top