Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 247 for testNet (0.14 sec)

  1. pkg/registry/scheduling/priorityclass/storage/storage_test.go

    		t.Error("expected to receive an error")
    	}
    }
    
    func TestGet(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	test.TestGet(validNewPriorityClass())
    }
    
    func TestList(t *testing.T) {
    	storage, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 16:51:57 UTC 2019
    - 5.1K bytes
    - Viewed (0)
  2. pkg/registry/policy/poddisruptionbudget/storage/storage_test.go

    		t.Errorf("we expected .status.replicas to be updated to %d but it was %v", 7, pdb.Status.ExpectedPods)
    	}
    }
    
    func TestGet(t *testing.T) {
    	storage, _, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestGet(validNewPodDisruptionBudget())
    }
    
    func TestList(t *testing.T) {
    	storage, _, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. pkg/registry/resource/podschedulingcontext/storage/storage_test.go

    	test.TestDelete(validNewPodSchedulingContexts("foo", metav1.NamespaceDefault))
    }
    
    func TestGet(t *testing.T) {
    	storage, _, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestGet(validNewPodSchedulingContexts("foo", metav1.NamespaceDefault))
    }
    
    func TestList(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial008
    from docs_src.custom_response.tutorial008 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 487 bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/feature/BuildResultOutputFeatureCheck.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.testkit.runner.internal.feature;
    
    import org.gradle.internal.deprecation.DeprecationLogger;
    import org.gradle.testkit.runner.UnsupportedFeatureException;
    import org.gradle.util.GradleVersion;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_custom_request_and_route/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_request_and_route.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/")
        assert response.json() == {"message": "Not timed"}
        assert "X-Response-Time" not in response.headers
    
    
    def test_get_timed():
        response = client.get("/timed")
        assert response.json() == {"message": "It's the time of my life"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 526 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial005.py

    from fastapi.testclient import TestClient
    
    from docs_src.path_operation_advanced_configuration.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. pkg/registry/core/resourcequota/storage/storage_test.go

    	test := genericregistrytest.New(t, storage.Store).ReturnDeletedObject()
    	test.TestDelete(validNewResourceQuota())
    }
    
    func TestGet(t *testing.T) {
    	storage, _, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestGet(validNewResourceQuota())
    }
    
    func TestList(t *testing.T) {
    	storage, _, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008c.py

        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(client: TestClient):
        response = client.get("/items/plumbus")
        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    def test_fastapi_error(client: TestClient):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. pkg/registry/storage/volumeattachment/storage/storage_test.go

    	test.TestDelete(validNewVolumeAttachment("foo"))
    }
    
    func TestGet(t *testing.T) {
    	storage, _, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store).ClusterScope()
    	test.TestGet(validNewVolumeAttachment("foo"))
    }
    
    func TestList(t *testing.T) {
    	storage, _, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.2K bytes
    - Viewed (1)
Back to top