Commit d8ed859d authored by Yauheni Lesnikau's avatar Yauheni Lesnikau
Browse files

Merge branch 'paramatrize-acl-postfix-it' into 'master'

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

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