Skip to content

Commit

Permalink
Fix automapper test
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Sep 21, 2024
1 parent 6d39e34 commit 8aa4fa9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/test_automapper
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ status=$(fgrep discovered_vendor-281 $site_path/out/registration_summary.csv | a
echo Checking vendor device status is $status
[[ $status == BLOCK, ]] || fail Vendor device status should be BLOCK

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

echo Checking descivered device metadata
jq -r . ${site_path}/extras/discovered_vendor-20231/cloud_metadata/udmi_discovered_from.json
echo Checking discovered device metadata
addr=$(jq -r .scan_addr $site_path/extras/discovered_vendor-20231/cloud_metadata/udmi_discovered_from.json)
[[ $type == 20231 ]] || fail Vendor device addr should be 20231

echo
echo Done with automapper test

0 comments on commit 8aa4fa9

Please sign in to comment.