blob: fcb02fb7e255e1cdac3eff65acc7d60247c7df4b [file] [log] [blame]
source /opt/xos/coreapi/tests/testconfig-chameleon.sh
# test modeldefs
curl -f --silent http://$HOSTNAME:8080/xosapi/v1/modeldefs > /dev/null
if [[ $? -ne 0 ]]; then
echo fail modeldefs
fi
{% for object in proto.messages %}
{%- if object.name!='XOSBase' -%}
curl -f --silent http://$HOSTNAME:8080/xosapi/v1/{{ xproto_unquote(options.app_label) }}/{{ xproto_pluralize(object) | lower }} > /dev/null
if [[ $? -ne 0 ]]; then
echo fail {{ object.name }}
fi
{%endif-%}
{%- endfor %}
echo "okay"