Skip to content

Commit

Permalink
#163: Update example config to use localhost values
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 14, 2021
1 parent 30ec28f commit c2391c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c2391c2

Please sign in to comment.