Skip to content

Commit

Permalink
replaced hardcoded port with random available ports(issue VOLTTRON#3119)
Browse files Browse the repository at this point in the history
Minor fix in assert statements based on message bus
  • Loading branch information
schandrika committed Sep 26, 2023
1 parent 1e5e995 commit b403411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volttrontesting/platform/test_instance_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,8 @@ def test_web_with_agents_volttron_running(monkeypatch, volttron_instance_web):
assert os.path.exists(config_path)
config = ConfigParser()
config.read(config_path)
assert config.get('volttron', 'message-bus') == "zmq"
if volttron_instance_web.ssl_auth is True:
assert config.get('volttron', 'message-bus') == volttron_instance_web.messagebus
if volttron_instance_web.ssl_auth is True and volttron_instance_web.messagebus == 'zmq':
assert config.get('volttron', 'web-ssl-cert') == os.path.join(vhome, "certificates", "certs", "server0.crt")
assert config.get('volttron', 'web-ssl-key') == os.path.join(vhome, "certificates", "private", "server0.pem")
# if instance is running
Expand Down

0 comments on commit b403411

Please sign in to comment.