diff options
Diffstat (limited to 'utils/open-isns/tests/test03.pl')
-rw-r--r-- | utils/open-isns/tests/test03.pl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/open-isns/tests/test03.pl b/utils/open-isns/tests/test03.pl new file mode 100644 index 0000000..3cc0d71 --- /dev/null +++ b/utils/open-isns/tests/test03.pl @@ -0,0 +1,27 @@ +#!/usr/bin/perl +# +# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com> +# +# This test case validates registration and unregistration. + +push(@INC, "."); +require "harness.pl"; + +&test_prep("test03", @ARGV); + +$server = &create_server; +$client = &create_client($server); + +&isns_start_server($server); + +&isns_enroll_client($client); +&isns_register_client($client, "initiator portal"); + +# Unregistering the portal should leave the iscsi node and +# portal group active, and move the portal to state limbo. +&isns_unregister_client($client, "portal=127.0.0.1:860"); + +# As the iscsi node goes away, so should the whole entity +&isns_unregister_client($client, "iscsi-name=isns.client1"); + +&isns_finish; |