Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for expectGetMissing (0.19 sec)

  1. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            cache.load(key) { input ->
                receivedInput = input.text
            }
    
            then:
            receivedInput == "Data"
        }
    
        def "reports cache miss on 404"() {
            server.expectGetMissing("/cache/${key.hashCode}")
    
            when:
            def fromCache = cache.load(key) { input ->
                throw new RuntimeException("That should never be called")
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

                println 'loaded remote script'
            """
    
            buildFile << """
                apply from: '${scriptUrl}'
            """
    
            when:
            server.expectGetMissing("/" + scriptName)
    
            then:
            fails()
    
            and:
            failure.assertHasDescription("A problem occurred evaluating root project 'project'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyModuleResolveIntegrationTest.groovy

    dependencies {
        compile "org.gradle:test:1.45"
    }
    
    task retrieve(type: Sync) {
        from configurations.compile
        into "libs"
    }
    """
    
            when:
            moduleWithNoMetaData.ivy.expectGetMissing()
            moduleWithNoMetaData.jar.expectHead()
            moduleWithMetaData.ivy.expectGet()
            moduleWithMetaData.jar.expectGet()
            succeeds "retrieve"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 19:13:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ClientModuleDependenciesResolveIntegrationTest.groovy

        }
    }
    """
    
            when:
            projectB.ivy.expectGet()
            projectB.jar.expectGet()
            projectAInRepo1.ivy.expectGetMissing()
            projectAInRepo2.pom.expectGet()
            projectAInRepo2.artifact.expectGet()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 03 18:15:26 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionFeaturesIntegrationTest.groovy

            HttpServer server = new HttpServer()
            MavenHttpRepository repo = new MavenHttpRepository(server, '/empty', maven(file('empty')))
            server.start()
            repo.getModuleMetaData(group, artifact).expectGetMissing()
            new RepoFixture(repo, { server.stop() })
        }
    
        enum DynamicVersionScenario {
            SINGLE_REPO, MATCHING_REPO_PLUS_404
    
            @Override
            String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 33K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolvedConfigurationIntegrationTest.groovy

                        println "evaluating:"
                        compile.${expression}
                    }
                }
            """
    
            m1.allowAll()
            m2.pom.expectGet()
            m2.artifact.expectGetMissing()
            m3.pom.expectGet()
            m3.artifact.expectGetBroken()
            m4.allowAll()
    
            expect:
            //TODO: fix dependency resolution results usage in this test and remove this flag
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

        void expectGetBlocking(String path) {
            expect(path, false, ['GET'], blocking())
        }
    
        /**
         * Expects one GET request for the given URL, which return 404 status code
         */
        void expectGetMissing(String path, PasswordCredentials passwordCredentials = null) {
            expect(path, false, ['GET'], notFound(), passwordCredentials)
        }
    
        void allowGetOrHeadMissing(String path) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top