Commits (4)
# ResourceConfiguration
This project contains the configuration for resources for the resource type system.
\ No newline at end of file
This project contains the configuration for resources for the resource type system.
\ No newline at end of file
......@@ -29,13 +29,13 @@ namespace Coscine.ResourceConfiguration.Tests
[Test]
public void TestConstructor()
{
Coscine.ResourceConfiguration.ResourceConfiguration resourceConfiguration = new Coscine.ResourceConfiguration.ResourceConfiguration();
_ = new ResourceConfiguration();
}
[Test]
public void TestIsValidResource()
{
Coscine.ResourceConfiguration.ResourceConfiguration resourcenConfiguration = new Coscine.ResourceConfiguration.ResourceConfiguration();
ResourceConfiguration resourcenConfiguration = new ResourceConfiguration();
Assert.True(resourcenConfiguration.IsValidResource(_resourceTypeValid));
Assert.False(resourcenConfiguration.IsValidResource(_resourceTypeInvalid));
}
......@@ -43,7 +43,7 @@ namespace Coscine.ResourceConfiguration.Tests
[Test]
public void TestGetResourceType()
{
Coscine.ResourceConfiguration.ResourceConfiguration resourcenConfiguration = new Coscine.ResourceConfiguration.ResourceConfiguration();
ResourceConfiguration resourcenConfiguration = new ResourceConfiguration();
Assert.True(resourcenConfiguration.GetResourceType(_resourceTypeValid).GetType() == new ResourceTypeConfigurationObject().GetType());
Assert.True(resourcenConfiguration.GetResourceType(_resourceTypeInvalid) == null);
}
......@@ -51,7 +51,7 @@ namespace Coscine.ResourceConfiguration.Tests
[Test]
public void TestGetResourceTypes()
{
Coscine.ResourceConfiguration.ResourceConfiguration resourcenConfiguration = new Coscine.ResourceConfiguration.ResourceConfiguration();
ResourceConfiguration resourcenConfiguration = new ResourceConfiguration();
Assert.IsTrue(resourcenConfiguration.GetResourceTypesByStatus("active").Count == resourcenConfiguration.GetAvailableResourceTypes().Count);
}
......
......@@ -4,7 +4,7 @@
<RootNamespace>Coscine.ResourceConfiguration</RootNamespace>
<AssemblyName>Coscine.ResourceConfiguration</AssemblyName>
<TargetFramework>net5.0</TargetFramework>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......
......@@ -20,7 +20,6 @@
"status": "active",
"config": {},
"requiredFields": [
"BucketName",
"Size"
]
},
......@@ -40,6 +39,19 @@
"ResourceUrl"
]
},
"rdss3": {
"name": {
"de": "FDS S3",
"en": "RDS S3"
},
"path": "ResourceTypeWaterbutlerRdsS3\\Coscine.ResourceTypeWaterbutlerRdsS3.dll",
"className": "ResourceTypeWaterbutlerRdsS3",
"status": "active",
"config": {},
"requiredFields": [
"Size"
]
},
"gitlab": {
"name": {
"de": "Gitlab",
......