Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestIsEncrypted (0.11 sec)

  1. internal/etag/etag_test.go

    	{ETag: "7b976cc68452e003eec7cb0eb631a19a-1"},     // 2
    	{ETag: "a7d414b9133d6483d9a1c4e04e856e3b-2"},     // 3
    	{ETag: "7b976cc68452e003eec7cb0eb631a19a-10000"}, // 4
    }
    
    func TestIsEncrypted(t *testing.T) {
    	for i, test := range isEncryptedTests {
    		tag, err := Parse(test.ETag)
    		if err != nil {
    			t.Fatalf("Test %d: failed to parse ETag: %v", i, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  2. internal/crypto/metadata_test.go

    	{Encrypted: false, Metadata: map[string]string{"": ""}},                                        // 7
    	{Encrypted: false, Metadata: map[string]string{"X-Minio-Internal-Server-Side-Encryption": ""}}, // 8
    }
    
    func TestIsEncrypted(t *testing.T) {
    	for i, test := range isEncryptedTests {
    		if _, isEncrypted := IsEncrypted(test.Metadata); isEncrypted != test.Encrypted {
    			t.Errorf("Test %d: got '%v' - want '%v'", i, isEncrypted, test.Encrypted)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top