mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
tests: prepare api-nodes testcase for testing new output signal propagation
This commit is contained in:
parent
6f72bc832c
commit
2c2ef72e9e
1 changed files with 14 additions and 2 deletions
|
@ -42,13 +42,23 @@ cat > ${CONFIG_FILE} <<EOF
|
|||
"dummy" : "value2",
|
||||
|
||||
"in" : {
|
||||
"address" : "*:12001"
|
||||
"address" : "*:12001",
|
||||
"signals" : [
|
||||
{ "name": "sig1", "unit": "Volts", "type": "float", "init": 123.0 },
|
||||
{ "name": "sig2", "unit": "Ampere", "type": "integer", "init": 123 }
|
||||
]
|
||||
},
|
||||
"out" : {
|
||||
"address" : "localhost:12000"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"paths": [
|
||||
{
|
||||
"in": "testnode2",
|
||||
"out": "testnode1"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
|
@ -61,6 +71,8 @@ sleep 1
|
|||
# Fetch config via API
|
||||
curl -sX POST --data '{ "action" : "nodes", "id" : "5a786626-fbc6-4c04-98c2-48027e68c2fa" }' http://localhost:8080/api/v1 > ${FETCHED_NODES}
|
||||
|
||||
cat ${FETCHED_NODES}
|
||||
|
||||
# Shutdown VILLASnode
|
||||
kill $!
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue