Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 839 for portVal (0.22 sec)

  1. docs_src/dependencies/tutorial008d_an_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 734 bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/PluginManagementWithSettingsPluginIntegrationTest.groovy

                    id("test.test-plugin").version("1.0")
                }
            """
    
            when:
            run("pluginTask")
    
            then:
            outputContains("external plugin")
            // Ensure plugin portal is not unintentionally used
            pluginPortal.server.resetExpectations()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/14536")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial008c_an.py

        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c_an import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromSingleCustomPluginRepositorySpec.groovy

            then:
            output.contains("from plugin")
        }
    
        def "Does not fall through to Plugin Portal if custom repo is defined"() {
            given:
            publishTestPlugin(MAVEN)
            buildScript """
                plugins {
                    id "org.gradle.hello-world" version "0.2" //this exists in the plugin portal
                }
            """
    
            and:
            useCustomRepository(PathType.ABSOLUTE)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/meta/meta_test.go

    		m := &metav1.ObjectMeta{}
    		f.Fuzz(m)
    		partial := AsPartialObjectMetadata(m)
    		if !reflect.DeepEqual(&partial.ObjectMeta, m) {
    			t.Fatalf("incomplete partial object metadata: %s", cmp.Diff(&partial.ObjectMeta, m))
    		}
    	}
    
    	for i := 0; i < 100; i++ {
    		m := &metav1beta1.PartialObjectMetadata{}
    		f.Fuzz(&m.ObjectMeta)
    		partial := AsPartialObjectMetadata(m)
    		if !reflect.DeepEqual(&partial.ObjectMeta, &m.ObjectMeta) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/util/PublishKotlinDslPlugin.kt

            requiresOs(Os.LINUX)
        }
    
        params {
            param("env.JAVA_HOME", javaHome(BuildToolBuildJvm, Os.LINUX))
            param("env.GRADLE_PUBLISH_KEY", "%plugin.portal.publish.key%")
            param("env.GRADLE_PUBLISH_SECRET", "%plugin.portal.publish.secret%")
            param("env.PGP_SIGNING_KEY", "%pgpSigningKey%")
            param("env.PGP_SIGNING_KEY_PASSPHRASE", "%pgpSigningPassphrase%")
        }
        steps {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 05 00:08:14 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. pkg/config/analysis/analyzers/deployment/services.go

    func servicePortMap(svcs []ServiceSpecWithName) PortMap {
    	portMap := PortMap{}
    
    	for _, swn := range svcs {
    		svc := swn.Spec
    		for _, sPort := range svc.Ports {
    			// If it is the first occurrence of this port, create a ProtocolMap
    			if _, ok := portMap[sPort.Port]; !ok {
    				portMap[sPort.Port] = ProtocolMap{}
    			}
    
    			// Default protocol is TCP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. tests/test_openapi_separate_input_output_schemas.py

        @app.post("/items-list/")
        def create_item_list(item: List[Item]):
            return item
    
        @app.get("/items/")
        def read_items() -> List[Item]:
            return [
                Item(
                    name="Portal Gun",
                    description="Device to travel through the multi-rick-verse",
                    sub=SubItem(subname="subname"),
                ),
                Item(name="Plumbus"),
            ]
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  9. src/testing/match.go

    	elem := strings.Split(name, "/")
    
    	// filter must match.
    	// accept partial match that may produce full match later.
    	ok, partial = m.filter.matches(elem, m.matchFunc)
    	if !ok {
    		return name, false, false
    	}
    
    	// skip must not match.
    	// ignore partial match so we can get to more precise match later.
    	skip, partialSkip := m.skip.matches(elem, m.matchFunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. src/runtime/mcentral.go

    	// encounter swept spans, and these should be ignored.
    	partial [2]spanSet // list of spans with a free object
    	full    [2]spanSet // list of spans with no free objects
    }
    
    // Initialize a single central free list.
    func (c *mcentral) init(spc spanClass) {
    	c.spanclass = spc
    	lockInit(&c.partial[0].spineLock, lockRankSpanSetSpine)
    	lockInit(&c.partial[1].spineLock, lockRankSpanSetSpine)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top