Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expectLockStateMissing (0.24 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingStrictModeIntegrationTest.groovy

            failure.assertHasResolution("For more information on generating lock state")
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def 'fails if update done without lockfile present'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
            mavenRepo.module('org', 'foo', '1.1').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingIntegrationTest.groovy

    }
    configurations {
        unlockedConf
    }
    
    dependencies {
        unlockedConf 'org:foo:1.+'
    }
    """
    
            when:
            succeeds 'dependencies'
    
            then:
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def "version selector combinations are resolved equally for locked and unlocked configurations"() {
            ['foo', 'foz', 'bar', 'baz'].each { artifact ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 30 12:42:25 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/AbstractLockingIntegrationTest.groovy

        doLast {
            throw new RuntimeException("Build failed")
        }
    }
    """
    
            when:
            fails 'copyDeps', '--write-locks'
    
            then:
            lockfileFixture.expectLockStateMissing('conf')
        }
    
        def 'does not write lock file when dependency resolution fails'() {
            mavenRepo.module('org', 'bar', '1.1').publish()
    
            buildFile << """
    dependencyLocking {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/locking/LockfileFixture.groovy

            entries.sort()
            entries.add('empty=' + emptyConfs.join(","))
    
            assert lockedModules == entries
        }
    
        void expectLockStateMissing(String configurationName) {
            def lockFile = testDirectory.file(LockFileReaderWriter.UNIQUE_LOCKFILE_NAME)
            if (lockFile.exists()) {
                assert !lockFile.text.contains(configurationName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top