Browse Source

Skip azure unit testing.

pull/4200/head
maliming 6 years ago
parent
commit
0e2e5629aa
  1. 4
      framework/test/Volo.Abp.BlobStoring.Azure.Tests/Volo/Abp/BlobStoring/Azure/AbpBlobStoringAzureTestModule.cs
  2. 3
      framework/test/Volo.Abp.BlobStoring.Azure.Tests/Volo/Abp/BlobStoring/Azure/AzureBlobContainer_Tests.cs

4
framework/test/Volo.Abp.BlobStoring.Azure.Tests/Volo/Abp/BlobStoring/Azure/AbpBlobStoringAzureTestModule.cs

@ -12,13 +12,15 @@ namespace Volo.Abp.BlobStoring.Azure
)]
public class AbpBlobStoringAzureTestModule : AbpModule
{
public static string UserSecretsId = "9f0d2c00-80c1-435b-bfab-2c39c8249091";
private readonly string _randomContainerName = "abp-azure-test-container-" + Guid.NewGuid().ToString("N");
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.ReplaceConfiguration(ConfigurationHelper.BuildConfiguration(builderAction: builder =>
{
builder.AddUserSecrets("9f0d2c00-80c1-435b-bfab-2c39c8249091");
builder.AddUserSecrets(UserSecretsId);
}));
var configuration = context.Services.GetConfiguration();

3
framework/test/Volo.Abp.BlobStoring.Azure.Tests/Volo/Abp/BlobStoring/Azure/AzureBlobContainer_Tests.cs

@ -1,7 +1,9 @@
using Xunit;
//#define I_HAVE_SET_THE_CORRECT_CONNECTIONSTRING_IN_THE_USERSECRETS_FILE
namespace Volo.Abp.BlobStoring.Azure
{
#if I_HAVE_SET_THE_CORRECT_CONNECTION_STRING_IN_THE_USERSECRETS_FILE
public class AzureBlobContainer_Tests : BlobContainer_Tests<AbpBlobStoringAzureTestModule>
{
public AzureBlobContainer_Tests()
@ -9,4 +11,5 @@ namespace Volo.Abp.BlobStoring.Azure
}
}
#endif
}

Loading…
Cancel
Save