aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-09-28 17:17:01 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-09-28 17:17:01 +0300
commit2b6198883155009bbf22e984daff8a970d7d52d1 (patch)
tree3e4a71eb15bb75122de7c83f69b26229d1e7f442 /tests
parent4d6c1e56790f61be15501977e970753a6088104f (diff)
downloadeclat-2b6198883155009bbf22e984daff8a970d7d52d1.tar.gz
eclat-2b6198883155009bbf22e984daff8a970d7d52d1.tar.bz2
Initial implementation of associate/dissociate address requests.
* etc/Makefile.am: Add new files. * etc/associate-address.fln: New file. * etc/disassociate-address.fln: New file. * lib/forlan.c (eval_expr): Fix boolean NOT. * src/Makefile.am: Add new files. * src/asscaddr.c: New file. * src/dscrtags.c (eclat_describe_tags): Remove unused variables. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h (eclat_associate_address) (eclat_disassociate_address): New commands. * src/util.c: Add AWSAccessKeyId param in eclat_send_query instead of in describe_query_create. * tests/Makefile.am: Add new files. * tests/testsuite.at: Include new test cases. * tests/associate-address.at: New test case.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/associate-address.at27
-rw-r--r--tests/testsuite.at1
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 99c2ae6..1494290 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,6 +40,7 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
## ------------ ##
TESTSUITE_AT = \
+ associate-address.at\
describe-instance-status.at\
describe-instances.at\
describe-tags.at\
diff --git a/tests/associate-address.at b/tests/associate-address.at
new file mode 100644
index 0000000..b36124b
--- /dev/null
+++ b/tests/associate-address.at
@@ -0,0 +1,27 @@
+# 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([AssociateAddress],
+[AssociateAddress],
+[associate-address.fln],
+[<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2012-08-15/">
+ <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
+ <return>true</return>
+ <associationId>eipassoc-fc5ca095</associationId>
+</AssociateAddressResponse>
+])
+
+
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 55fe2d4..5cc0721 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -53,6 +53,7 @@ m4_include([listall.at])
m4_include([tagshairy.at])
AT_BANNER([Default formats])
+m4_include([associate-address.at])
m4_include([describe-instance-status.at])
m4_include([describe-instances.at])
m4_include([describe-tags.at])

Return to:

Send suggestions and report system problems to the System administrator.