Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 188 for fcclient (0.19 sec)

  1. security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go

    )
    
    // CAClient is the mocked CAClient for testing.
    type CAClient struct {
    	SignInvokeCount uint64
    	bundle          *util.KeyCertBundle
    	certLifetime    time.Duration
    	GeneratedCerts  [][]string // Cache the generated certificates for verification purpose.
    	mockTrustAnchor bool
    }
    
    // NewMockCAClient creates an instance of CAClient. errors is used to specify the number of errors
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsClientTest.groovy

            }
    
            when:
            gcsClient.put(Mock(InputStream), 0, uri)
            then:
            def ex = thrown(ResourceException)
            ex.message.startsWith("Could not write to resource 'https://somehost/file.txt'")
        }
    
        def "should not fail on GcsClient.list() returning null"() {
            def gcsStorageClient = Mock(Storage)
            GcsClient gcsClient = new GcsClient(gcsStorageClient)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsResourceConnectorTest.groovy

        def name = new ExternalResourceName(uri)
    
        def "should list resources"() {
            GcsClient gcsClient = Mock()
            when:
            new GcsResourceConnector(gcsClient).list(name)
            then:
            1 * gcsClient.list(uri)
        }
    
        def "should get a resource"() {
            GcsClient gcsClient = Mock {
                1 * getResource(uri) >> new StorageObject()
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ResourceConnectorTest.groovy

        def "should list resources"() {
            S3Client s3Client = Mock()
            when:
            new S3ResourceConnector(s3Client).list(name)
            then:
            1 * s3Client.listDirectChildren(uri)
        }
    
        def "should get a resource"() {
            ObjectMetadata objectMetadata = Mock()
            S3Client s3Client = Mock {
                1 * getResource(uri) >> Mock(S3Object) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/GcsClientIntegrationTest.groovy

     */
    
    package org.gradle.integtests.resource.gcs
    
    import com.google.api.client.googleapis.auth.oauth2.GoogleCredential
    import com.google.api.client.http.HttpRequest
    import com.google.api.client.http.HttpRequestInitializer
    import com.google.api.client.http.javanet.NetHttpTransport
    import com.google.api.client.json.gson.GsonFactory
    import com.google.api.services.storage.Storage
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsResource.java

    public class GcsResource implements ExternalResourceReadResponse {
    
        private final GcsClient gcsClient;
        private final StorageObject gcsObject;
        private final URI uri;
    
        public GcsResource(GcsClient gcsClient, StorageObject gcsObject, URI uri) {
            this.gcsClient = gcsClient;
            this.gcsObject = gcsObject;
            this.uri = uri;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3ResourceConnector.java

        private final S3Client s3Client;
    
        public S3ResourceConnector(S3Client s3Client) {
            this.s3Client = s3Client;
        }
    
        @Override
        public List<String> list(ExternalResourceName parent) {
            LOGGER.debug("Listing parent resources: {}", parent);
            return s3Client.listDirectChildren(parent.getUri());
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsResourceConnector.java

        private final GcsClient gcsClient;
    
        public GcsResourceConnector(GcsClient gcsClient) {
            this.gcsClient = gcsClient;
        }
    
        @Nullable
        @Override
        public List<String> list(ExternalResourceName parent) throws ResourceException {
            LOGGER.debug("Listing parent resources: {}", parent);
            return gcsClient.list(parent.getUri());
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. pkg/adsc/delta_test.go

    				return
    			}
    
    			tt.inClient = NewDeltaWithBackoffPolicy(tt.inClient.cfg.Address, tt.inClient.cfg, nil, handlers...)
    			if err := tt.inClient.Run(context.TODO()); err != nil {
    				t.Errorf("ADSC: failed running %v", err)
    				return
    			}
    			assert.EventuallyEqual(t, func() bool {
    				tt.inClient.mutex.Lock()
    				defer tt.inClient.mutex.Unlock()
    				rec := tt.inClient.lastReceived
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 09:32:41 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      /** Lazily initialized on first use. */
      private var messageDeflater: MessageDeflater? = null
    
      // Masks are only a concern for client writers.
      private val maskKey: ByteArray? = if (isClient) ByteArray(4) else null
      private val maskCursor: Buffer.UnsafeCursor? = if (isClient) Buffer.UnsafeCursor() else null
    
      /** Send a ping with the supplied [payload]. */
      @Throws(IOException::class)
      fun writePing(payload: ByteString) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top