vault test should no longer hang on interactive prompt. Doesn't fix other issues in vault tests.

https://fedorahosted.org/freeipa/ticket/5251
--
Petr Vobornik
From f288a9bd33a72a86a50bbe4a990b0a2e30d1599f Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Wed, 26 Aug 2015 13:03:22 +0200
Subject: [PATCH] vault: fix vault tests after default type change

https://fedorahosted.org/freeipa/ticket/5251
---
 ipatests/test_xmlrpc/test_vault_plugin.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/ipatests/test_xmlrpc/test_vault_plugin.py b/ipatests/test_xmlrpc/test_vault_plugin.py
index 18032e287668e57b84e3fb528f02b98ebf0c90ab..495512dac687afaee0c94c620c2b504df424c246 100644
--- a/ipatests/test_xmlrpc/test_vault_plugin.py
+++ b/ipatests/test_xmlrpc/test_vault_plugin.py
@@ -156,7 +156,9 @@ class test_vault_plugin(Declarative):
             'command': (
                 'vault_add',
                 [vault_name],
-                {},
+                {
+                    'ipavaulttype': u'standard',
+                },
             ),
             'expected': {
                 'value': vault_name,
@@ -257,6 +259,7 @@ class test_vault_plugin(Declarative):
                 'vault_add',
                 [vault_name],
                 {
+                    'ipavaulttype': u'standard',
                     'service': service_name,
                 },
             ),
@@ -366,6 +369,7 @@ class test_vault_plugin(Declarative):
                 'vault_add',
                 [vault_name],
                 {
+                    'ipavaulttype': u'standard',
                     'shared': True
                 },
             ),
@@ -475,6 +479,7 @@ class test_vault_plugin(Declarative):
                 'vault_add',
                 [vault_name],
                 {
+                    'ipavaulttype': u'standard',
                     'username': user_name,
                 },
             ),
@@ -583,7 +588,9 @@ class test_vault_plugin(Declarative):
             'command': (
                 'vault_add',
                 [standard_vault_name],
-                {},
+                {
+                    'ipavaulttype': u'standard',
+                },
             ),
             'expected': {
                 'value': standard_vault_name,
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to