Skip to content

Conversation

@rene-ye
Copy link
Member

@rene-ye rene-ye commented Feb 13, 2020

Driver changes:
Changed logic to write '0' instead of writing a byte array of '0' when attempting to pad BigIntegers that are not exactly 48 bytes in size.

Test Changes:
Removed duplicate tests from EnclaveTests that are covered in JDBCEncryptionDecryption.
Removed unnecessary server calls to check the state of AE.
Removed unnecessary setup calls in CallableStatement.
Added Enclave computation tests for:

  • String compares with "LIKE"
  • Numeric compares with " = "
  • On the spot column decryption with "ALTER"

Added a negative test which creates an encrypted table and attempts to perform AEv2 operations with a connection without AEv2 enabled.

@codecov-io
Copy link

codecov-io commented Feb 14, 2020

Codecov Report

Merging #1262 into dev will increase coverage by 3.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #1262      +/-   ##
============================================
+ Coverage     52.95%   56.07%   +3.12%     
- Complexity     3492     3704     +212     
============================================
  Files           133      133              
  Lines         30096    30096              
  Branches       4979     4979              
============================================
+ Hits          15936    16876     +940     
+ Misses        11870    10840    -1030     
- Partials       2290     2380      +90     
Impacted Files Coverage Δ Complexity Δ
...soft/sqlserver/jdbc/ISQLServerEnclaveProvider.java 80.61% <100.00%> (+80.61%) 14.00 <0.00> (+14.00)
...soft/sqlserver/jdbc/SQLServerCertificateUtils.java 0.00% <0.00%> (-81.40%) 0.00% <0.00%> (-22.00%)
...ft/sqlserver/jdbc/SQLServerBouncyCastleLoader.java 0.00% <0.00%> (-80.00%) 0.00% <0.00%> (-2.00%)
.../com/microsoft/sqlserver/jdbc/SqlFedAuthToken.java 0.00% <0.00%> (-40.00%) 0.00% <0.00%> (-1.00%)
...m/microsoft/sqlserver/jdbc/KeyVaultCredential.java 65.11% <0.00%> (-16.28%) 4.00% <0.00%> (ø%)
...osoft/sqlserver/jdbc/SQLServerSecurityUtility.java 26.70% <0.00%> (-14.29%) 12.00% <0.00%> (ø%)
...om/microsoft/sqlserver/jdbc/ReaderInputStream.java 43.95% <0.00%> (-3.30%) 15.00% <0.00%> (ø%)
...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java 61.82% <0.00%> (-1.38%) 0.00% <0.00%> (ø%)
...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java 46.80% <0.00%> (-1.25%) 120.00% <0.00%> (-1.00%)
...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java 38.79% <0.00%> (-0.44%) 43.00% <0.00%> (-1.00%)
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c25da5...3c25da5. Read the comment docs.

@ulvii ulvii changed the title Junit changes to run tests faster Feature | Cleanup Always Encrypted with secure enclaves tests Feb 14, 2020
@ulvii ulvii added this to the 8.2.2 milestone Feb 27, 2020
@ulvii ulvii removed this from the 8.3.0 milestone Mar 23, 2020
rene-ye and others added 4 commits April 2, 2020 13:11
# Conflicts:
#	pom.xml
#	src/test/java/com/microsoft/sqlserver/jdbc/AlwaysEncrypted/AESetup.java
#	src/test/java/com/microsoft/sqlserver/jdbc/AlwaysEncrypted/CallableStatementTest.java
#	src/test/java/com/microsoft/sqlserver/jdbc/AlwaysEncrypted/EnclaveTest.java
#	src/test/java/com/microsoft/sqlserver/jdbc/AlwaysEncrypted/JDBCEncryptionDecryptionTest.java
peterbae
peterbae previously approved these changes Apr 14, 2020
lilgreenbird
lilgreenbird previously approved these changes Apr 15, 2020
@rene-ye rene-ye merged commit a6da1ae into microsoft:dev Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants