Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for stubListFile (0.17 sec)

  1. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsDirectoryResource.groovy

            throw new UnsupportedOperationException()
        }
    
        @Override
        void expectUploadBroken() {
            throw new UnsupportedOperationException()
        }
    
        void expectGet() {
            server.stubListFile(directory, bucket, path)
        }
    
        void expectGetMissing() {
            server.expectGetMissing("/$bucket")
        }
    
        void expectGetBroken() {
            server.expectGetBroken("/$bucket")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3DirectoryResource.groovy

            throw new UnsupportedOperationException()
        }
    
        @Override
        void expectUploadBroken() {
            throw new UnsupportedOperationException()
        }
    
        public void expectGet() {
            server.stubListFile(directory, bucket, path)
        }
    
        public void expectGetMissing() {
            server.expectGetMissing("/$bucket")
        }
    
        public void expectGetBroken() {
            server.expectGetBroken("/$bucket")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/GcsClientIntegrationTest.groovy

            ByteArrayOutputStream outStream = new ByteArrayOutputStream()
            IOUtils.copyLarge(gcsClient.getResourceStream(uri), outStream)
            outStream.toString() == fileContents
    
            when:
            server.stubListFile(temporaryFolder.testDirectory, bucketName)
    
            then:
            def files = gcsClient.list(new URI("gcs://${bucketName}/maven/release/"))
            !files.isEmpty()
            files.each {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/S3ClientIntegrationTest.groovy

                IOUtils.copyLarge(object.getObjectContent(), outStream);
                outStream.toString() == fileContents
            } as Action)
    
            when:
            server.stubListFile(temporaryFolder.testDirectory, bucketName)
    
            then:
            def listing = s3Client.listDirectChildren(new URI("s3://${bucketName}/maven/release/"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

                        'Content-Type'    : 'application/octet-stream',
                    ]
                    body = { file.bytes }
                }
            }
            expect(httpStub)
        }
    
        def stubListFile(File file, String bucketName, prefix = 'maven/release/') {
            HttpStub httpStub = HttpStub.stubInteraction {
                request {
                    method = 'GET'
                    path = "/b/${bucketName}/o"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  6. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

                    ]
                    body = { file.bytes }
                }
            }
            expect(httpStub)
        }
    
        def stubListFile(File file, String bucketName, prefix = 'maven/release/') {
            def files = file.listFiles(new FileFilter() {
                @Override
                boolean accept(File pathname) {
                    return pathname.isFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
Back to top