diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-28 11:23:09 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-28 11:32:04 +0300 |
commit | ac1d6cbbcf5323d5db59886b98a24c45bafa64b8 (patch) | |
tree | f2a77092e072faa680b47d9d6d960e7214e46876 /tests/describe-instances.at | |
parent | d902742081bc31a6eda274268da0178107e4abb4 (diff) | |
download | eclat-ac1d6cbbcf5323d5db59886b98a24c45bafa64b8.tar.gz eclat-ac1d6cbbcf5323d5db59886b98a24c45bafa64b8.tar.bz2 |
Improve testsuite. Reorganize directory structure.
* Makefile.am (SUBDIRS): Add etc
(distuninstallcheck_listfiles): Ignore *.forlan files.
* configure.ac: New options --split-format and --format-dir
* etc/Makefile.am: New file.
* etc/default.fln: New file.
* etc/describe-instance-status.fln: New file.
* etc/describe-instances.fln: New file.
* etc/describe-tags.fln: New file.
* etc/eclat.cfin: New file.
* etc/flncat.c: New file.
* etc/start-instances.fln: New file.
* etc/stop-instances.fln: New file.
* src/Makefile.am: Remove eclat.conf. It is built in /etc now.
* src/eclat.conf: Remove.
* src/cmdline.opt: Update.
* src/config.c: New configuration statement "format-file".
* src/eclat.c (format_file_option): New global.
(main): Read format from format-file, if supplied. Expand
keywords in its argument.
* src/eclat.h (format_file_option): New extern.
* tests/.gitignore: Update.
* tests/Makefile.am: Add new files.
* tests/describe-instance-status.at: New test case.
* tests/describe-instances.at: New test case.
* tests/describe-tags.at: New test case.
* tests/dscrinststat.at: New test case.
* tests/start-instances.at: New test case.
* tests/stop-instances.at: New test case.
* tests/testsuite.at (ECLAT_TEST_FORMAT): New macro.
Include new test cases.
* tests/trws.c: New file.
Diffstat (limited to 'tests/describe-instances.at')
-rw-r--r-- | tests/describe-instances.at | 274 |
1 files changed, 274 insertions, 0 deletions
diff --git a/tests/describe-instances.at b/tests/describe-instances.at new file mode 100644 index 0000000..2c862c8 --- /dev/null +++ b/tests/describe-instances.at @@ -0,0 +1,274 @@ +# This file is part of Eclat -*- Autotest -*- +# Copyright (C) 2012 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 <http://www.gnu.org/licenses/>. + +ECLAT_TEST_FORMAT([DescribeInstances], +[DescribeInstances], +[describe-instances.fln], +[<DescribeInstancesResponse xmlns='http://ec2.amazonaws.com/doc/2012-08-15/'> + <requestId>fdcdcab1-ae5c-489e-9c33-4637c5dda355</requestId> + <reservationSet> + <item> + <reservationId>r-0ece705a</reservationId> + <ownerId>053230519467</ownerId> + <groupSet/> + <instancesSet> + <item> + <instanceId>i-7a00642e</instanceId> + <imageId>ami-1cd4924e</imageId> + <instanceState> + <code>16</code> + <name>running</name> + </instanceState> + <privateDnsName/> + <dnsName/> + <reason/> + <keyName>VPCKey</keyName> + <amiLaunchIndex>0</amiLaunchIndex> + <productCodes/> + <instanceType>c1.medium</instanceType> + <launchTime>2012-06-28T17:41:48.000Z</launchTime> + <placement> + <availabilityZone>ap-southeast-1b</availabilityZone> + <groupName/> + <tenancy>default</tenancy> + </placement> + <platform>windows</platform> + <monitoring> + <state>disabled</state> + </monitoring> + <subnetId>subnet-c53c87ac</subnetId> + <vpcId>vpc-cc3c87a5</vpcId> + <privateIpAddress>10.0.0.12</privateIpAddress> + <ipAddress>46.51.219.63</ipAddress> + <sourceDestCheck>true</sourceDestCheck> + <groupSet> + <item> + <groupId>sg-374b565b</groupId> + <groupName>quick-start-3</groupName> + </item> + </groupSet> + <architecture>x86_64</architecture> + <rootDeviceType>ebs</rootDeviceType> + <rootDeviceName>/dev/sda1</rootDeviceName> + <blockDeviceMapping> + <item> + <deviceName>/dev/sda1</deviceName> + <ebs> + <volumeId>vol-9e151bfc</volumeId> + <status>attached</status> + <attachTime>2012-06-28T17:42:05.000Z</attachTime> + <deleteOnTermination>true</deleteOnTermination> + </ebs> + </item> + </blockDeviceMapping> + <virtualizationType>hvm</virtualizationType> + <clientToken>JNlxa1340905307390</clientToken> + <tagSet> + <item> + <key>Name</key> + <value>SingleENI</value> + </item> + </tagSet> + <hypervisor>xen</hypervisor> + <networkInterfaceSet> + <item> + <networkInterfaceId>eni-d83388b1</networkInterfaceId> + <subnetId>subnet-c53c87ac</subnetId> + <vpcId>vpc-cc3c87a5</vpcId> + <description>Primary network interface</description> + <ownerId>053230519467</ownerId> + <status>in-use</status> + <privateIpAddress>10.0.0.12</privateIpAddress> + <sourceDestCheck>true</sourceDestCheck> + <groupSet> + <item> + <groupId>sg-374b565b</groupId> + <groupName>quick-start-3</groupName> + </item> + </groupSet> + <attachment> + <attachmentId>eni-attach-31b87358</attachmentId> + <deviceIndex>0</deviceIndex> + <status>attached</status> + <attachTime>2012-06-28T17:41:48.000Z</attachTime> + <deleteOnTermination>true</deleteOnTermination> + </attachment> + <association> + <publicIp>46.51.219.63</publicIp> + <ipOwnerId>053230519467</ipOwnerId> + </association> + <privateIpAddressesSet> + <item> + <privateIpAddress>10.0.0.12</privateIpAddress> + <primary>true</primary> + <association> + <publicIp>46.51.219.63</publicIp> + <ipOwnerId>053230519467</ipOwnerId> + </association> + </item> + <item> + <privateIpAddress>10.0.0.14</privateIpAddress> + <primary>false</primary> + <association> + <publicIp>46.51.221.177</publicIp> + <ipOwnerId>053230519467</ipOwnerId> + </association> + </item> + </privateIpAddressesSet> + </item> + </networkInterfaceSet> + </item> + </instancesSet> + </item> + <item> + <reservationId>r-58b30a0c</reservationId> + <ownerId>053230519467</ownerId> + <groupSet> + <item> + <groupId>sg-aa4170f8</groupId> + <groupName>quick-start-5</groupName> + </item> + </groupSet> + <instancesSet> + <item> + <instanceId>i-507f1804</instanceId> + <imageId>ami-70d49222</imageId> + <instanceState> + <code>16</code> + <name>running</name> + </instanceState> + <privateDnsName>ip-10-139-34-251.ap-southeast-1.compute.internal</privateDnsName> + <dnsName>ec2-122-248-233-255.ap-southeast-1.compute.amazonaws.com</dnsName> + <reason/> + <keyName>EC2Key</keyName> + <amiLaunchIndex>0</amiLaunchIndex> + <productCodes/> + <instanceType>t1.micro</instanceType> + <launchTime>2012-06-29T22:53:42.000Z</launchTime> + <placement> + <availabilityZone>ap-southeast-1a</availabilityZone> + <groupName/> + <tenancy>default</tenancy> + </placement> + <platform>windows</platform> + <monitoring> + <state>disabled</state> + </monitoring> + <privateIpAddress>10.139.34.251</privateIpAddress> + <ipAddress>122.248.233.255</ipAddress> + <groupSet> + <item> + <groupId>sg-aa4170f8</groupId> + <groupName>quick-start-5</groupName> + </item> + </groupSet> + <architecture>x86_64</architecture> + <rootDeviceType>ebs</rootDeviceType> + <rootDeviceName>/dev/sda1</rootDeviceName> + <blockDeviceMapping> + <item> + <deviceName>/dev/sda1</deviceName> + <ebs> + <volumeId>vol-a22b3ac0</volumeId> + <status>attached</status> + <attachTime>2012-06-29T22:54:02.000Z</attachTime> + <deleteOnTermination>true</deleteOnTermination> + </ebs> + </item> + </blockDeviceMapping> + <virtualizationType>hvm</virtualizationType> + <clientToken>clNwH1341010421443</clientToken> + <tagSet> + <item> + <key>Name</key> + <value>EC2 Instance</value> + </item> + </tagSet> + <hypervisor>xen</hypervisor> + <networkInterfaceSet/> + </item> + </instancesSet> + </item> + </reservationSet> +</DescribeInstancesResponse> +], +[Reservation ID: r-0ece705a +Owner ID: 053230519467 +Groups: + +Instance: i-7a00642e + Image ID: ami-1cd4924e + State: running + Kernel ID: + Architecture: x86_64 + Private DNS: + Public DNS: + Key: VPCKey + Type: c1.medium + Launch Time: 2012-06-28T17:41:48.000Z + Availability Zone: ap-southeast-1b + Group Name: + Tenancy: default + Private IP: 10.0.0.12 + Public IP: 46.51.219.63 + Groups: + sg-374b565b -- quick-start-3 + Root Device Type: ebs + Root Device Name: /dev/sda1 + Device mapping: + /dev/sda1 vol-9e151bfc attached 2012-06-28T17:42:05.000Z true + Virtualization: hvm + Tag Set: + Name=SingleENI + Hypervisor: xen + EBS Optimized: +End of instance + +Reservation ID: r-58b30a0c +Owner ID: 053230519467 +Groups: + sg-aa4170f8 quick-start-5 + +Instance: i-507f1804 + Image ID: ami-70d49222 + State: running + Kernel ID: + Architecture: x86_64 + Private DNS: ip-10-139-34-251.ap-southeast-1.compute.internal + Public DNS: ec2-122-248-233-255.ap-southeast-1.compute.amazonaws.com + Key: EC2Key + Type: t1.micro + Launch Time: 2012-06-29T22:53:42.000Z + Availability Zone: ap-southeast-1a + Group Name: + Tenancy: default + Private IP: 10.139.34.251 + Public IP: 122.248.233.255 + Groups: + sg-aa4170f8 -- quick-start-5 + Root Device Type: ebs + Root Device Name: /dev/sda1 + Device mapping: + /dev/sda1 vol-a22b3ac0 attached 2012-06-29T22:54:02.000Z true + Virtualization: hvm + Tag Set: + Name="EC2 Instance" + Hypervisor: xen + EBS Optimized: +End of instance + +]) + |