Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Notification
Commits
89e44a91
Commit
89e44a91
authored
Oct 14, 2021
by
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
Changes
2
Pipelines
3
Expand all
Hide whitespace changes
Inline
Side-by-side
NOTICE
View file @
89e44a91
This diff is collapsed.
Click to expand it.
testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/StorageIntegrationDescriptor.java
View file @
89e44a91
...
...
@@ -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"
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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