~ubuntu-branches/ubuntu/precise/open-iscsi/precise-backports

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-09-20 09:07:42 UTC
  • mfrom: (37.1.5 quantal-proposed)
  • Revision ID: package-import@ubuntu.com-20130920090742-rv5qfxabddc9dk2h
Tags: 2.0.873-3ubuntu5~ubuntu12.04.1
No-change backport to precise (LP: #1228046)

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 verifies that the database remains intact
 
6
# across server restarts.
 
7
 
 
8
push(@INC, ".");
 
9
require "harness.pl";
 
10
 
 
11
&test_prep("test04", @ARGV);
 
12
 
 
13
$server = &create_server;
 
14
$client = &create_client($server);
 
15
 
 
16
&isns_start_server($server);
 
17
 
 
18
&isns_enroll_client($client);
 
19
&isns_register_client($client, "initiator portal");
 
20
 
 
21
# Restart the server, and make sure it still displays
 
22
# the database properly
 
23
&isns_stage("restart", "Restarting server process");
 
24
&isns_restart_server($server);
 
25
&isns_verify_db($server);
 
26
 
 
27
# Run a simple query
 
28
&isns_query_objects($client, "iscsi-name");
 
29
 
 
30
&isns_finish;