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
Sacha Brants
infra-azure-provisioning
Commits
dc2811d4
Commit
dc2811d4
authored
Nov 30, 2020
by
Jason
Committed by
Daniel Scholl
Nov 30, 2020
Browse files
File and Delivery Services: Adding Test Data
parent
052d6f46
Changes
4
Hide whitespace changes
Inline
Side-by-side
tools/test_data/file_location_entity_1.json
0 → 100644
View file @
dc2811d4
{
"id"
:
"8900a83f-18c6-4b1d-8f38-309a208779cc"
}
\ No newline at end of file
tools/test_data/upload-data.py
View file @
dc2811d4
...
...
@@ -127,9 +127,17 @@ def storage_schema(db):
container
.
upsert_item
(
storage_schema_11
)
return
def
file_location_entity
(
db
):
container
=
db
.
get_container_client
(
"FileLocationEntity"
)
with
open
(
"./file_location_entity_1.json"
,
"r"
)
as
f
:
file_location_entity_1
=
json
.
load
(
f
)
container
.
upsert_item
(
file_location_entity_1
)
return
if
__name__
==
"__main__"
:
tenant_info
(
db
)
user_info
(
db
)
legal_tag
(
db
)
storage_schema
(
db
)
file_location_entity
(
db
)
\ No newline at end of file
tools/test_data/user_info_1.json
View file @
dc2811d4
...
...
@@ -24,8 +24,9 @@
"users.datalake.ops"
,
"cron.job"
,
"notification.pubsub"
,
"service.file.viewers"
,
"service.file.editors"
"service.file.viewers"
,
"service.file.editors"
,
"service.delivery.viewer"
]
},
{
...
...
@@ -51,8 +52,9 @@
"users.datalake.ops"
,
"cron.job"
,
"notification.pubsub"
,
"service.file.viewers"
,
"service.file.editors"
"service.file.viewers"
,
"service.file.editors"
,
"service.delivery.viewer"
]
}
]
...
...
tools/variables/file.sh
View file @
dc2811d4
...
...
@@ -78,7 +78,7 @@ AZURE_AD_APP_RESOURCE_ID="${ENV_APP_ID}"
NO_DATA_ACCESS_TESTER
=
"
${
NO_ACCESS_ID
}
"
NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET
=
"
${
NO_ACCESS_SECRET
}
"
USER_ID
=
"osdu-user"
EXIST_FILE_ID
=
"
test_data
"
EXIST_FILE_ID
=
"
8900a83f-18c6-4b1d-8f38-309a208779cc
"
TIME_ZONE
=
"UTC+0"
cat
>
${
UNIQUE
}
/
${
SERVICE
}
.envrc
<<
LOCALENV
...
...
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