Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for prepareFS (0.18 sec)

  1. cmd/signature-v2_test.go

    			break
    		}
    	}
    }
    
    // Tests presigned v2 signature.
    func TestDoesPresignedV2SignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(t.Context())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	now := UTCNow()
    
    	var (
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. cmd/jwt_test.go

    }
    
    // Tests web request authenticator.
    func TestWebRequestAuthenticate(t *testing.T) {
    	ctx, cancel := context.WithCancel(t.Context())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	creds := globalActiveCred
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	if remainingBytes > 0 {
    		streamLen += calculateSignedChunkLength(remainingBytes)
    	}
    	streamLen += calculateSignedChunkLength(0)
    	return streamLen
    }
    
    func prepareFS(ctx context.Context) (ObjectLayer, string, error) {
    	nDisks := 1
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, "", err
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/CommonServerMessageBlockResponse.java

        /**
         *
         * @return the next response
         */
        @Override
        CommonServerMessageBlockResponse getNextResponse();
    
        /**
         * Prepares this response for the next request.
         *
         * @param next the next request to prepare for
         */
        void prepare(CommonServerMessageBlockRequest next);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            // prepare should propagate session id when received
            CIFSContext mockCtx = mock(CIFSContext.class);
            when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
            Smb2SessionSetupRequest nextReq = new Smb2SessionSetupRequest(mockCtx, 0, 0, 0L, null);
            assertEquals(0L, nextReq.getSessionId());
            resp.prepare(nextReq);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        carrier.cancel()
      }
    
      /**
       * Prepares the HTTP headers and sends them to the server.
       *
       * For streaming requests with a body, headers must be prepared **before** the output stream has
       * been written to. Otherwise the body would need to be buffered!
       *
       * For non-streaming requests with a body, headers must be prepared **after** the output stream
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (7)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            doNothing().when(response).prepare(any());
    
            // When
            response.prepare(regularRequest);
            response.prepare(asyncRequest);
            response.prepare(null);
    
            // Then
            verify(response).prepare(regularRequest);
            verify(response).prepare(asyncRequest);
            verify(response).prepare(null);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(0L, fileStandardInfo.getLastAccessTime());
        }
    
        @Test
        @DisplayName("Test getSize returns endOfFile value")
        void testGetSize() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[22];
            long expectedAllocationSize = 1024L;
            long expectedEndOfFile = 512L;
            int expectedNumberOfLinks = 3;
            boolean expectedDeletePending = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacSignatureTest.java

         * @throws PACDecodingException if the PAC is malformed
         */
        @Test
        void testConstructorKerbChecksumHmacMd5() throws IOException, PACDecodingException {
            // Prepare data
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5);
            byte[] checksum = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            assertNotNull(fileBothDirectoryInfoNonUnicode);
        }
    
        @Test
        @DisplayName("Test getName returns filename")
        void testGetName() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("testfile.txt", "TEST~1.TXT", true);
    
            // Decode
            fileBothDirectoryInfo.decode(buffer, 0, buffer.length);
    
            // Verify
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top