Commit 1b54a891 authored by Kishore Battula's avatar Kishore Battula
Browse files

Merge branch 'haaggarw/BugFixTenantFactoryImpl' into 'master'

Adding serviceprincipal attribute in TenantInfo

See merge request !29
parents 66ab7e59 99520c03
......@@ -21,7 +21,7 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<packaging>jar</packaging>
<version>0.0.27</version>
<version>0.0.28</version>
<name>core-lib-azure</name>
<properties>
......
......@@ -113,6 +113,7 @@ public class TenantFactoryImpl implements ITenantFactory {
ti.setName(tenantName);
ti.setComplianceRuleSet(tenantInfoDoc.getComplianceRuleSet());
ti.setDataPartitionId(tenantName);
ti.setServiceAccount(tenantInfoDoc.getServiceprincipalAppId());
this.tenants.put(tenantName, ti);
}
);
......
......@@ -81,6 +81,7 @@ public class TenantFactoryImplTest {
expected.setName(tenantName);
expected.setDataPartitionId(tenantName);
expected.setComplianceRuleSet(complianceRuleSet);
expected.setServiceAccount(serviceprincipalAppId);
assertEquals(expected, result);
}
......@@ -106,6 +107,7 @@ public class TenantFactoryImplTest {
tenantInfo.setName(tenantName);
tenantInfo.setDataPartitionId(tenantName);
tenantInfo.setComplianceRuleSet(complianceRuleSet);
tenantInfo.setServiceAccount(serviceprincipalAppId);
List<TenantInfo> expected = Collections.singletonList(tenantInfo);
......
Supports Markdown
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