Skip to content

Commit

Permalink
moar logging and fix discovery_node_families empty
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Dec 20, 2024
1 parent c1306fa commit 3f0447c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions misc/discoverynode/testing/e2e/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,10 @@ def _new_site_model(
"timestamp": "2020-05-01T13:39:07Z",
}

warning("setting scan target to 0th index of discovery_node_families: %s", )
gateway_metadata["testing"] = {"targets": {"scan_family": {"target_value": discovery_node_families[0]}}}

if discovery_node_families:
warning("setting scan target to 0th index of discovery_node_families: %s", discovery_node_families[0])
gateway_metadata["testing"] = {"targets": {"scan_family": {"target_value": discovery_node_families[0]}}}

for family in discovery_node_families:
gateway_metadata["discovery"]["families"][family] = {}

Expand All @@ -361,6 +362,8 @@ def _new_site_model(
os.path.join(gateway_path, "metadata.json"), mode="w", encoding="utf-8"
) as f:
json.dump(gateway_metadata, f, indent=2)

print("gateway metadata: ". json.dump(gateway_metadata, indent=2))

run(f"bin/keygen RS256 {gateway_path}")
run(f"bin/keygen CERT/localhost {gateway_path}")
Expand Down

0 comments on commit 3f0447c

Please sign in to comment.