summaryrefslogtreecommitdiffabout
path: root/tests
Side-by-side diff
Diffstat (limited to 'tests') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/terminate-instances.at39
-rw-r--r--tests/testsuite.at1
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 61046ba..36927c7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -84,6 +84,7 @@ TESTSUITE_AT = \
sortts.at\
start-instances.at\
stop-instances.at\
+ terminate-instances.at\
tagshairy.at\
testsuite.at\
urlenc01.at\
diff --git a/tests/terminate-instances.at b/tests/terminate-instances.at
new file mode 100644
index 0000000..7242986
--- a/dev/null
+++ b/tests/terminate-instances.at
@@ -0,0 +1,39 @@
+# 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 <http://www.gnu.org/licenses/>.
+
+ECLAT_TEST_FORMAT([TerminateInstances],
+[TerminateInstances],
+[terminate-instances.fln],
+[<TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
+ <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
+ <instancesSet>
+ <item>
+ <instanceId>i-1234567890abcdef0</instanceId>
+ <currentState>
+ <code>32</code>
+ <name>shutting-down</name>
+ </currentState>
+ <previousState>
+ <code>16</code>
+ <name>running</name>
+ </previousState>
+ </item>
+ </instancesSet>
+</TerminateInstancesResponse>
+],
+[i-1234567890abcdef0: running => shutting-down
+])
+
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 6583b89..0d25b97 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -78,6 +78,7 @@ m4_include([describe-volumes.at])
m4_include([get-console-output.at])
m4_include([start-instances.at])
m4_include([stop-instances.at])
+m4_include([terminate-instances.at])
AT_BANNER([Sort])
m4_include([sortstring.at])

Return to:

Send suggestions and report system problems to the System administrator.