Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for configureProxy (0.2 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/SocksProxyResolveIntegrationTest.groovy

            proxyServer.start(recordingServer)
            proxyServer.configureProxy(executer)
            fails('listJars') // Don't have to succeed here, just record the attempt in the fake proxy and verify it
            then:
            result.assertTaskExecuted(":listJars")
            recordingServer.madeAnyConnection()
    
            when:
            proxyServer.stop()
            proxyServer.configureProxy(executer)
            fails('listJars', '--refresh-dependencies')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractProxyResolveIntegrationTest.groovy

            given:
            proxyServer.start()
            setupServer()
    
            and:
            buildFile << """
    repositories {
        maven { url "${repoServerUrl}" }
    }
    """
            when:
            proxyServer.configureProxy(executer, proxyScheme)
            module.allowAll()
    
            then:
            succeeds('listJars')
    
            and:
            if (isTunnel()) {
                proxyServer.requestCount == 1
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/HttpProxyScriptPluginIntegrationSpec.groovy

    """
    
            buildFile << """
                apply from: '$server.uri/external.gradle'
                defaultTasks 'doStuff'
    """
    
            when:
            testProxyServer.configureProxy(executer,"http", userName, password)
            succeeds()
    
            then:
            testProxyServer.requestCount == 1
    
            where:
            type            | userName    | password
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/SocksProxyServer.groovy

     *
     * When used as a rule, the proxy is stopped automatically at the end of the test,
     * but it is _not_ automatically started.
     *
     * To use the proxy with a build, you must call configureProxy(GradleExecuter) before
     * starting the proxy.
     *
     * Use {@link #start(SocksServer)} to start the proxy with an alternate implementation of {@link SocksServer} (for instance,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/TestProxyServer.groovy

                return "HTTP proxy: $port"
            }
            return "HTTP proxy (not started)"
        }
    
        void stop() {
            proxyServer?.stop()
            portFinder.releasePort(port)
        }
    
        void configureProxy(GradleExecuter executer, String proxyScheme, String userName = null, String password = null) {
            configureProxyHost(executer, proxyScheme)
    
            if (userName) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java

            configureAuthSchemeRegistry(builder);
            configureCredentials(builder, credentialsProvider, httpSettings.getAuthenticationSettings());
            configureProxy(builder, credentialsProvider, httpSettings);
            configureUserAgent(builder);
            configureCookieSpecRegistry(builder);
            configureRequestConfig(builder);
            configureSocketConfig(builder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 18.5K bytes
    - Viewed (0)
Back to top