Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Sep 11, 2024
1 parent 2e303a7 commit c879f7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/test_automapper
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jq '.gateway.proxy_ids = []' $metadata | sponge $metadata

bin/registrar $site_path $project_spec GAT-123

entries=$(wc -l $site_path/out/registration_summary.csv)
[[ $entries == 1 ]] || fail Unexpected registered entries, found $entries
entries=$(wc -l < $site_path/out/registration_summary.csv)
[[ $entries == 2 ]] || fail Unexpected registered entries, found $entries

pubber_bg GAT-123

Expand All @@ -37,11 +37,11 @@ sleep 20
echo Extracting results at $(date -u -Is)
bin/registrar $site_path $project_spec

status=$(fgrep discovered_vendor-281 $site_path/out/registration_summary.csv | awk '{print $3}')
status=$(fgrep discovered_vendor-281 $site_path/out/registration_summary.csv | awk '{print $3}') || true
echo vendor device status is $status
[[ $status == BLOCK, ]] || fail Vendor device status should be BLOCK

type=$(jq -r .resource_type sites/udmi_site_model/extras/discovered_vendor-20231/cloud_model.json)
type=$(jq -r .resource_type sites/udmi_site_model/extras/discovered_vendor-20231/cloud_model.json) || true
echo vendor extracted device type $type
[[ $type == DEVICE ]] || fail Vendor device type should be DEVICE

Expand Down

0 comments on commit c879f7b

Please sign in to comment.