def test_05_chap_login(self): if get_platform_string().startswith('solaris'): raise SkipTest("iSCSI CHAP on Solaris not supported - INFINIBOX-25831") net_space = self._get_system_net_space(self.system_sdk) ibox_version = self._get_infinibox_major_version(self.system_sdk) host = self._create_host(self.hostname) auth1 = iscsi_auth.ChapAuth(INBOUND_USERNAME, INBOUND_SECRET) auth2 = iscsi_auth.ChapAuth(INBOUND_USERNAME2, INBOUND_SECRET2) self._assert_discovery_login_logout(net_space, host, auth1, ibox_version) self._assert_discovery_login_logout(net_space, host, auth1, ibox_version) self._assert_login_to_two_systems(net_space, host, auth1, auth2, ibox_version) self._assert_login_to_two_systems(net_space, host, iscsi_auth.NoAuth(), iscsi_auth.NoAuth(), ibox_version)
def test_06_mutual_chap_login(self): if get_platform_string().startswith('solaris'): raise SkipTest("iSCSI CHAP on Solaris not supported - INFINIBOX-25831") net_space = self._get_system_net_space(self.system_sdk) ibox_version = self._get_infinibox_major_version(self.system_sdk) host = self._create_host(self.hostname) self._assert_discovery_login_logout(net_space, host, self.auth1, ibox_version) self._assert_discovery_login_logout(net_space, host, self.auth1, ibox_version) if get_platform_string().startswith('windows'): self._assert_login_to_two_systems(net_space, host, self.auth1, self.auth1, ibox_version) else: self._assert_login_to_two_systems(net_space, host, self.auth1, self.auth2, ibox_version) self._assert_login_to_two_systems(net_space, host, iscsi_auth.NoAuth(), iscsi_auth.NoAuth(), ibox_version)
def test_04_login(self): net_space = self._get_system_net_space(self.system_sdk) ibox_version = self._get_infinibox_major_version(self.system_sdk) host = self._create_host(self.hostname) auth = iscsi_auth.NoAuth() self._assert_discovery_login_logout(net_space, host, auth, ibox_version) self._assert_discovery_login_logout(net_space, host, auth, ibox_version) self._assert_login_to_two_systems(net_space, host, auth, auth, ibox_version) self._assert_discovery_dual_login(net_space, host, auth, ibox_version)
def test_07_consistent_login(self): if get_platform_string().startswith('windows'): raise SkipTest("not available on this platform") net_space = self._get_system_net_space(self.system_sdk) host = self._create_host(self.hostname) ibox_version = self._get_infinibox_major_version(self.system_sdk) no_auth = iscsi_auth.NoAuth() chap_auth1 = iscsi_auth.ChapAuth(INBOUND_USERNAME, INBOUND_SECRET) chap_auth2 = iscsi_auth.ChapAuth(INBOUND_USERNAME2, INBOUND_SECRET2) self._assert_discovery_login_logout_consistent(net_space, host, no_auth, ibox_version) self._assert_login_to_two_systems_consistent(net_space, host, no_auth, no_auth, ibox_version) if not get_platform_string().startswith('solaris'): # INFINIBOX-25831 self._assert_discovery_login_logout_consistent(net_space, host, chap_auth1, ibox_version) self._assert_discovery_login_logout_consistent(net_space, host, self.auth1, ibox_version) self._assert_login_to_two_systems_consistent(net_space, host, chap_auth1, chap_auth2, ibox_version) self._assert_login_to_two_systems_consistent(net_space, host, self.auth1, self.auth2, ibox_version)