Commit 89e44a91 authored by Yauheni Lesnikau's avatar Yauheni Lesnikau
Browse files

make domain postfix in the acl block of the record payload configurable

parent 69b41527
Pipeline #73332 passed with stages
in 23 minutes and 47 seconds
This diff is collapsed.
...@@ -25,6 +25,7 @@ import java.util.UUID; ...@@ -25,6 +25,7 @@ import java.util.UUID;
public class StorageIntegrationDescriptor extends RestDescriptor { public class StorageIntegrationDescriptor extends RestDescriptor {
protected static final String LEGAL_TAG = TestUtils.getOsduTenant() + "-test-tag"; protected static final String LEGAL_TAG = TestUtils.getOsduTenant() + "-test-tag";
protected static final String DOMAIN = System.getProperty("DOMAIN", System.getenv("DOMAIN"));
@Override @Override
public String getPath() { public String getPath() {
...@@ -38,6 +39,7 @@ public class StorageIntegrationDescriptor extends RestDescriptor { ...@@ -38,6 +39,7 @@ public class StorageIntegrationDescriptor extends RestDescriptor {
@Override @Override
public String getValidBody() { public String getValidBody() {
String postfix = String.format("%s.%s", TestUtils.getOsduTenant(), DOMAIN);
return "[\n" + return "[\n" +
" {\n" + " {\n" +
" \"data\":{\n" + " \"data\":{\n" +
...@@ -49,9 +51,9 @@ public class StorageIntegrationDescriptor extends RestDescriptor { ...@@ -49,9 +51,9 @@ public class StorageIntegrationDescriptor extends RestDescriptor {
" \"kind\":\"opendes:at:wellbore:1.0.0\",\n" + " \"kind\":\"opendes:at:wellbore:1.0.0\",\n" +
" \"acl\":{\n" + " \"acl\":{\n" +
" \"viewers\":[\n" + " \"viewers\":[\n" +
" \"data.test1@opendes.contoso.com\"],\n" + " \"data.test1@" + postfix + "\"],\n" +
" \"owners\":[\n" + " \"owners\":[\n" +
" \"data.test1@opendes.contoso.com\"]},\n" + " \"data.test1@" + postfix + "\"]},\n" +
" \"legal\":{\n" + " \"legal\":{\n" +
" \"legaltags\":[\n" + " \"legaltags\":[\n" +
" \"" + LEGAL_TAG + "\"],\n" + " \"" + LEGAL_TAG + "\"],\n" +
......
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