forked from mirrors/thatmattlove-hyperglass
CI: added debug statement to print test config
This commit is contained in:
parent
e7b3d8fe8e
commit
1198852c38
1 changed files with 11 additions and 0 deletions
|
|
@ -3,7 +3,9 @@
|
|||
Runs tests against test hyperglass instance
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import pprint
|
||||
import requests
|
||||
from logzero import logger
|
||||
|
||||
|
|
@ -11,6 +13,14 @@ working_directory = os.path.dirname(os.path.abspath(__file__))
|
|||
parent_directory = os.path.dirname(working_directory)
|
||||
|
||||
|
||||
def get_hyperglass_config():
|
||||
sys.path.insert(0, parent_directory)
|
||||
from hyperglass import configuration
|
||||
|
||||
hg_config = configuration.params()
|
||||
return hg_config
|
||||
|
||||
|
||||
def construct_test(test_query, location, test_target):
|
||||
"""Constructs JSON POST data for test_hyperglass function"""
|
||||
constructed_query = json.dumps(
|
||||
|
|
@ -164,6 +174,7 @@ def ci_hyperglass_test(
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
logger.debug(pprint(get_hyperglass_config()))
|
||||
ci_hyperglass_test(
|
||||
"pop2", "1.1.1.0/24", "2606:4700:4700::/48", "pop1", "100.64.0.1"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue