Tony Asleson
2014-11-26 21:22:06 UTC
Signed-off-by: Tony Asleson <***@redhat.com>
---
test/plugin_test.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/test/plugin_test.py b/test/plugin_test.py
index 851475f..13febf2 100755
--- a/test/plugin_test.py
+++ b/test/plugin_test.py
@@ -834,6 +834,26 @@ class TestPlugin(unittest.TestCase):
self._test_ag_create_dup(ag, s)
self._delete_access_group(ag)
+ def test_iscsi_chap(self):
+ ag = None
+
+ for s in self.systems:
+ cap = self.c.capabilities(s)
+
+ if supported(cap, [Cap.ACCESS_GROUPS,
+ Cap.ACCESS_GROUP_CREATE_ISCSI_IQN,
+ Cap.VOLUME_ISCSI_CHAP_AUTHENTICATION]):
+ ag = self._create_access_group(
+ cap, rs('ag'), s, lsm.AccessGroup.INIT_TYPE_ISCSI_IQN)
+
+ self.c.iscsi_chap_auth(ag.init_ids[0], 'foo', rs(None, 12),
+ None, None)
+
+ if ag is not None and \
+ supported(cap, [Cap.ACCESS_GROUP_DELETE]):
+ self._test_ag_create_dup(ag, s)
+ self._delete_access_group(ag)
+
def test_access_group_create_delete(self):
for s in self.systems:
cap = self.c.capabilities(s)
---
test/plugin_test.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/test/plugin_test.py b/test/plugin_test.py
index 851475f..13febf2 100755
--- a/test/plugin_test.py
+++ b/test/plugin_test.py
@@ -834,6 +834,26 @@ class TestPlugin(unittest.TestCase):
self._test_ag_create_dup(ag, s)
self._delete_access_group(ag)
+ def test_iscsi_chap(self):
+ ag = None
+
+ for s in self.systems:
+ cap = self.c.capabilities(s)
+
+ if supported(cap, [Cap.ACCESS_GROUPS,
+ Cap.ACCESS_GROUP_CREATE_ISCSI_IQN,
+ Cap.VOLUME_ISCSI_CHAP_AUTHENTICATION]):
+ ag = self._create_access_group(
+ cap, rs('ag'), s, lsm.AccessGroup.INIT_TYPE_ISCSI_IQN)
+
+ self.c.iscsi_chap_auth(ag.init_ids[0], 'foo', rs(None, 12),
+ None, None)
+
+ if ag is not None and \
+ supported(cap, [Cap.ACCESS_GROUP_DELETE]):
+ self._test_ag_create_dup(ag, s)
+ self._delete_access_group(ag)
+
def test_access_group_create_delete(self):
for s in self.systems:
cap = self.c.capabilities(s)
--
1.8.2.1
1.8.2.1