#!/bin/sh

set -e

# When the API holds no network at all, only the header line is printed.
FIXTURE=fixture-null.json . ./lib.sh
trap 'rm -f ocicli_network_list.fn.sh actual.txt' EXIT

ocicli_network_list >actual.txt

if ! diff -u expected-no-data.txt actual.txt ; then
	echo "network-list with no data doesn't match"
	exit 1
fi
exit 0
