Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for test_container (0.2 sec)

  1. pkg/kubelet/container/container_hash_test.go

    limitations under the License.
    */
    
    package container
    
    import (
    	"encoding/json"
    	"testing"
    
    	"k8s.io/api/core/v1"
    )
    
    var (
    	sampleContainer = `
    {
      "name": "test_container",
      "image": "foo/image:v1",
      "command": [
        "/bin/testcmd"
      ],
      "args": [
        "/bin/sh",
        "-c",
        "echo abc"
      ],
      "ports": [
        {
          "containerPort": 8001
        }
      ],
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/labels_test.go

    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    				Port: intstr.FromString("80"),
    			},
    		},
    	}
    	container := &v1.Container{
    		Name:                   "test_container",
    		TerminationMessagePath: "/somepath",
    		Lifecycle:              lifecycle,
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:                       "test_pod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/helpers_test.go

    		assert.Equal(t, test.isFailed, isFailed, "TestCase[%d]: %s", i, test.description)
    	}
    }
    
    func TestStableKey(t *testing.T) {
    	container := &v1.Container{
    		Name:  "test_container",
    		Image: "foo/image:v1",
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test_pod",
    			Namespace: "test_pod_namespace",
    			UID:       "test_pod_uid",
    		},
    		Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    func TestHashContainer(t *testing.T) {
    	testCases := []struct {
    		name          string
    		image         string
    		args          []string
    		containerPort int32
    		expectedHash  uint64
    	}{
    		{
    			name:  "test_container",
    			image: "foo/image:v1",
    			args: []string{
    				"/bin/sh",
    				"-c",
    				"echo abc",
    			},
    			containerPort: int32(8001),
    			expectedHash:  uint64(0x8e45cbd0),
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractDomainObjectContainerIntegrationTest.groovy

            [
                "${containerType}#getByName(String)":    "testContainer.getByName('unrealized')",
                "${containerType}#named(String)":        "testContainer.named('unrealized')",
                "${containerType}#named(String, Class)": "testContainer.named('unrealized', testContainer.type)",
                "${containerType}#findAll(Closure)":     "testContainer.findAll { it.name == 'unrealized' }",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 16 08:04:01 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top