summaryrefslogtreecommitdiffstats
path: root/expectations
Commit message (Collapse)AuthorAgeFilesLines
* The last of the Kxml correctness fixes for Expat compatibility.Jesse Wilson2010-11-301-0/+48
| | | | | | | | | With this change we should be able to drop the Expat pull parser and use Kxml exclusively. I'm deferring that change until after the current release. Change-Id: I7c6d6dfe6c1e9ae9417c48603068ddd4ade78b76 http://b/3090550
* am 644de474: am 0ad02672: Test what happens to RandomAccessFile when it is ↵Jesse Wilson2010-10-101-0/+5
|\ | | | | | | | | | | | | | | | | leaked. Merge commit '644de474dc8f7be16072fe55c1d0288f4ba9b6bc' * commit '644de474dc8f7be16072fe55c1d0288f4ba9b6bc': Test what happens to RandomAccessFile when it is leaked.
| * Test what happens to RandomAccessFile when it is leaked.Jesse Wilson2010-10-071-0/+5
| | | | | | | | | | Change-Id: I6b5044a5c3375c9e9456b9c72d897ecd2ccd7e26 http://b/3015023
* | am bf1bdd0a: am c84c0e51: Merge "Remove logging tests duplicated from ↵Jesse Wilson2010-10-041-1/+1
|\ \ | |/ | | | | | | | | | | | | | | Harmony" into gingerbread Merge commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9' * commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9': Remove logging tests duplicated from Harmony
| * Merge "Remove logging tests duplicated from Harmony" into gingerbreadJesse Wilson2010-10-041-1/+1
| |\
| | * Remove logging tests duplicated from HarmonyJesse Wilson2010-10-021-1/+1
| | | | | | | | | | | | Change-Id: I057552b555ee891810d4577b7359ed309d5c1611
* | | am 849425a7: am a20d5db4: Fix a test with broken expectations for localized ↵Jesse Wilson2010-10-041-1/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | arabic exponent. Merge commit '849425a7c0935b4695d1861edc8a92589e89f9ab' * commit '849425a7c0935b4695d1861edc8a92589e89f9ab': Fix a test with broken expectations for localized arabic exponent.
| * | Fix a test with broken expectations for localized arabic exponent.Jesse Wilson2010-10-041-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | Also tagging the RI as failing this test, and fixing a broken bug number in another test. Change-Id: I800e82832050d45df6853fd7d3c5bc14e60842d3 http://b/3060661
* | | am 65eee03b: am 2d9aee7a: Merge "Update TestUtils certificates to fix ↵Brian Carlstrom2010-10-041-9/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | CertPathBuilder1Test and CertPathTest" into gingerbread Merge commit '65eee03bc90772ba766348ac4be4927959314c80' * commit '65eee03bc90772ba766348ac4be4927959314c80': Update TestUtils certificates to fix CertPathBuilder1Test and CertPathTest
| * | Update TestUtils certificates to fix CertPathBuilder1Test and CertPathTestBrian Carlstrom2010-10-041-9/+0
| |/ | | | | | | | | Bug: 2322662 Change-Id: I8ad9a91f4095807bd710045eef3a97a86b560f49
* | am 3efa3e34: am c1851da3: Scrub test failures in java.text.Jesse Wilson2010-10-011-5/+47
|\ \ | |/ | | | | | | | | | | Merge commit '3efa3e3429d360706117411942494d0aabebcfe8' * commit '3efa3e3429d360706117411942494d0aabebcfe8': Scrub test failures in java.text.
| * Scrub test failures in java.text.Jesse Wilson2010-10-011-5/+47
| | | | | | | | Change-Id: Icee3cd8bd3b8fa4b3902435c66021cabb7fc322d
* | am 70213cf9: am 60bc3926: Remove an out-of-date expectation.Elliott Hughes2010-10-011-5/+0
|\ \ | |/ | | | | | | | | | | Merge commit '70213cf9157f8d78c5562c9c08f059b14511fe9d' * commit '70213cf9157f8d78c5562c9c08f059b14511fe9d': Remove an out-of-date expectation.
| * Remove an out-of-date expectation.Elliott Hughes2010-10-011-5/+0
| | | | | | | | | | | | | | | | (You have to remove all the SecurityManager cruft from this SecurityManager test to see that this expectation is bogus.) Bug: 1677221 Change-Id: I3907e0c105523195669c32d2aad7e8133f2e7f12
* | am 853b9e1d: am bdc4c59a: Add expectations for DecimalFormat test failures.Jesse Wilson2010-09-301-1/+6
|\ \ | |/ | | | | | | | | | | Merge commit '853b9e1db7a51fd37bef2dafe5c6968e1254f459' * commit '853b9e1db7a51fd37bef2dafe5c6968e1254f459': Add expectations for DecimalFormat test failures.
| * Add expectations for DecimalFormat test failures.Jesse Wilson2010-09-291-1/+6
| | | | | | | | Change-Id: Iee4dffb4f3dded37866f35f0100d905553b9b3ca
* | am aeb874af: am fca556c7: Fix problems where knownfailures has drifted out ↵Jesse Wilson2010-09-281-8/+13
|\ \ | |/ | | | | | | | | | | | | | | of date from our suite. Merge commit 'aeb874afce86c3f362ffb20611128e2e11615274' * commit 'aeb874afce86c3f362ffb20611128e2e11615274': Fix problems where knownfailures has drifted out of date from our suite.
| * Fix problems where knownfailures has drifted out of date from our suite.Jesse Wilson2010-09-281-8/+13
| | | | | | | | | | | | http://b/3045163. Change-Id: I9c9c6d4429f09d5f5cd92447de9a3c9d67294286
* | am 5ac2871d: am 1f8243e3: Remove java.net tests that are redundant with Harmony.Jesse Wilson2010-09-281-0/+14
|\ \ | |/ | | | | | | | | | | Merge commit '5ac2871d06cf6d9a8f2c40f6ce2118f40d2750f4' * commit '5ac2871d06cf6d9a8f2c40f6ce2118f40d2750f4': Remove java.net tests that are redundant with Harmony.
| * Remove java.net tests that are redundant with Harmony.Jesse Wilson2010-09-281-0/+14
| | | | | | | | Change-Id: I01d6b3633a6de8a075982975d4cbf6c08e757490
* | am 794ef59c: am 0c72bd4d: Merge "Update expectations for tests failing only ↵Jesse Wilson2010-09-281-8/+16
|\ \ | |/ | | | | | | | | | | | | | | on the host." into gingerbread Merge commit '794ef59cb035a759363dba24296d1f53a8c9481f' * commit '794ef59cb035a759363dba24296d1f53a8c9481f': Update expectations for tests failing only on the host.
| * Merge "Update expectations for tests failing only on the host." into gingerbreadJesse Wilson2010-09-271-8/+16
| |\
| | * Update expectations for tests failing only on the host.Jesse Wilson2010-09-271-8/+16
| | | | | | | | | | | | Change-Id: Ieb30ef5b4607f7dfed0b873a10e3dcb31139141d
* | | am 6397c0c2: am 9920dd55: Merge "Remove FormatterTest tests duplicated with ↵Jesse Wilson2010-09-261-9/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Harmony." into gingerbread Merge commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d' * commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d': Remove FormatterTest tests duplicated with Harmony.
| * | Remove FormatterTest tests duplicated with Harmony.Jesse Wilson2010-09-261-9/+0
| |/ | | | | | | Change-Id: I9c95aac22b9df7efff6595e94700a17cfc5d3d7b
* | am 72d73552: am 4d105209: Attach bugs to failures in MathTest and ↵Jesse Wilson2010-09-251-0/+22
|\ \ | |/ | | | | | | | | | | | | | | StrictMathTest. Merge commit '72d73552202c5fccb6b26c787482430efd079df1' * commit '72d73552202c5fccb6b26c787482430efd079df1': Attach bugs to failures in MathTest and StrictMathTest.
| * Attach bugs to failures in MathTest and StrictMathTest.Jesse Wilson2010-09-251-0/+22
| | | | | | | | Change-Id: Ifd0cf35e6e3dee4fe512db962db5f44c6e614af4
* | am 5147718a: am 0e5792e8: Attach charset tests to their tracking bugs.Jesse Wilson2010-09-241-0/+22
|\ \ | |/ | | | | | | | | | | Merge commit '5147718a964bf7cf94951689af0e57fb4113f9e0' * commit '5147718a964bf7cf94951689af0e57fb4113f9e0': Attach charset tests to their tracking bugs.
| * Attach charset tests to their tracking bugs.Jesse Wilson2010-09-241-0/+22
| | | | | | | | Change-Id: I598a6b34a662e528f9b03a41f419bf7e47755ce2
* | am ae1f467f: am 18a7c239: am ceb76118: Merge "Add expectations for some ↵Jesse Wilson2010-09-242-3/+38
|\ \ | |/ | | | | | | | | | | | | | | tests failing in Hudson." into gingerbread Merge commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d' into dalvik-dev * commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d': Add expectations for some tests failing in Hudson.
| * Add expectations for some tests failing in Hudson.Jesse Wilson2010-09-232-3/+38
| | | | | | | | Change-Id: Iee064e099a30d4ab6de7a80863df6b1485e23b38
| * Use JSON for expectations files.Jesse Wilson2010-09-224-1924/+1985
| | | | | | | | | | | | | | | | This allows us to print the expectation description when a test fails. I'll follow this up by wiring vogar to do very clever things with the statuses of linked bugs. Change-Id: Idc3048b5dafff864675e760a3bb0c8fea48bb807
* | Manually merge 69680: JSON expectationsJesse Wilson2010-09-234-1948/+1985
| | | | | | | | Change-Id: I983ad951e6445744b39dc763cf425172d2f4da31
* | Address test failures in java.util.zip.Jesse Wilson2010-09-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Some deflater tests fail because they expect a specific byte sequence in the compressed form. Our compressed form is valid but has a different sequence. I've written new tests to cover the related APIs and suppressed the broken tests. The other deleted tests are duplicated exactly from Harmony. I'm removing our copy. Change-Id: If480d54948e634e4f6b1018da30951a1d4d07b49
* | Suppress broken jtreg tests that expect command line parameters.Jesse Wilson2010-09-021-0/+12
|/ | | | Change-Id: I6aab06d22dd59b4c9ca1ffce7413e0f4adf472e1
* Updating expectations for Harmony tests that we have yet to fixJesse Wilson2010-08-201-0/+18
| | | | Change-Id: Ifdc2cb5f007ac4ab4169833f9fb144c16b9a2888
* Fix an obsolete test suppressionJesse Wilson2010-08-101-4/+0
| | | | Change-Id: Id7cd798db349db1e25f7788c80a1bb0565d33468
* Moving tests to be under the libcore.* package.Jesse Wilson2010-08-102-2/+2
| | | | | | | | This is indended to make it easier to run on VMs that restrict the packages from which application classes can be loaded. For example, on the RI you need to use the bootclasspath to load these tests. Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af
* Bring SSLSocketImpl and SSLEngine in line with OpenSSLSocketImpl's cipher suitesBrian Carlstrom2010-07-221-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrote an interoperability test between our OpenSSL and SSLEngine based SSLSocket implementations. Used it to flush out problems between the implementations, which mostly were in the non-native implementation. Filling out the SSLEngine (and therefore non-native SSLSocket) support led to the list of supported and default cipher suites now being the same as out OpenSSL SSLSocket. Most of the work was making the the NULL, RC4, and AES ciphers work with SSLEngine as well as some minor bug fixes in related code. Summary: - changing test_SSLSocket_getSupportedCipherSuites_connect to try all combinations of our two SSLContext/SSLSocket implementations - fixed SSLEngine with *_WITH_NULL_* CipherSuites to use javax.crypto.NullCipher - added *_AES_* cipher suites to SSLEngine (and therefore Java SSLSocketImpl) - remove *_DH_* cipher suites which are not supported by the RI or our OpenSSL implementation - fixed Java SSLSocket to not handshake on accept so will pass the basic SSLSocketTest - added new KeyManagerFactoryTest while testing "DH_" cipher suite key types This change depends on restoring bouncycastle's RC4 implementation (separate CL in external/bouncycastle) Details: Fixed SSLEngine with *_WITH_NULL_* CipherSuites by use javax.crypto.NullCipher expectations/knownfailures.txt luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateSSLv3.java luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateTLS.java Previously I had changed the string name of CipherSuites from "TLS_..." to "SSL_..." where appropriate to match the RI. Since I was doing maintenance on overall list, I renamed the CODE_TLS_... and TLS_... static fields as well to match. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java luni/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionImpl.java Removed IDEA and RC2 CipherSuites to make it clear they are not supported. While technically this happened as a side effect of the assignment "supported = false" if the CipherSuite failed to load, we truly intend not to support these. Also removed SSH_DH_* suites which don't work with DSA keys and aren't supported by the RI or our OpenSSL implementation. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java Old connection state code assumed that if a cipher was blocked, the block size was 8 bytes. This is not true for the 16 byte AES ciphers. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionState.java luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateSSLv3.java luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ConnectionStateTLS.java No wonder our OpenSSL implementation incorrect did a startHandshake when accepting the socket... it got it from the Java implementation. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLServerSocketImpl.java Test for KeyManagerFactory (and KeyManager). TestKeyStore now creates KeyManagers and TrustManagers from the keystore as a convenience for KeyManagerFactoryTest (instead of having the code in the TestSSLContext where we didn't keep a pointer to the created values). luni/src/test/java/javax/net/ssl/KeyManagerFactoryTest.java support/src/test/java/java/security/StandardNames.java support/src/test/java/java/security/TestKeyStore.java support/src/test/java/javax/net/ssl/TestSSLContext.java Remove CIPHER_SUITES_SSLENGINE now that its the same as CIPHER_SUITES luni/src/test/java/javax/net/ssl/SSLEngineTest.java support/src/test/java/java/security/StandardNames.java test_SSLSocket_getSupportedCipherSuites_connect now does interoperability testing not just between the default SSLContext's SSLSockets but between the four combinations of our two SSLContext. It also now sends some test data bi-directionally between the client and server. luni/src/test/java/javax/net/ssl/SSLSocketTest.java Changed TestSSLContext.create to allow a different Provider for the client and server SSLContexts. luni/src/test/java/javax/net/ssl/SSLEngineTest.java luni/src/test/java/javax/net/ssl/SSLSocketTest.java support/src/test/java/javax/net/ssl/TestSSLContext.java RC4 is now available in bouncycastle for the non-OpenSSL SSLContext to use for parity with the OpenSSL implementation. support/src/test/java/java/security/StandardNames.java Changed TestSSLSocketPair to use Futures like NativeCryptoTest so its easier to choose between client and server errors while debuging. support/src/test/java/javax/net/ssl/TestSSLSocketPair.java Removed bogus import luni/src/test/java/org/apache/harmony/xnet/provider/jsse/NativeCryptoTest.java Change-Id: I080c0343a3f86f27b7c191a7b80b585b9ca52d93
* TestKeyStore only use RSA by default & fixing SSLEngine client auth with DSA ↵Brian Carlstrom2010-07-081-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client and RSA server Summary: Goal here was to just make most tests faster by only having TestKeyStore create RSA keys by default. However, when I did that SSLEngineTest#test_SSLEngine_clientAuth started working, so I ended up investigating a much deeper issue with DSA client authentication against an RSA SSLEngine server. Details: Changed the TestKeyStore.get singleton to only contain RSA keys. TestKeyStore.create now requires the caller enumerate what keys they want if they need more than that or an alternative. support/src/test/java/javax/net/ssl/TestKeyStore.java Changed test_SSLSocket_getSupportedCipherSuites_connect to explicitly request RSA and DSA keys since it needs both to try connecting all possible cipher suites. luni/src/test/java/javax/net/ssl/SSLSocketTest.java Fixing SSLEngine client authentication when server uses RSA but client uses DSA Fixed java.net.ssl.SSLEngineTest#test_SSLEngine_clientAuth expectations/knownfailures.txt Added CiperSuite.authType field which contains the algorithm name such as RSA, DSA, DH, that the client will use to authenticate the server. Like the cipherName, hmacName, and hashName, this is logically derivable from the the CiperSuite.KEY_EXCHANGE_*, but we remember it to avoid repeatedly doing large cascading "if" tests to determine which key algorithm should be used for each case. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CipherSuite.java Fixed a number of client certificate authentication bugs in SSLEngine - Changed ClientHandshakeImpl's in the SSL/Tls Certificate message code to mirror ServerHandshakeImpl's implementation to properly use chooseEngineClientAlias in the SSLEngine case. - Changed to use the client certifcates key algorithm for computing the signature for the SSL/TLS CertificateVerify message. Previously we used the cipher suites negoitated key exchange method, but if the client may select a certificate with a different algorithm if the server provides a CA for another algorithm. - Also changed to use CipherSuite.isAnonymous in two places rather than the inlined equivalent. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ClientHandshakeImpl.java Fixed client authentication to use the client's certificate (not the server's) to do verify the CertificateVerify message signature. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ServerHandshakeImpl.java Fixed bug in DigitalSignature which did not Signature.update in verifySignature, so it could never have properly authenticated DSA signatures. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java Added CertificateMessage getAuthType convenience luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CertificateMessage.java Made CertificateRequest certificate_authorities final, found we were double allocating it luni/src/main/java/org/apache/harmony/xnet/provider/jsse/CertificateRequest.java Cleaning up imports of HandshakeProtocol while working on its subclasses. luni/src/main/java/org/apache/harmony/xnet/provider/jsse/HandshakeProtocol.java Cleaned up while looking at X509KeyManager implementations while debugging. support/src/test/java/org/apache/harmony/xnet/tests/support/X509KeyManagerImpl.java Change-Id: I74b98754c11000cbfea416f1571c380c9c67abf3
* Merge "Scrubbing tests marked @BrokenTest." into dalvik-devJesse Wilson2010-06-241-1/+1
|\
| * Scrubbing tests marked @BrokenTest.Jesse Wilson2010-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rearranges the security test support infrastructure. We no longer rely on many top-level classes defined in CipherHelper.java to provide test support. Instead these each have their own top level class in our test support package: support/src/test/java/tests/security. Similarly for abstract classes intended to be subclassed by cipher-specific tests. Other test methods that were duplicated in Harmony have been removed. We need to pay closer attention to Harmony failures because they are now our only source of coverage for some of these tests. Change-Id: I1a1ca8a046bc9b6a33d5fa3f55fecc0d39f72c16
* | Add an expectation.Elliott Hughes2010-06-231-0/+4
|/ | | | Change-Id: Ic28d57e90e36cbb40b66393acc53296d75d77277
* Improve Formatter exception detail messages and fix test expectations.Elliott Hughes2010-06-221-0/+23
| | | | | Bug: 2788945 Change-Id: I959df2c338a4d85497a23705b553f0c749ef1070
* Fixing some test suppressions.Jesse Wilson2010-06-222-20/+3
| | | | | | | | | Removing tests duplicated with Harmony. Tests methods in such test classes are moved to their own test classes in our test tree. Removing all Pack200 tests; these don't make sense on a dalvik vm. Change-Id: Ia2f6a542b4e3e3b50962c83dc2700bd4ee07f363
* Deduplicating failed tests in org.apache.harmony.luni.tests.java.lang.Jesse Wilson2010-06-221-4/+0
| | | | | | | | | | | Some tests were copied from Harmony and fixed in Dalvik. I've applied fixes in our SVN copy of Harmony and removed the duplicate copies here. Also improving error reporting for missing resource files. Some of our serialization tests were failing due to missing files; the corresponding Harmony tests succeed. Change-Id: I73872b03674f8731ff237f575dcda66f9d53c06a
* Merge "javax.crypto tests moving to vogar" into dalvik-devBrian Carlstrom2010-06-182-2/+19
|\
| * javax.crypto tests moving to vogarBrian Carlstrom2010-06-182-2/+19
| | | | | | | | | | | | | | Tested these with the coming BouncyCastle 1.45 upgrade. Confirmed the failures happen on continuous build before the upgrade. Change-Id: Idbd08d1641dbba9297840105ac018353dad5205a
* | Implementing ZoneInfo.hasSameRules().Jesse Wilson2010-06-181-0/+5
|/ | | | | | | | | | | | Moving TimeZoneTest to OldTimeZoneTest and removing test methods that are duplicated between libcore and Harmony. Also adding Objects.equals() to make implementing this easy, and removing redundant time zone tests. I did a few searches to find candidate code that could take advantage of this new utility method and adopted it there. Change-Id: I133298f1b36d755bd35c1ad0dc0ab366fd164270
* Remove a duplicate expectation.Elliott Hughes2010-06-151-4/+0
| | | | | | (Maybe vogar should make this a loud warning rather than a failure?) Change-Id: I9f178348c0ecbb432b26e3c98a5fb7b388a95ebc