Commit 77727121 authored by Petar Hristov's avatar Petar Hristov 💬
Browse files

Merge branch 'Hotfix/64-releaseUDE' into 'master'

Hotfix/64 release ude

See merge request !23
parents 72c6b4a8 a7e75d55
......@@ -9,7 +9,7 @@
<ProjectReference Include="..\ResourceTypeWaterbutlerRdsS3\ResourceTypeWaterbutlerRdsS3.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Coscine.ResourceLoader" Version="2.*-*" />
<PackageReference Include="Coscine.ResourceLoader" Version="2.*-*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
......
......@@ -14,8 +14,8 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3.Test
public class ResourceTypeWaterbutlerRdsS3Tests
{
private readonly string _testPrefix = "Coscine-ResourceTypeWaterbutlerS3Tests-Tests";
private readonly string _rdsS3KeyPrefix = "coscine/global/rds/ecs-rwth/rds-s3";
private readonly string _userKeyPrefix = "coscine/global/rds/ecs-rwth/users";
private string _rdsS3KeyPrefix;
private string _userKeyPrefix;
private readonly ResourceTypeConfigurationObject _resourceTypeConfiguration = new ResourceTypeConfigurationObject();
private readonly IConfiguration _configuration = new ConsulConfiguration();
......@@ -43,11 +43,17 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3.Test
{
_resourceTypeConfiguration.Config = new Dictionary<string, string>
{
{ "rdss3Key", "coscine/global/rds/ecs-rwth/rds-s3" },
{ "userKey", "coscine/global/rds/ecs-rwth/users"}
};
_resourceType = "rdss3";
_localAssemblyName = "Coscine.ResourceTypeWaterbutlerRdsS3";
_rdsS3KeyPrefix = _resourceTypeConfiguration.Config["rdss3Key"];
_userKeyPrefix = _resourceTypeConfiguration.Config["userKey"];
_quota = 1;
_guid = Guid.NewGuid();
_bucketName = $"{_testPrefix}.{_guid}";
......
......@@ -17,8 +17,8 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3
{
public class ResourceTypeWaterbutlerRdsS3 : ResourceTypeDefinition
{
private readonly string _rdsS3KeyPrefix = "coscine/global/rds/ecs-rwth/rds-s3";
private readonly string _userKeyPrefix = "coscine/global/rds/ecs-rwth/users";
private readonly string _rdsS3KeyPrefix;
private readonly string _userKeyPrefix;
private readonly WaterbutlerInterface _waterbutlerInterface;
......@@ -36,6 +36,8 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3
public ResourceTypeWaterbutlerRdsS3(string name, IConfiguration gConfig, ResourceTypeConfigurationObject resourceTypeConfiguration) : base(name, gConfig, resourceTypeConfiguration)
{
_waterbutlerInterface = new WaterbutlerInterface(Configuration, new DataSourceService(new HttpClient()));
_rdsS3KeyPrefix = resourceTypeConfiguration.Config["rdss3Key"];
_userKeyPrefix = resourceTypeConfiguration.Config["userKey"];
_rdsS3EcsManager = new EcsManager
{
EcsManagerConfiguration = new EcsManagerConfiguration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment