# This file is part of Eclat -*- Autotest -*-
# Copyright (C) 2012-2018 Sergey Poznyakoff
#
# Eclat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Eclat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Eclat. If not, see .
AT_SETUP([xml01])
AT_KEYWORDS([xml xml01])
AT_DATA([input],[
beefdead-57rt-ffea-e4ac-deadbeefbeef
-
i-00000000
instance
foo
mkdir bar
-
i-11111111
instance
baz
quux
-
i-22222222
instance
Name
test
])
AT_CHECK([txml input],
[0],
[.DescribeTagsResponse.requestId: "beefdead-57rt-ffea-e4ac-deadbeefbeef"
.DescribeTagsResponse.tagSet.item.resourceId: "i-00000000"
.DescribeTagsResponse.tagSet.item.resourceType: "instance"
.DescribeTagsResponse.tagSet.item.key: "foo"
.DescribeTagsResponse.tagSet.item.value: "bar"
.DescribeTagsResponse.tagSet.item.resourceId: "i-11111111"
.DescribeTagsResponse.tagSet.item.resourceType: "instance"
.DescribeTagsResponse.tagSet.item.key: "baz"
.DescribeTagsResponse.tagSet.item.value: "quux"
.DescribeTagsResponse.tagSet.item.resourceId: "i-22222222"
.DescribeTagsResponse.tagSet.item.resourceType: "instance"
.DescribeTagsResponse.tagSet.item.key: "Name"
.DescribeTagsResponse.tagSet.item.value: "test"
])
AT_CLEANUP