From c2391c2671128e0c8c91ecc273c83bac87fd0e74 Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Wed, 13 Jan 2021 11:37:43 +0000 Subject: [PATCH] #163: Update example config to use localhost values --- config.json.example | 4 ++-- test/test_config.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.json.example b/config.json.example index 37cbaae1..899950f5 100644 --- a/config.json.example +++ b/config.json.example @@ -1,10 +1,10 @@ { "backend": "db", "DB_URL": "mysql+pymysql://root:rootpw@localhost:13306/icatdb", - "ICAT_URL": "https://scigateway-preprod.esc.rl.ac.uk:8181", + "ICAT_URL": "https://localhost.localdomain:8181", "icat_check_cert": false, "log_level": "WARN", - "log_location": "/home/user1/datagateway-api/logs.log", + "log_location": "/home/runner/work/datagateway-api/datagateway-api/logs.log", "debug_mode": false, "generate_swagger": false, "host": "127.0.0.1", diff --git a/test/test_config.py b/test/test_config.py index 647ad98f..b88d55af 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -73,7 +73,9 @@ def test_invalid_log_level(self, invalid_config): class TestGetLogLocation: def test_valid_log_location(self, valid_config): log_location = valid_config.get_log_location() - assert log_location == "/home/user1/datagateway-api/logs.log" + assert ( + log_location == "/home/runner/work/datagateway-api/datagateway-api/logs.log" + ) def test_invalid_log_location(self, invalid_config): with pytest.raises(SystemExit):