aboutsummaryrefslogtreecommitdiff
path: root/tests/xml01.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xml01.at')
-rw-r--r--tests/xml01.at63
1 files changed, 63 insertions, 0 deletions
diff --git a/tests/xml01.at b/tests/xml01.at
new file mode 100644
index 0000000..01d7df4
--- /dev/null
+++ b/tests/xml01.at
@@ -0,0 +1,63 @@
1# This file is part of Eclat -*- Autotest -*-
2# Copyright (C) 2012 Sergey Poznyakoff
3#
4# Eclat is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# Eclat is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with Eclat. If not, see <http://www.gnu.org/licenses/>.
16
17AT_SETUP([xml01])
18AT_KEYWORDS([xml xml01])
19
20AT_DATA([input],[<?xml version="1.0" encoding="UTF-8"?>
21<DescribeTagsResponse xmlns="http://ec2.amazonaws.com/doc/2012-08-15/">
22 <requestId>beefdead-57rt-ffea-e4ac-deadbeefbeef</requestId>
23 <tagSet>
24 <item>
25 <resourceId>i-00000000</resourceId>
26 <resourceType>instance</resourceType>
27 <key>foo</key>
28 <value>bar</value>
29 </item>
30 <item>
31 <resourceId>i-11111111</resourceId>
32 <resourceType>instance</resourceType>
33 <key>baz</key>
34 <value>quux</value>
35 </item>
36 <item>
37 <resourceId>i-22222222</resourceId>
38 <resourceType>instance</resourceType>
39 <key>Name</key>
40 <value>test</value>
41 </item>
42 </tagSet>
43</DescribeTagsResponse>
44])
45
46AT_CHECK([txml input],
47[0],
48[.DescribeTagsResponse.requestId: "beefdead-57rt-ffea-e4ac-deadbeefbeef"
49.DescribeTagsResponse.tagSet.item.resourceId: "i-00000000"
50.DescribeTagsResponse.tagSet.item.resourceType: "instance"
51.DescribeTagsResponse.tagSet.item.key: "foo"
52.DescribeTagsResponse.tagSet.item.value: "bar"
53.DescribeTagsResponse.tagSet.item.resourceId: "i-11111111"
54.DescribeTagsResponse.tagSet.item.resourceType: "instance"
55.DescribeTagsResponse.tagSet.item.key: "baz"
56.DescribeTagsResponse.tagSet.item.value: "quux"
57.DescribeTagsResponse.tagSet.item.resourceId: "i-22222222"
58.DescribeTagsResponse.tagSet.item.resourceType: "instance"
59.DescribeTagsResponse.tagSet.item.key: "Name"
60.DescribeTagsResponse.tagSet.item.value: "test"
61])
62
63AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.