summaryrefslogtreecommitdiff
path: root/utils/open-isns/tests/test03.pl
blob: 3cc0d71583febb835765ffff2153d2c53d2471c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;