Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 813 for INVALID (0.07 sec)

  1. cmd/kms-handlers_test.go

    				t.Errorf("want status code %d, got %d", http.StatusNotImplemented, rec.Code)
    			}
    		})
    	}
    
    	// Test when the GlobalKMS is configured but the credentials are invalid
    	GlobalKMS = kms.NewStub("default-test-key")
    	for _, test := range tests {
    		t.Run(test.name+" invalid credentials", func(t *testing.T) {
    			req := buildKMSRequest(t, test.method, test.path, userAccessKey, userSecretKey, test.query)
    			rec := httptest.NewRecorder()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

        public void test_throwAndCatchWithCause() {
            // Test throwing and catching the exception with cause
            String expectedMessage = "System error occurred";
            Exception expectedCause = new IllegalStateException("Invalid state");
    
            try {
                throw new FessSystemException(expectedMessage, expectedCause);
            } catch (FessSystemException e) {
                assertEquals(expectedMessage, e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NetServerEnumIterator.java

                this.request = new NetServerEnum2(th.getConfig(), locator.getURL().getHost(), NetServerEnum2.SV_TYPE_ALL);
            } else {
                throw new SmbException("The requested list operations is invalid: " + locator.getURL());
            }
            this.response = new NetServerEnum2Response(th.getConfig());
    
            this.treeHandle = th.acquire();
            try {
                this.next = open();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

            void testDecodeHeaderThrowsNdrExceptionForRpcVersion() {
                when(mockBuffer.dec_ndr_small()).thenReturn(4); // Incorrect RPC version
                assertThrows(NdrException.class, () -> message.decode_header(mockBuffer));
            }
    
            @Test
            @DisplayName("decode_header should throw NdrException for invalid minor RPC version")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            assertTrue(stringRep.contains("WORKSTATION"));
        }
    
        @Test
        @DisplayName("Should handle parsing invalid message bytes")
        void testInvalidMessageBytes() {
            // Given
            byte[] invalidBytes = { 1, 2, 3, 4, 5 }; // Too short and invalid
    
            // When/Then
            assertThrows(IOException.class, () -> {
                new Type3Message(invalidBytes);
            });
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. cmd/erasure-metadata_test.go

    		for i := range N {
    			fi.Erasure.Index = i + 1
    			metaArr[i] = fi
    			parities[i] = parity
    			if i < agree {
    				continue
    			}
    			metaArr[i].Erasure.Index = 0 // creates invalid fi on remaining drives
    			parities[i] = -1             // invalid fi are assigned parity -1
    		}
    		res.metaArr = metaArr
    		res.parities = parities
    		res.errs = make([]error, N)
    		if agree >= N-parity {
    			res.parity = parity
    		} else {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 2);
            when(mockDeferredNdrBuffer.dec_ndr_long()).thenReturn(-1, 0, 5); // Invalid _name_buffers
    
            assertThrows(NdrException.class, () -> domainInfo.decode(mockNdrBuffer));
        }
    
        // Test for LsarDnsDomainInfo
        @Test
        void testLsarDnsDomainInfoEncode() throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/PacMac.java

                } else {
                    if ((type != PacSignature.HMAC_SHA1_96_AES128) && (type != PacSignature.HMAC_SHA1_96_AES256)) {
                        throw new PACDecodingException("Invalid MAC algorithm");
                    }
                    KerberosKey key = type == PacSignature.HMAC_SHA1_96_AES128 ? keys.get(PacSignature.ETYPE_AES128_CTS_HMAC_SHA1_96)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

            srvsvc.ShareInfoCtr502 ctr502 = new srvsvc.ShareInfoCtr502();
    
            when(mockNdrBuffer.dec_ndr_long()).thenReturn(10, 1); // count, array pointer
            when(mockDeferredBuffer.dec_ndr_long()).thenReturn(0x10000); // invalid array size
    
            assertThrows(NdrException.class, () -> ctr502.decode(mockNdrBuffer));
        }
    
        @Test
        void testShareEnumAllConstructor() {
            String servername = "\\\\SERVER";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. cmd/net_test.go

    	testCases := []struct {
    		serverAddr  string
    		expectedErr error
    	}{
    		{":54321", nil},
    		{"localhost:54321", nil},
    		{"0.0.0.0:9000", nil},
    		{":0", nil},
    		{"localhost", nil},
    		{"", fmt.Errorf("invalid argument")},
    		{"example.org:54321", fmt.Errorf("host in server address should be this server")},
    		{":-10", fmt.Errorf("port must be between 0 to 65535")},
    	}
    
    	for _, testCase := range testCases {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top