Skip to content

Commit

Permalink
Merge pull request #243 from sofyalaski/update-test-env
Browse files Browse the repository at this point in the history
Update env variables for testing
  • Loading branch information
sbliven authored Oct 23, 2024
2 parents d2b107f + 2a3c53e commit 396db35
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dev/config/test_backend_next/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MONGODB_URI=mongodb://mongodb:27017/test_be_next
PID_PREFIX="API_testing"
METADATA_KEYS_RETURN_LIMIT=100
METADATA_PARENT_INSTANCES_RETURN_LIMIT=100
ADMIN_GROUPS="admin,adminingestor"
DELETE_GROUPS="archivemanager"
CREATE_DATASET_GROUPS=group1,group2,group3
Expand All @@ -14,4 +16,6 @@ SAMPLE_GROUPS="group1"
MONGODB_COLLECTION=Dataset
STACK_VERSION=8.8.2
MEM_LIMIT=4G
JOB_CONFIGURATION_FILE="test/config/jobconfig.json"
JOB_CONFIGURATION_FILE="test/config/jobconfig.json"
DATASET_CREATION_VALIDATION_ENABLED=true
DATASET_CREATION_VALIDATION_REGEX="^API_testing/[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
4 changes: 4 additions & 0 deletions dev/config/test_backend_next/jobconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"headers": {
"accept": "application/json"
}
},
{
"actionType": "validate",
"required": ["jobParams.datasetIds[0]"]
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ services:
- ../scicat-backend-next:/home/node/app
- /home/node/app/node_modules
- /home/node/app/dist
- ../scicat-backend-next/functionalAccounts.json.test:/home/node/app/functionalAccounts.json
- ../scicat-backend-next/functionalAccounts.json.minimal.example:/home/node/app/functionalAccounts.json
env_file: ./config/backend_next/.env
command: /bin/sh -c "while true; do sleep 600; done"
profiles:
Expand All @@ -99,6 +99,7 @@ services:
depends_on:
- mongodb
volumes:
- ../scicat-backend-next/functionalAccounts.json.test:/home/node/app/functionalAccounts.json
- ./config/test_backend_next/jobconfig.json:/home/node/app/test/config/jobconfig.json
env_file: ./config/test_backend_next/.env
profiles:
Expand Down

0 comments on commit 396db35

Please sign in to comment.