Skip to content

Commit

Permalink
More Improvements:
Browse files Browse the repository at this point in the history
- Fix warnings when building nuspec
- Move restore method to SqlSetupStrategy
  • Loading branch information
cheenamalhotra committed Oct 16, 2019
1 parent 014865d commit 90c1adb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<Target Name="Restore" DependsOnTargets="RestoreNetCore;RestoreNetFx" />
<Target Name="BuildAll" DependsOnTargets="BuildNetFx;BuildNetCore" />
<Target Name="BuildAllConfigurations" DependsOnTargets="BuildNetFx;BuildNetCoreAllOS;GenerateNugetPackage" />
<Target Name="BuildTestsNetCore" DependsOnTargets="BuildFunctionalTestsNetCore;BuildManualTestsNetCore" />
<Target Name="BuildTestsNetFx" DependsOnTargets="BuildFunctionalTestsNetFx;BuildManualTestsNetFx" />
<Target Name="BuildTestsNetCore" DependsOnTargets="BuildAKVNetCore;BuildFunctionalTestsNetCore;BuildManualTestsNetCore" />
<Target Name="BuildTestsNetFx" DependsOnTargets="BuildAKVNetFx;BuildFunctionalTestsNetFx;BuildManualTestsNetFx" />

<Target Name="RestoreNetCore">
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ public class AKVTest : IClassFixture<SQLSetupStrategy>, IDisposable

public AKVTest(SQLSetupStrategy fixture)
{
Dictionary<string, SqlColumnEncryptionKeyStoreProvider> customAkvKeyStoreProviders = new Dictionary<string, SqlColumnEncryptionKeyStoreProvider>(capacity: 1, comparer: StringComparer.OrdinalIgnoreCase)
{
{SqlColumnEncryptionAzureKeyVaultProvider.ProviderName, fixture.akvStoreProvider}
};

SqlConnection.RegisterColumnEncryptionKeyStoreProviders(customProviders: customAkvKeyStoreProviders);

this.fixture = fixture;
tableName = fixture.AKVTestTable.Name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ public SQLSetupStrategy()
certStoreProvider = new SqlColumnEncryptionCertificateStoreProvider();
akvStoreProvider = new SqlColumnEncryptionAzureKeyVaultProvider(authenticationCallback: authenticationCallback);
SetupDatabase();

Dictionary<string, SqlColumnEncryptionKeyStoreProvider> customAkvKeyStoreProviders = new Dictionary<string, SqlColumnEncryptionKeyStoreProvider>(capacity: 1, comparer: StringComparer.OrdinalIgnoreCase)
{
{SqlColumnEncryptionAzureKeyVaultProvider.ProviderName, akvStoreProvider}
};

SqlConnection.RegisterColumnEncryptionKeyStoreProviders(customProviders: customAkvKeyStoreProviders);
}

protected SQLSetupStrategy(string customKeyPath) => keyPath = customKeyPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://aka.ms/sqlclientproject</projectUrl>
<iconUrl>https://go.microsoft.com/fwlink/?linkid=2090301</iconUrl>
<icon>dotnet.png</icon>
<description>Always Encrypted Azure Key Vault Provider for Microsoft.Data.SqlClient.

Available Types:
Expand Down Expand Up @@ -38,6 +38,8 @@ Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyStoreProvider.SqlColumnEncrypti
</frameworkAssemblies>
</metadata>
<files>
<file src="..\..\icons\dotnet.png" target="" />

<!-- NetFx Files -->
<!--file src="..\..\..\bin\Windows_NT\$Configuration$\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider\ref\net46\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.dll" target="ref\net46\" exclude="" />
<file src="..\..\..\bin\Windows_NT\$Configuration$\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider\ref\net46\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.pdb" target="ref\net46\" exclude="" />
Expand Down

0 comments on commit 90c1adb

Please sign in to comment.