~ubuntu-branches/ubuntu/quantal/open-iscsi/quantal-proposed

« back to all changes in this revision

Viewing changes to utils/open-isns/tests/test03.pl

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-07-10 13:53:52 UTC
  • mfrom: (1.1.5) (4.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120710135352-8pw2po02ka51y2g2
Tags: 2.0.873-3ubuntu1
* Merge from Debian. Remaining changes: (LP: #961114, LP: #677333)
  - Add upstart job iscsi-network-interface
  - Migrate from /var/run and /lib/init/rw to /run, from /var/lock to
    /run/lock.
* Turn open-iscsi-utils into a transitional package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
#
 
3
# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
 
4
#
 
5
# This test case validates registration and unregistration.
 
6
 
 
7
push(@INC, ".");
 
8
require "harness.pl";
 
9
 
 
10
&test_prep("test03", @ARGV);
 
11
 
 
12
$server = &create_server;
 
13
$client = &create_client($server);
 
14
 
 
15
&isns_start_server($server);
 
16
 
 
17
&isns_enroll_client($client);
 
18
&isns_register_client($client, "initiator portal");
 
19
 
 
20
# Unregistering the portal should leave the iscsi node and
 
21
# portal group active, and move the portal to state limbo.
 
22
&isns_unregister_client($client, "portal=127.0.0.1:860");
 
23
 
 
24
# As the iscsi node goes away, so should the whole entity
 
25
&isns_unregister_client($client, "iscsi-name=isns.client1");
 
26
 
 
27
&isns_finish;