HttpAuthenticationDependencyResolutionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Annotate integ tests failing with instant execution in :dependencyManagement

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +2
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 93 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +2
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 93 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +2
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 93 more files in changeset.
Add test for HttpHeader authentication with redirects

    • -0
    • +53
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 162 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 286 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 283 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 286 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 284 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 285 more files in changeset.
Use 'implementation' dependencies everywhere

    • -7
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 285 more files in changeset.
Restrict cases where to do HTTP retries

This commit restricts the number of cases where we're going to perform HTTP retries. Instead of any error,

we will now retry when:

- a connection timeout occurs (client or server)

- the server responds an error code between 500 and 600

- response code is a too many requests error

Fixes #7850

    • -0
    • +5
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 4 more files in changeset.
Support HTTP header based authentication for Maven repositories

Now it's possible to use a custom HTTP header to authorize access to

Maven repositories. This enables Gradle to access private GitLab and TFS

repositories used as Maven repositories or any OAuth2 protected Maven

repository.

Resolves #5571.

    • -0
    • +42
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 30 more files in changeset.
Add integTest demonstrating #6014

    • -0
    • +54
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
Fix concurrency bug in `HttpClientHelper`

The HTTP context should not be shared by several requests, or it just breaks when requests are done in parallel.

This explains the failures seen with `NTLM` authentication, but not only: there were more failures with `BASIC`

authentication too (and probably random other failures).

This commit changes the `HttpContext` so that we create a new one per request, in case we don't use authentication,

and if we do, then requests cannot be done in parallel (until we find a proper fix). This removes the special case in

`HttpAuthenticationDependencyResolutionIntegrationTest`.

    • -4
    • +0
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 4 more files in changeset.
Add authentication support to HttpServerFixture

This allows to enable authentication on the BuildCache for

integration tests.

+review REVIEW-6479

    • -4
    • +5
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 14 more files in changeset.
Disable parallel downloads in NTLM auth tests

The test HTTP server cannot handle concurrent requests when configured

for NTLM authentication, so set maxWorkers = 1 for these tests.

    • -12
    • +21
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
Use doLast instead of left shift operator

Made this change in preparation for deprecating the left shift operator.

+review REVIEW-6236

    • -16
    • +32
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 163 more files in changeset.
Add NTLM authentication test coverage

+review REVIEW-5736

    • -0
    • +7
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Renamed 'preemptive' server auth scheme to 'hide-unauthorized'

+review REVIEW-5574

    • -41
    • +44
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Address review items for Authentication types

+review REVIEW-5569

    • -1
    • +0
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 19 more files in changeset.
Always try preemptive basic if basic auth is added

+review REVIEW-5574

    • -2
    • +2
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Check authentication types attempted with HttpServer

+review REVIEW-5574

    • -15
    • +18
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 2 more files in changeset.
Check that other repositories cannot use HTTP auth types

+review REVIEW-5574

    • -11
    • +19
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 7 more files in changeset.
Addressing some review items for authentication scheme support.

+review REVIEW-5569

    • -20
    • +16
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 15 more files in changeset.
Use preemptive authentication when repository is configured for basic auth.

+review REVIEW-5574

    • -6
    • +94
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 3 more files in changeset.
Refactor repository authentication DSL to use a NamedDomainObjectContainer.

+review REVIEW-5569

    • -30
    • +136
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 22 more files in changeset.
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -0
    • +215
    ./HttpAuthenticationDependencyResolutionIntegrationTest.groovy
  1. … 1384 more files in changeset.