Update the test and README

This commit is contained in:
mike cullerton 2022-05-17 10:00:16 -04:00
parent 1b4821d2b9
commit 26abac3352
2 changed files with 3 additions and 2 deletions

View File

@ -128,6 +128,7 @@ define the Docker Container, as /config/default.py offers a good example of the
- PB_ENABLED=true # Generally true, we should connect to Protocol Builder
- PREFERRED_URL_SCHEME=https # Generally you want to run on SSL, should be https
- SERVER_NAME=testing.crconnect.uvadcos.io # The url used to access this app.
- INSTANCE_NAME=testing # This is the informal name of the server, used in BPMN documents
- TOKEN_AUTH_SECRET_KEY=-0-0-0- TESTING SUPER SECURE -0-0-0- # Some random characters that seed our key gen.
- APPLICATION_ROOT=/api # Appended to SERVER_NAME, is the full path to this service
- ADMIN_UIDS=dhf8r,cah3us # A comma delimited list of people who can preform administrative tasks.

View File

@ -6,9 +6,9 @@ from crc import app
class TestGetInstance(BaseTest):
def test_get_instance(self):
server_name = app.config['SERVER_NAME']
instance_name = app.config['INSTANCE_NAME']
workflow = self.create_workflow('get_instance')
workflow_api = self.get_workflow_api(workflow)
task = workflow_api.next_task
data = task.data
self.assertEqual(server_name, data['instance'])
self.assertEqual(instance_name, data['instance'])