HttpScriptPluginIntegrationSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'""

This reverts commit 0625bc7420e55e87730673231af6ad45dd04f47a.

    • -11
    • +72
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 90 more files in changeset.
Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'"

This reverts commit 2f79026f5e127a8175e25844522237615b19ed52 because of a performance regression,

reversing changes made to 7f1e66079ce629ecde3e09e549e9796ab85761dc.

    • -72
    • +11
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 90 more files in changeset.
Fix integration test

    • -1
    • +1
    ./HttpScriptPluginIntegrationSpec.groovy
Add integration tests for TextResources and remote script plugins

    • -9
    • +65
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 6 more files in changeset.
Add integration tests for TextResources and remote script plugins

    • -9
    • +65
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 6 more files in changeset.
Cleanup some unnessasary changes after depricate http changes

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -5
    • +5
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 10 more files in changeset.
Allow http for 127.0.0.1

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -7
    • +3
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 16 more files in changeset.
Fix HttpScriptPluginIntegrationSpec

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -4
    • +2
    ./HttpScriptPluginIntegrationSpec.groovy
Fix integration tests failing due to new dperication

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -9
    • +20
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 10 more files in changeset.
Change int tests to use relevant fixture methods to express their expectations about the build log output.

    • -1
    • +1
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 30 more files in changeset.
Change int tests to use relevant fixture methods to express their expectations about the build log output.

    • -1
    • +1
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 28 more files in changeset.
Change remote script plugin tests to require isolated user home dirs

Tests that check the access to scripts via http need to start with

an empty external resource cache to be deterministic.

    • -0
    • +1
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 3 more files in changeset.
Use port allocator consistently in HttpServerFixture

    • -1
    • +0
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 3 more files in changeset.
Fix flaky tests caused by accidental cache hit (#3025)

gradle/gradle-private#948

When two tests happen to be assigned the same port number, the cache

is hit by accident. This result in different control flows and flaky tests.

    • -0
    • +1
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 1 more file in changeset.
Fix merge from release

    • -4
    • +68
    ./HttpScriptPluginIntegrationSpec.groovy
Do not cache URLs that contain a query part

fixes #2891

    • -4
    • +68
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 3 more files in changeset.
Implement integration test for issue #2891

    • -0
    • +27
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 1 more file in changeset.
Implement integration test for issue #2891

    • -0
    • +27
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 1 more file in changeset.
Touch cache entries for external resources when they are revalidated

Previously, the cache entry for an external resource retained it's original

timestamp, even after we had revalidated it against the source (ie. via HTTP HEAD).

This resulted in multiple HEAD revalidation requests being required, for a

cached resource that was requested multiple times in the same build.

This issue was made more apparent with the introduction of caching for

HTTP script plugins, but it had already been observed to affect the

caching of resources used by `ComponentMetadataSupplier`.

The fix supplied effectively 're-stores' the cache entry, forcing the

cache entry time to be updated.

    • -3
    • +0
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 2 more files in changeset.
Demonstrate issue with multiple HEAD requests for a resource within a single build

    • -1
    • +13
    ./HttpScriptPluginIntegrationSpec.groovy
Use different script names for each external script test

Using a common name for the HTTP script across different tests appears

to have caused some flakiness due to script caching, where a HEAD request

is received when a GET request is expected.

    • -11
    • +10
    ./HttpScriptPluginIntegrationSpec.groovy
Avoid duplicate read attempts for missing script plugins

    • -3
    • +2
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 1 more file in changeset.
Test that `--offline` prevents server requests

    • -2
    • +40
    ./HttpScriptPluginIntegrationSpec.groovy
Polish integration test

- Removed spurious timestamp from test file names

- Removed spurious setting of file encoding (this makes tests hard to debug)

    • -14
    • +5
    ./HttpScriptPluginIntegrationSpec.groovy
Add coverage for https script plugins

    • -4
    • +17
    ./HttpScriptPluginIntegrationSpec.groovy
Consolidate tests for http script plugins

    • -0
    • +256
    ./HttpScriptPluginIntegrationSpec.groovy
  1. … 2 more files in changeset.