Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kelly Domico
OS Core Lib Azure
Commits
99520c03
Commit
99520c03
authored
Sep 10, 2020
by
harshit aggarwal
Browse files
minor fix
parent
6c1f574c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/multitenancy/TenantFactoryImpl.java
View file @
99520c03
...
...
@@ -25,7 +25,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
java.util.Arrays
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
...
...
@@ -115,7 +114,6 @@ public class TenantFactoryImpl implements ITenantFactory {
ti
.
setComplianceRuleSet
(
tenantInfoDoc
.
getComplianceRuleSet
());
ti
.
setDataPartitionId
(
tenantName
);
ti
.
setServiceAccount
(
tenantInfoDoc
.
getServiceprincipalAppId
());
ti
.
setCrmAccountIds
(
Arrays
.
asList
(
tenantInfoDoc
.
getGroups
()));
this
.
tenants
.
put
(
tenantName
,
ti
);
}
);
...
...
src/test/java/org/opengroup/osdu/azure/multitenancy/TenantFactoryImplTest.java
View file @
99520c03
...
...
@@ -82,7 +82,6 @@ public class TenantFactoryImplTest {
expected
.
setDataPartitionId
(
tenantName
);
expected
.
setComplianceRuleSet
(
complianceRuleSet
);
expected
.
setServiceAccount
(
serviceprincipalAppId
);
expected
.
setCrmAccountIds
(
Collections
.
singletonList
(
"first"
));
assertEquals
(
expected
,
result
);
}
...
...
@@ -109,7 +108,6 @@ public class TenantFactoryImplTest {
tenantInfo
.
setDataPartitionId
(
tenantName
);
tenantInfo
.
setComplianceRuleSet
(
complianceRuleSet
);
tenantInfo
.
setServiceAccount
(
serviceprincipalAppId
);
tenantInfo
.
setCrmAccountIds
(
Collections
.
singletonList
(
"first"
));
List
<
TenantInfo
>
expected
=
Collections
.
singletonList
(
tenantInfo
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment