Commit 97d26348 authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Merge branch 'file_service_test_data' into 'master'

File and Delivery Services: Adding Test Data

See merge request osdu/platform/deployment-and-operations/infra-azure-provisioning!68
parents 854c763d dc2811d4
{
"id": "8900a83f-18c6-4b1d-8f38-309a208779cc"
}
\ No newline at end of file
...@@ -127,9 +127,17 @@ def storage_schema(db): ...@@ -127,9 +127,17 @@ def storage_schema(db):
container.upsert_item(storage_schema_11) container.upsert_item(storage_schema_11)
return 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__": if __name__ == "__main__":
tenant_info(db) tenant_info(db)
user_info(db) user_info(db)
legal_tag(db) legal_tag(db)
storage_schema(db) storage_schema(db)
file_location_entity(db)
\ No newline at end of file
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
"cron.job", "cron.job",
"notification.pubsub", "notification.pubsub",
"service.file.viewers", "service.file.viewers",
"service.file.editors" "service.file.editors",
"service.delivery.viewer"
] ]
}, },
{ {
...@@ -52,7 +53,8 @@ ...@@ -52,7 +53,8 @@
"cron.job", "cron.job",
"notification.pubsub", "notification.pubsub",
"service.file.viewers", "service.file.viewers",
"service.file.editors" "service.file.editors",
"service.delivery.viewer"
] ]
} }
] ]
......
...@@ -78,7 +78,7 @@ AZURE_AD_APP_RESOURCE_ID="${ENV_APP_ID}" ...@@ -78,7 +78,7 @@ AZURE_AD_APP_RESOURCE_ID="${ENV_APP_ID}"
NO_DATA_ACCESS_TESTER="${NO_ACCESS_ID}" NO_DATA_ACCESS_TESTER="${NO_ACCESS_ID}"
NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="${NO_ACCESS_SECRET}" NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET="${NO_ACCESS_SECRET}"
USER_ID="osdu-user" USER_ID="osdu-user"
EXIST_FILE_ID="test_data" EXIST_FILE_ID="8900a83f-18c6-4b1d-8f38-309a208779cc"
TIME_ZONE="UTC+0" TIME_ZONE="UTC+0"
cat > ${UNIQUE}/${SERVICE}.envrc <<LOCALENV cat > ${UNIQUE}/${SERVICE}.envrc <<LOCALENV
......
Supports Markdown
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