summaryrefslogtreecommitdiff
path: root/utils/open-isns/tests
diff options
context:
space:
mode:
Diffstat (limited to 'utils/open-isns/tests')
-rw-r--r--utils/open-isns/tests/.cvsignore2
-rw-r--r--utils/open-isns/tests/Makefile40
-rw-r--r--utils/open-isns/tests/client.conf8
-rw-r--r--utils/open-isns/tests/data/test01/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test01/02-registration42
-rw-r--r--utils/open-isns/tests/data/test01/03-query20
-rw-r--r--utils/open-isns/tests/data/test01/03-registration20
-rw-r--r--utils/open-isns/tests/data/test01/99-unregistration18
-rw-r--r--utils/open-isns/tests/data/test02/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test02/02-enroll24
-rw-r--r--utils/open-isns/tests/data/test02/03-registration72
-rw-r--r--utils/open-isns/tests/data/test02/04-query20
-rw-r--r--utils/open-isns/tests/data/test02/05-query20
-rw-r--r--utils/open-isns/tests/data/test02/06-dd-registration81
-rw-r--r--utils/open-isns/tests/data/test02/07-query40
-rw-r--r--utils/open-isns/tests/data/test02/08-query40
-rw-r--r--utils/open-isns/tests/data/test02/09-query20
-rw-r--r--utils/open-isns/tests/data/test02/10-dd-registration87
-rw-r--r--utils/open-isns/tests/data/test02/11-query10
-rw-r--r--utils/open-isns/tests/data/test02/12-dd-deregistration85
-rw-r--r--utils/open-isns/tests/data/test02/13-dd-deregistration83
-rw-r--r--utils/open-isns/tests/data/test02/14-dd-registration85
-rw-r--r--utils/open-isns/tests/data/test02/15-dd-deregistration76
-rw-r--r--utils/open-isns/tests/data/test03/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test03/02-registration42
-rw-r--r--utils/open-isns/tests/data/test03/03-unregistration42
-rw-r--r--utils/open-isns/tests/data/test03/04-unregistration18
-rw-r--r--utils/open-isns/tests/data/test03/99-unregistration13
-rw-r--r--utils/open-isns/tests/data/test04/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test04/02-registration42
-rw-r--r--utils/open-isns/tests/data/test04/03-restart42
-rw-r--r--utils/open-isns/tests/data/test04/04-query20
-rw-r--r--utils/open-isns/tests/data/test05/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test05/02-registration42
-rw-r--r--utils/open-isns/tests/data/test05/03-expired18
-rw-r--r--utils/open-isns/tests/data/test06/01-enroll18
-rw-r--r--utils/open-isns/tests/data/test06/02-registration42
-rw-r--r--utils/open-isns/tests/data/test06/03-registration42
-rw-r--r--utils/open-isns/tests/data/test06/04-registration42
-rw-r--r--utils/open-isns/tests/data/test06/05-dd-registration49
-rw-r--r--utils/open-isns/tests/data/test06/06-registration49
-rw-r--r--utils/open-isns/tests/data/test06/07-dd-registration52
-rw-r--r--utils/open-isns/tests/data/test06/08-registration64
-rw-r--r--utils/open-isns/tests/data/test06/09-registration64
-rw-r--r--utils/open-isns/tests/data/test06/10-unregistration37
-rw-r--r--utils/open-isns/tests/data/test06/11-registration52
-rw-r--r--utils/open-isns/tests/data/test07/01-enroll19
-rw-r--r--utils/open-isns/tests/data/test07/02-registration45
-rw-r--r--utils/open-isns/tests/data/test07/03-expired19
-rw-r--r--utils/open-isns/tests/data/test07/04-registration57
-rw-r--r--utils/open-isns/tests/data/test07/05-expired19
-rw-r--r--utils/open-isns/tests/data/test08/01-pauw1100
-rw-r--r--utils/open-isns/tests/data/test09/01-pauw231
-rw-r--r--utils/open-isns/tests/data/test10/01-pauw331
-rw-r--r--utils/open-isns/tests/data/test10/02-expired31
-rw-r--r--utils/open-isns/tests/data/test10/03-pauw331
-rw-r--r--utils/open-isns/tests/data/test10/04-expired31
-rw-r--r--utils/open-isns/tests/data/test11/01-pauw432
-rw-r--r--utils/open-isns/tests/genkey175
-rw-r--r--utils/open-isns/tests/harness.pl929
-rw-r--r--utils/open-isns/tests/pauw1.c179
-rw-r--r--utils/open-isns/tests/pauw2.c212
-rw-r--r--utils/open-isns/tests/pauw3.c139
-rw-r--r--utils/open-isns/tests/pauw4.c137
-rw-r--r--utils/open-isns/tests/server.conf11
-rw-r--r--utils/open-isns/tests/test01.pl30
-rw-r--r--utils/open-isns/tests/test02.pl58
-rw-r--r--utils/open-isns/tests/test03.pl27
-rw-r--r--utils/open-isns/tests/test04.pl30
-rw-r--r--utils/open-isns/tests/test05.pl25
-rw-r--r--utils/open-isns/tests/test06.pl50
-rw-r--r--utils/open-isns/tests/test07.pl37
-rw-r--r--utils/open-isns/tests/test08.pl23
-rw-r--r--utils/open-isns/tests/test09.pl23
-rw-r--r--utils/open-isns/tests/test10.pl33
-rw-r--r--utils/open-isns/tests/test11.pl23
76 files changed, 0 insertions, 4360 deletions
diff --git a/utils/open-isns/tests/.cvsignore b/utils/open-isns/tests/.cvsignore
deleted file mode 100644
index fa1eb3c..0000000
--- a/utils/open-isns/tests/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.swp
-pauw[1-9]
diff --git a/utils/open-isns/tests/Makefile b/utils/open-isns/tests/Makefile
deleted file mode 100644
index 778195a..0000000
--- a/utils/open-isns/tests/Makefile
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Simple makefile to run regression tests, and to
-# document how to run them.
-
-#
-# Each test case is a perl script, testXX.pl. Run as
-# perl testXX.pl
-# Optionally followed by
-# -q quiet - just print a header line, and the overall result
-# -v verbose - display more detailed information, including the
-# commands being run
-# -f fast - skip tests that take more than 15 seconds
-#
-# The default is to be slightly verbose, and display a comment
-# about each stage of the test.
-
-# All test related data is kept in /tmp/isns-test, with a
-# subdirectory for each test.
-# For instance, test01 will create
-# /tmp/isns-test/test01/server0
-# /tmp/isns-test/test01/client1
-# /tmp/isns-test/test01/dump
-#
-# The server and client directories will contain configuration
-# data, logfiles, and (for the server) the Unix socket, the
-# PID file, and the database.
-#
-# The dump directory contains snapshots of the on-disk database
-# for each test stage (if the test stage involves a verification
-# of the database).
-
-tests:
- @for test in test*.pl; do \
- perl $$test -q; \
- done
-
-quick:
- @for test in test*.pl; do \
- perl $$test -q --fast; \
- done
diff --git a/utils/open-isns/tests/client.conf b/utils/open-isns/tests/client.conf
deleted file mode 100644
index 034a739..0000000
--- a/utils/open-isns/tests/client.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-SourceName = @NOT_SET@
-AuthName = @NOT_SET@
-ServerAddress = @NOT_SET@
-BindAddress = @NOT_SET@
-Security = @NOT_SET@
-AuthKeyFile = @NOT_SET@
-ServerKeyFile = @NOT_SET@
-ControlSocket = @NOT_SET@
diff --git a/utils/open-isns/tests/data/test01/01-enroll b/utils/open-isns/tests/data/test01/01-enroll
deleted file mode 100644
index f59329b..0000000
--- a/utils/open-isns/tests/data/test01/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test01/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test01/02-registration b/utils/open-isns/tests/data/test01/02-registration
deleted file mode 100644
index fd26f3c..0000000
--- a/utils/open-isns/tests/data/test01/02-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test01/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 12:40:58 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test01/03-query b/utils/open-isns/tests/data/test01/03-query
deleted file mode 100644
index 8208f83..0000000
--- a/utils/open-isns/tests/data/test01/03-query
+++ /dev/null
@@ -1,20 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 12:41:41 2007
- 0007 uint32 : Entity index = 4
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test01/03-registration b/utils/open-isns/tests/data/test01/03-registration
deleted file mode 100644
index affd69a..0000000
--- a/utils/open-isns/tests/data/test01/03-registration
+++ /dev/null
@@ -1,20 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test01/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "isns.client1"
- 0602v string : Policy allowed source name = "isns.client1"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "isns.client2"
- 0602v string : Policy allowed source name = "isns.client2"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
diff --git a/utils/open-isns/tests/data/test01/99-unregistration b/utils/open-isns/tests/data/test01/99-unregistration
deleted file mode 100644
index c7518ff..0000000
--- a/utils/open-isns/tests/data/test01/99-unregistration
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test01/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test02/01-enroll b/utils/open-isns/tests/data/test02/01-enroll
deleted file mode 100644
index e91fa0b..0000000
--- a/utils/open-isns/tests/data/test02/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test02/02-enroll b/utils/open-isns/tests/data/test02/02-enroll
deleted file mode 100644
index dbcb735..0000000
--- a/utils/open-isns/tests/data/test02/02-enroll
+++ /dev/null
@@ -1,24 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 5
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
diff --git a/utils/open-isns/tests/data/test02/03-registration b/utils/open-isns/tests/data/test02/03-registration
deleted file mode 100644
index ec607e6..0000000
--- a/utils/open-isns/tests/data/test02/03-registration
+++ /dev/null
@@ -1,72 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 13
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:53 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:53 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
diff --git a/utils/open-isns/tests/data/test02/04-query b/utils/open-isns/tests/data/test02/04-query
deleted file mode 100644
index fbdb0c0..0000000
--- a/utils/open-isns/tests/data/test02/04-query
+++ /dev/null
@@ -1,20 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 5
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test02/05-query b/utils/open-isns/tests/data/test02/05-query
deleted file mode 100644
index a35db9e..0000000
--- a/utils/open-isns/tests/data/test02/05-query
+++ /dev/null
@@ -1,20 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
diff --git a/utils/open-isns/tests/data/test02/06-dd-registration b/utils/open-isns/tests/data/test02/06-dd-registration
deleted file mode 100644
index 833f62a..0000000
--- a/utils/open-isns/tests/data/test02/06-dd-registration
+++ /dev/null
@@ -1,81 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 14
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
- 0813 uint32 : DD member iSCSI index = 10
- 0814 string : DD member iSCSI name = "isns.client2"
diff --git a/utils/open-isns/tests/data/test02/07-query b/utils/open-isns/tests/data/test02/07-query
deleted file mode 100644
index de13226..0000000
--- a/utils/open-isns/tests/data/test02/07-query
+++ /dev/null
@@ -1,40 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 5
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
-object[4] = <Network Entity>
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
-object[5] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
-object[6] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
-object[7] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
diff --git a/utils/open-isns/tests/data/test02/08-query b/utils/open-isns/tests/data/test02/08-query
deleted file mode 100644
index de13226..0000000
--- a/utils/open-isns/tests/data/test02/08-query
+++ /dev/null
@@ -1,40 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 5
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
-object[4] = <Network Entity>
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
-object[5] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
-object[6] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
-object[7] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
diff --git a/utils/open-isns/tests/data/test02/09-query b/utils/open-isns/tests/data/test02/09-query
deleted file mode 100644
index a35db9e..0000000
--- a/utils/open-isns/tests/data/test02/09-query
+++ /dev/null
@@ -1,20 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
diff --git a/utils/open-isns/tests/data/test02/10-dd-registration b/utils/open-isns/tests/data/test02/10-dd-registration
deleted file mode 100644
index 69bf9f6..0000000
--- a/utils/open-isns/tests/data/test02/10-dd-registration
+++ /dev/null
@@ -1,87 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:18:54 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
- 0813 uint32 : DD member iSCSI index = 10
- 0814 string : DD member iSCSI name = "isns.client2"
- 0813 uint32 : DD member iSCSI index = 14
- 0814 string : DD member iSCSI name = "iqn.com.foobar:disk1"
---------------
-Object: index=14 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "iqn.com.foobar:disk1"
- 0024 uint32 : iSCSI node index = 14
diff --git a/utils/open-isns/tests/data/test02/11-query b/utils/open-isns/tests/data/test02/11-query
deleted file mode 100644
index 5b4c49d..0000000
--- a/utils/open-isns/tests/data/test02/11-query
+++ /dev/null
@@ -1,10 +0,0 @@
-object[0] = <Discovery Domain>
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
- 0813 uint32 : DD member iSCSI index = 10
- 0814 string : DD member iSCSI name = "isns.client2"
- 0813 uint32 : DD member iSCSI index = 14
- 0814 string : DD member iSCSI name = "iqn.com.foobar:disk1"
diff --git a/utils/open-isns/tests/data/test02/12-dd-deregistration b/utils/open-isns/tests/data/test02/12-dd-deregistration
deleted file mode 100644
index d330b2a..0000000
--- a/utils/open-isns/tests/data/test02/12-dd-deregistration
+++ /dev/null
@@ -1,85 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:20:33 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:20:33 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
- 0813 uint32 : DD member iSCSI index = 14
- 0814 string : DD member iSCSI name = "iqn.com.foobar:disk1"
---------------
-Object: index=14 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "iqn.com.foobar:disk1"
- 0024 uint32 : iSCSI node index = 14
diff --git a/utils/open-isns/tests/data/test02/13-dd-deregistration b/utils/open-isns/tests/data/test02/13-dd-deregistration
deleted file mode 100644
index 4175e8e..0000000
--- a/utils/open-isns/tests/data/test02/13-dd-deregistration
+++ /dev/null
@@ -1,83 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
---------------
-Object: index=14 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "iqn.com.foobar:disk1"
- 0024 uint32 : iSCSI node index = 14
diff --git a/utils/open-isns/tests/data/test02/14-dd-registration b/utils/open-isns/tests/data/test02/14-dd-registration
deleted file mode 100644
index 56cfac3..0000000
--- a/utils/open-isns/tests/data/test02/14-dd-registration
+++ /dev/null
@@ -1,85 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 6
- 0814 string : DD member iSCSI name = "isns.client1"
- 0813 uint32 : DD member iSCSI index = 10
- 0814 string : DD member iSCSI name = "isns.client2"
---------------
-Object: index=14 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "iqn.com.foobar:disk1"
- 0024 uint32 : iSCSI node index = 14
diff --git a/utils/open-isns/tests/data/test02/15-dd-deregistration b/utils/open-isns/tests/data/test02/15-dd-deregistration
deleted file mode 100644
index d9b420f..0000000
--- a/utils/open-isns/tests/data/test02/15-dd-deregistration
+++ /dev/null
@@ -1,76 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test02/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client2.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client2"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
- 0608v uint32 : Policy allowed node type = Target
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 6
---------------
-Object: index=7 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 127.1.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 7
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.1.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
---------------
-Object: index=9 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client2.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007
- 0007 uint32 : Entity index = 9
---------------
-Object: index=10 type=<iSCSI Storage Node> state=mature parent=9
- 0020 string : iSCSI name = "isns.client2"
- 0021 uint32 : iSCSI node type = Target
- 0024 uint32 : iSCSI node index = 10
---------------
-Object: index=11 type=<Portal> state=mature parent=9
- 0010 ipaddr : Portal IP address = 127.1.0.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=9
- 0030 string : Portal group name = "isns.client2"
- 0031 ipaddr : Portal group address = 127.1.0.2
- 0032 uint32 : Portal group port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=14 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "iqn.com.foobar:disk1"
- 0024 uint32 : iSCSI node index = 14
diff --git a/utils/open-isns/tests/data/test03/01-enroll b/utils/open-isns/tests/data/test03/01-enroll
deleted file mode 100644
index 0046b41..0000000
--- a/utils/open-isns/tests/data/test03/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test03/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test03/02-registration b/utils/open-isns/tests/data/test03/02-registration
deleted file mode 100644
index 11062a6..0000000
--- a/utils/open-isns/tests/data/test03/02-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test03/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:36:35 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test03/03-unregistration b/utils/open-isns/tests/data/test03/03-unregistration
deleted file mode 100644
index 874235b..0000000
--- a/utils/open-isns/tests/data/test03/03-unregistration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test03/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:25:47 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=limbo
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test03/04-unregistration b/utils/open-isns/tests/data/test03/04-unregistration
deleted file mode 100644
index efe63e4..0000000
--- a/utils/open-isns/tests/data/test03/04-unregistration
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test03/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test03/99-unregistration b/utils/open-isns/tests/data/test03/99-unregistration
deleted file mode 100644
index 9ea63b1..0000000
--- a/utils/open-isns/tests/data/test03/99-unregistration
+++ /dev/null
@@ -1,13 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test03/server0/database
-Last EID: 1
-Last Index: 7
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
diff --git a/utils/open-isns/tests/data/test04/01-enroll b/utils/open-isns/tests/data/test04/01-enroll
deleted file mode 100644
index 3caf7a2..0000000
--- a/utils/open-isns/tests/data/test04/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test04/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test04/02-registration b/utils/open-isns/tests/data/test04/02-registration
deleted file mode 100644
index 0780d23..0000000
--- a/utils/open-isns/tests/data/test04/02-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test04/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:38:41 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test04/03-restart b/utils/open-isns/tests/data/test04/03-restart
deleted file mode 100644
index 0780d23..0000000
--- a/utils/open-isns/tests/data/test04/03-restart
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test04/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:38:41 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test04/04-query b/utils/open-isns/tests/data/test04/04-query
deleted file mode 100644
index 3320a8c..0000000
--- a/utils/open-isns/tests/data/test04/04-query
+++ /dev/null
@@ -1,20 +0,0 @@
-object[0] = <Network Entity>
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:38:42 2007
- 0007 uint32 : Entity index = 4
-object[1] = <iSCSI Storage Node>
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
-object[2] = <Portal>
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
-object[3] = <iSCSI Portal Group>
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test05/01-enroll b/utils/open-isns/tests/data/test05/01-enroll
deleted file mode 100644
index 421d125..0000000
--- a/utils/open-isns/tests/data/test05/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test05/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test05/02-registration b/utils/open-isns/tests/data/test05/02-registration
deleted file mode 100644
index 8be9f56..0000000
--- a/utils/open-isns/tests/data/test05/02-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test05/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 20
- 0004 uint64 : Timestamp = Fri Sep 14 13:40:40 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test05/03-expired b/utils/open-isns/tests/data/test05/03-expired
deleted file mode 100644
index 1c8b6ea..0000000
--- a/utils/open-isns/tests/data/test05/03-expired
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test05/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test06/01-enroll b/utils/open-isns/tests/data/test06/01-enroll
deleted file mode 100644
index 5ededae..0000000
--- a/utils/open-isns/tests/data/test06/01-enroll
+++ /dev/null
@@ -1,18 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test06/02-registration b/utils/open-isns/tests/data/test06/02-registration
deleted file mode 100644
index 5b6ab13..0000000
--- a/utils/open-isns/tests/data/test06/02-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:51 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test06/03-registration b/utils/open-isns/tests/data/test06/03-registration
deleted file mode 100644
index ad555dc..0000000
--- a/utils/open-isns/tests/data/test06/03-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 12
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=8 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:51 2007
- 0007 uint32 : Entity index = 8
---------------
-Object: index=9 type=<iSCSI Storage Node> state=mature parent=8
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 9
---------------
-Object: index=10 type=<Portal> state=mature parent=8
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 10
---------------
-Object: index=11 type=<iSCSI Portal Group> state=mature parent=8
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 11
diff --git a/utils/open-isns/tests/data/test06/04-registration b/utils/open-isns/tests/data/test06/04-registration
deleted file mode 100644
index 477248d..0000000
--- a/utils/open-isns/tests/data/test06/04-registration
+++ /dev/null
@@ -1,42 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 16
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=12 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:51 2007
- 0007 uint32 : Entity index = 12
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=12
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=14 type=<Portal> state=mature parent=12
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 14
---------------
-Object: index=15 type=<iSCSI Portal Group> state=mature parent=12
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 15
diff --git a/utils/open-isns/tests/data/test06/05-dd-registration b/utils/open-isns/tests/data/test06/05-dd-registration
deleted file mode 100644
index 01776db..0000000
--- a/utils/open-isns/tests/data/test06/05-dd-registration
+++ /dev/null
@@ -1,49 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 17
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=12 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:52 2007
- 0007 uint32 : Entity index = 12
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=12
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=14 type=<Portal> state=mature parent=12
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 14
---------------
-Object: index=15 type=<iSCSI Portal Group> state=mature parent=12
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 15
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
diff --git a/utils/open-isns/tests/data/test06/06-registration b/utils/open-isns/tests/data/test06/06-registration
deleted file mode 100644
index 6da36e2..0000000
--- a/utils/open-isns/tests/data/test06/06-registration
+++ /dev/null
@@ -1,49 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 20
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=17 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:52 2007
- 0007 uint32 : Entity index = 17
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=17
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=18 type=<Portal> state=mature parent=17
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=19 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 19
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
diff --git a/utils/open-isns/tests/data/test06/07-dd-registration b/utils/open-isns/tests/data/test06/07-dd-registration
deleted file mode 100644
index b3201d2..0000000
--- a/utils/open-isns/tests/data/test06/07-dd-registration
+++ /dev/null
@@ -1,52 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 20
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=17 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:52 2007
- 0007 uint32 : Entity index = 17
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=17
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=18 type=<Portal> state=mature parent=17
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=19 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 19
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
- 0816 uint32 : DD member portal index = 18
- 0817 ipaddr : DD member portal addr = 192.168.1.1
- 0818 uint32 : DD member portal port = 860/tcp
diff --git a/utils/open-isns/tests/data/test06/08-registration b/utils/open-isns/tests/data/test06/08-registration
deleted file mode 100644
index f965777..0000000
--- a/utils/open-isns/tests/data/test06/08-registration
+++ /dev/null
@@ -1,64 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 22
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=17 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:52 2007
- 0007 uint32 : Entity index = 17
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=17
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=18 type=<Portal> state=limbo
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=19 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 19
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
- 0816 uint32 : DD member portal index = 18
- 0817 ipaddr : DD member portal addr = 192.168.1.1
- 0818 uint32 : DD member portal port = 860/tcp
---------------
-Object: index=20 type=<Portal> state=mature parent=17
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 20
---------------
-Object: index=21 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 21
diff --git a/utils/open-isns/tests/data/test06/09-registration b/utils/open-isns/tests/data/test06/09-registration
deleted file mode 100644
index 1308d3c..0000000
--- a/utils/open-isns/tests/data/test06/09-registration
+++ /dev/null
@@ -1,64 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 22
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=17 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:41:52 2007
- 0007 uint32 : Entity index = 17
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=17
- 0020 string : iSCSI name = "isns.client1"
- 0021 uint32 : iSCSI node type = Initiator
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=18 type=<Portal> state=mature parent=17
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=19 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 19
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
- 0816 uint32 : DD member portal index = 18
- 0817 ipaddr : DD member portal addr = 192.168.1.1
- 0818 uint32 : DD member portal port = 860/tcp
---------------
-Object: index=20 type=<Portal> state=limbo
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 20
---------------
-Object: index=21 type=<iSCSI Portal Group> state=mature parent=17
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 21
diff --git a/utils/open-isns/tests/data/test06/10-unregistration b/utils/open-isns/tests/data/test06/10-unregistration
deleted file mode 100644
index 0c42d1c..0000000
--- a/utils/open-isns/tests/data/test06/10-unregistration
+++ /dev/null
@@ -1,37 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 22
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=13 type=<iSCSI Storage Node> state=limbo
- 0020 string : iSCSI name = "isns.client1"
- 0024 uint32 : iSCSI node index = 13
---------------
-Object: index=18 type=<Portal> state=limbo
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
- 0816 uint32 : DD member portal index = 18
- 0817 ipaddr : DD member portal addr = 192.168.1.1
- 0818 uint32 : DD member portal port = 860/tcp
diff --git a/utils/open-isns/tests/data/test06/11-registration b/utils/open-isns/tests/data/test06/11-registration
deleted file mode 100644
index d8d03f8..0000000
--- a/utils/open-isns/tests/data/test06/11-registration
+++ /dev/null
@@ -1,52 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test06/server0/database
-Last EID: 1
-Last Index: 24
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b7 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=22 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 21 11:23:54 2007
- 0007 uint32 : Entity index = 22
---------------
-Object: index=13 type=<iSCSI Storage Node> state=mature parent=22
- 0020 string : iSCSI name = "isns.client1"
- 0024 uint32 : iSCSI node index = 13
- 0021 uint32 : iSCSI node type = Initiator
---------------
-Object: index=18 type=<Portal> state=mature parent=22
- 0010 ipaddr : Portal IP address = 192.168.1.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 18
---------------
-Object: index=23 type=<iSCSI Portal Group> state=mature parent=22
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 192.168.1.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 23
---------------
-Object: index=16 type=<Discovery Domain> state=mature
- 0811 uint32 : DD ID = 1
- 0812 string : DD name = "isns.dd1"
- 081e uint32 : DD features = <NIL>
- 0813 uint32 : DD member iSCSI index = 13
- 0814 string : DD member iSCSI name = "isns.client1"
- 0816 uint32 : DD member portal index = 18
- 0817 ipaddr : DD member portal addr = 192.168.1.1
- 0818 uint32 : DD member portal port = 860/tcp
diff --git a/utils/open-isns/tests/data/test07/01-enroll b/utils/open-isns/tests/data/test07/01-enroll
deleted file mode 100644
index ad2eaf4..0000000
--- a/utils/open-isns/tests/data/test07/01-enroll
+++ /dev/null
@@ -1,19 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test07/server0/database
-Last EID: 1
-Last Index: 4
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
- 0004 uint64 : Timestamp = Fri Sep 14 13:42:57 2007
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test07/02-registration b/utils/open-isns/tests/data/test07/02-registration
deleted file mode 100644
index da8962a..0000000
--- a/utils/open-isns/tests/data/test07/02-registration
+++ /dev/null
@@ -1,45 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test07/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
- 0004 uint64 : Timestamp = Fri Sep 14 13:42:57 2007
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=4 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:42:57 2007
- 0007 uint32 : Entity index = 4
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=4
- 0020 string : iSCSI name = "isns.client1"
- 0024 uint32 : iSCSI node index = 5
- 0021 uint32 : iSCSI node type = Initiator
---------------
-Object: index=6 type=<Portal> state=mature parent=4
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 65535/tcp
- 0013 uint32 : ESI interval = 5
---------------
-Object: index=7 type=<iSCSI Portal Group> state=mature parent=4
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 7
diff --git a/utils/open-isns/tests/data/test07/03-expired b/utils/open-isns/tests/data/test07/03-expired
deleted file mode 100644
index edb9ea4..0000000
--- a/utils/open-isns/tests/data/test07/03-expired
+++ /dev/null
@@ -1,19 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test07/server0/database
-Last EID: 1
-Last Index: 8
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
- 0004 uint64 : Timestamp = Fri Sep 14 13:42:57 2007
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test07/04-registration b/utils/open-isns/tests/data/test07/04-registration
deleted file mode 100644
index de57cbd..0000000
--- a/utils/open-isns/tests/data/test07/04-registration
+++ /dev/null
@@ -1,57 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test07/server0/database
-Last EID: 1
-Last Index: 14
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
- 0004 uint64 : Timestamp = Fri Sep 14 13:43:12 2007
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
---------------
-Object: index=8 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "client1.isns-test.eu"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 14 13:43:12 2007
- 0007 uint32 : Entity index = 8
---------------
-Object: index=9 type=<iSCSI Storage Node> state=mature parent=8
- 0020 string : iSCSI name = "isns.client1"
- 0024 uint32 : iSCSI node index = 9
- 0021 uint32 : iSCSI node type = Initiator
---------------
-Object: index=10 type=<Portal> state=mature parent=8
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 860/tcp
- 0016 uint32 : Portal index = 10
- 0014 uint32 : ESI port = 65535/tcp
- 0013 uint32 : ESI interval = 5
---------------
-Object: index=11 type=<Portal> state=mature parent=8
- 0010 ipaddr : Portal IP address = 127.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 1/tcp
- 0016 uint32 : Portal index = 11
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=8
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 860/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 12
---------------
-Object: index=13 type=<iSCSI Portal Group> state=mature parent=8
- 0030 string : Portal group name = "isns.client1"
- 0031 ipaddr : Portal group address = 127.0.0.1
- 0032 uint32 : Portal group port = 1/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 13
diff --git a/utils/open-isns/tests/data/test07/05-expired b/utils/open-isns/tests/data/test07/05-expired
deleted file mode 100644
index fd51f78..0000000
--- a/utils/open-isns/tests/data/test07/05-expired
+++ /dev/null
@@ -1,19 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test07/server0/database
-Last EID: 1
-Last Index: 14
---------------
-Object: index=1 type=<Network Entity> state=mature PRIVATE
- 0001 string : Entity identifier = "CONTROL"
- 0007 uint32 : Entity index = 1
- 0004 uint64 : Timestamp = Fri Sep 14 13:43:12 2007
---------------
-Object: index=2 type=<Policy> state=mature parent=1 PRIVATE
- 0601v string : Security Policy Index = "client1.isns-test.eu"
- 0607v string : Policy allowed node name = "isns.client1"
- 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01...
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1 PRIVATE
- 0020 string : iSCSI name = "isns.control"
- 0021 uint32 : iSCSI node type = <NIL>
- 0024 uint32 : iSCSI node index = 3
diff --git a/utils/open-isns/tests/data/test08/01-pauw1 b/utils/open-isns/tests/data/test08/01-pauw1
deleted file mode 100644
index 3de54da..0000000
--- a/utils/open-isns/tests/data/test08/01-pauw1
+++ /dev/null
@@ -1,100 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test08/server0/database
-Last EID: 1
-Last Index: 15
---------------
-Object: index=1 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "cyan.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 15:15:41 2007
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0"
- 0024 uint32 : iSCSI node index = 2
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (10 GB)"
- 002a string : iSCSI auth method = "None"
---------------
-Object: index=3 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1"
- 0024 uint32 : iSCSI node index = 3
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "160 GB disk (ntfs)"
- 002a string : iSCSI auth method = "None"
---------------
-Object: index=4 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2"
- 0024 uint32 : iSCSI node index = 4
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "160 GB disk (ext3)"
- 002a string : iSCSI auth method = "CHAP"
---------------
-Object: index=5 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3"
- 0024 uint32 : iSCSI node index = 5
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (1 GB)"
- 002a string : iSCSI auth method = "None"
---------------
-Object: index=6 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4"
- 0024 uint32 : iSCSI node index = 6
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (40 GB)"
- 002a string : iSCSI auth method = "CHAP"
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "test"
- 002a string : iSCSI auth method = "None"
---------------
-Object: index=8 type=<Portal> state=mature parent=1
- 0010 ipaddr : Portal IP address = 10.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0016 uint32 : Portal index = 8
---------------
-Object: index=9 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 9
- 0033 uint32 : Portal group tag = 1
---------------
-Object: index=10 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 10
- 0033 uint32 : Portal group tag = 1
---------------
-Object: index=11 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 11
- 0033 uint32 : Portal group tag = 1
---------------
-Object: index=12 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 12
- 0033 uint32 : Portal group tag = 1
---------------
-Object: index=13 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 13
- 0033 uint32 : Portal group tag = 1
---------------
-Object: index=14 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5"
- 0031 ipaddr : Portal group address = 10.0.0.1
- 0032 uint32 : Portal group port = 3260/tcp
- 0034 uint32 : Portal group index = 14
- 0033 uint32 : Portal group tag = 1
diff --git a/utils/open-isns/tests/data/test09/01-pauw2 b/utils/open-isns/tests/data/test09/01-pauw2
deleted file mode 100644
index 9b0a814..0000000
--- a/utils/open-isns/tests/data/test09/01-pauw2
+++ /dev/null
@@ -1,31 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test09/server0/database
-Last EID: 1
-Last Index: 9
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 15:18:04 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 56288/tcp
- 0013 uint32 : ESI interval = 300
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "iqn.2005-03.org.open-iscsi:blue"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 33849/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test10/01-pauw3 b/utils/open-isns/tests/data/test10/01-pauw3
deleted file mode 100644
index b7f3b10..0000000
--- a/utils/open-isns/tests/data/test10/01-pauw3
+++ /dev/null
@@ -1,31 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test10/server0/database
-Last EID: 1
-Last Index: 9
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 16:34:30 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 56288/tcp
- 0013 uint32 : ESI interval = 10
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "iqn.2005-03.org.open-iscsi:blue"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 33849/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test10/02-expired b/utils/open-isns/tests/data/test10/02-expired
deleted file mode 100644
index b7f3b10..0000000
--- a/utils/open-isns/tests/data/test10/02-expired
+++ /dev/null
@@ -1,31 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test10/server0/database
-Last EID: 1
-Last Index: 9
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 16:34:30 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 56288/tcp
- 0013 uint32 : ESI interval = 10
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "iqn.2005-03.org.open-iscsi:blue"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 33849/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test10/03-pauw3 b/utils/open-isns/tests/data/test10/03-pauw3
deleted file mode 100644
index 412c5b5..0000000
--- a/utils/open-isns/tests/data/test10/03-pauw3
+++ /dev/null
@@ -1,31 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test10/server0/database
-Last EID: 1
-Last Index: 9
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 16:34:51 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 56288/tcp
- 0013 uint32 : ESI interval = 10
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "iqn.2005-03.org.open-iscsi:blue"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 33849/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test10/04-expired b/utils/open-isns/tests/data/test10/04-expired
deleted file mode 100644
index 412c5b5..0000000
--- a/utils/open-isns/tests/data/test10/04-expired
+++ /dev/null
@@ -1,31 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test10/server0/database
-Last EID: 1
-Last Index: 9
---------------
-Object: index=5 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Mon Sep 17 16:34:51 2007
- 0007 uint32 : Entity index = 5
---------------
-Object: index=6 type=<Portal> state=mature parent=5
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0016 uint32 : Portal index = 6
- 0014 uint32 : ESI port = 56288/tcp
- 0013 uint32 : ESI interval = 10
---------------
-Object: index=7 type=<iSCSI Storage Node> state=mature parent=5
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0024 uint32 : iSCSI node index = 7
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
---------------
-Object: index=8 type=<iSCSI Portal Group> state=mature parent=5
- 0030 string : Portal group name = "iqn.2005-03.org.open-iscsi:blue"
- 0031 ipaddr : Portal group address = 192.168.1.2
- 0032 uint32 : Portal group port = 33849/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 8
diff --git a/utils/open-isns/tests/data/test11/01-pauw4 b/utils/open-isns/tests/data/test11/01-pauw4
deleted file mode 100644
index 50c6b92..0000000
--- a/utils/open-isns/tests/data/test11/01-pauw4
+++ /dev/null
@@ -1,32 +0,0 @@
-Dumping database contents
-Backend: /tmp/isns-test/test11/server0/database
-Last EID: 1
-Last Index: 5
---------------
-Object: index=1 type=<Network Entity> state=mature
- 0001 string : Entity identifier = "troopa.nki.nl"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 7200
- 0004 uint64 : Timestamp = Fri Sep 21 09:37:10 2007
- 0007 uint32 : Entity index = 1
---------------
-Object: index=2 type=<Portal> state=mature parent=1
- 0010 ipaddr : Portal IP address = 192.168.1.40
- 0011 uint32 : Portal TCP/UDP port = 3229/tcp
- 0017 uint32 : SCN port = 3230/tcp
- 0014 uint32 : ESI port = 3230/tcp
- 0013 uint32 : ESI interval = 300
- 0016 uint32 : Portal index = 2
---------------
-Object: index=3 type=<iSCSI Portal Group> state=mature parent=1
- 0030 string : Portal group name = "iqn.1991-05.com.microsoft:orange"
- 0031 ipaddr : Portal group address = 192.168.1.40
- 0032 uint32 : Portal group port = 3229/tcp
- 0033 uint32 : Portal group tag = 1
- 0034 uint32 : Portal group index = 3
---------------
-Object: index=4 type=<iSCSI Storage Node> state=mature parent=1
- 0020 string : iSCSI name = "iqn.1991-05.com.microsoft:orange"
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "<MS SW iSCSI Initiator>"
- 0024 uint32 : iSCSI node index = 4
diff --git a/utils/open-isns/tests/genkey b/utils/open-isns/tests/genkey
deleted file mode 100644
index 36c5eee..0000000
--- a/utils/open-isns/tests/genkey
+++ /dev/null
@@ -1,175 +0,0 @@
-#!/bin/bash
-#
-# This is a very simple script to generate a DSA
-# key pair for authenticated iSNS.
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This script is supposed to be run on the iSNS server.
-# For the first time, run as
-# isnsgenkey -s 1024
-# This will generate a DSA params file, and a DSA private
-# and public key for the server.
-#
-# For each client, generate a key using
-# isnsgenkey <clientname>
-# where <clientname> is the fully qualified domain name.
-# This script will convert the FQDN to a valid iSNS
-# source name (isns.com.foobar.host)
-
-myname=`basename $0`
-etcdir=/etc/isns
-keystore=$etcdir/keystore
-dsa_parms=$etcdir/dsa.params
-dsa_bits=1024
-opt_force=0
-opt_server=0
-
-function usage {
- cat <<-EOF >&2
- $*
- Usage:
- $myname -s [-f] bits
- $myname clientname
- EOF
- exit 1
-}
-
-function make_isns_name {
- OFS="$IFS"
- IFS=.
- set -- $*
-
- __result=$1; shift
- for part; do
- __result=$part.$__result
- done
- echo "isns.$__result"
- IFS="$OFS"
-}
-
-set -- `getopt b:fk:s $*`
-while [ $# -gt 0 ]; do
- opt=$1; shift
- case $opt in
- --) break;;
- -b) dsa_bits=$1; shift;;
- -f) opt_force=1;;
- -k) dsa_priv=$1; shift;;
- -s) opt_server=1;;
- *) usage "Unknown option $opt";;
- esac
-done
-
-if [ `id -un` != "root" -a $opt_force -eq 0 ]; then
- echo "$myname: should be run by super user only" >&2
- exit 1
-fi
-
-# All newly generated files should have restricted
-# access by default.
-umask 077
-
-tmpdir=`mktemp -d /tmp/isnsgenkey.XXXXXX`
-trap "rm -rf $tmpdir" 0 1 2 15
-
-if [ $opt_server -ne 0 ]; then
- [ $# -eq 1 ] || usage "Expected DSA key length"
- dsa_bits=$1
-
- install -m 755 -d $etcdir
- if [ -z $dsa_priv ]; then
- dsa_priv=$etcdir/auth_key
- fi
- dsa_pub=$dsa_priv.pub
- dsa_copy=
-else
- [ $# -eq 1 ] || usage "Expected client name"
- client=`make_isns_name $1`
-
- mkdir -p $tmpdir$etcdir
- # build_client_conf $client > $tmpdir$etcdir/client.conf
-
- if [ -z $dsa_priv ]; then
- dsa_priv=$tmpdir$etcdir/auth_key
- fi
- dsa_pub=$dsa_priv.pub
- dsa_copy=$keystore/$client
-fi
-
-if [ -f $dsa_priv -a $opt_force -eq 0 ]; then
- cat <<-EOF
-
- ------------------------------------------------------------------
- | There is already a DSA key installed in $dsa_priv. In order to
- | generate a new key, please specify the -f [force] option.
- ------------------------------------------------------------------
- EOF
- exit 1
-fi
-
-if [ ! -r $dsa_parms ]; then
- if [ $opt_server -eq 0 ]; then
- echo "Please run $myname in server-initialization mode first" >&2
- exit 1
- fi
-
- cat <<-EOF
-
- ------------------------------------------------------------------
- | I will now try to generate a set of DSA parameters. This can be
- | a slow process, so please be patient.
- ------------------------------------------------------------------
- EOF
-
- mkdir -p `dirname $dsa_parms`
- openssl dsaparam $dsa_bits -out $dsa_parms ||
- exit 1
-
- # DSA parameters are public
- chmod 644 $dsa_parms
-fi
-
-cat <<EOF
-------------------------------------------------------------------
-| I will now try to generate a DSA private key and store it in
-| $dsa_priv.
-|
-| The key will not be protected by a passphrase.
-------------------------------------------------------------------
-EOF
-openssl gendsa -out $dsa_priv $dsa_parms
-openssl dsa -pubout -in $dsa_priv -out $dsa_pub
-chmod 644 $dsa_pub
-
-cat <<EOF
-------------------------------------------------------------------
-| Testing new DSA key
-------------------------------------------------------------------
-EOF
-if ! openssl dgst -dss1 -sign $dsa_priv -out $tmpdir/test-sig /etc/hosts; then
- echo "DSA signature failed - aborting!" >&2
- exit 1
-fi
-if ! openssl dgst -dss1 -verify $dsa_pub -signature $tmpdir/test-sig /etc/hosts; then
- echo "DSA verification failed - aborting!" >&2
- exit 1
-fi
-od -tx1 $tmpdir/test-sig
-
-if [ $opt_server -eq 0 ]; then
- echo "Installing DSA public key as $dsa_copy"
- install -d -m 755 $keystore
- install -m 644 $dsa_pub $dsa_copy
- install -m 644 $etcdir/auth_key.pub $tmpdir$etcdir/server.pub
-
- tarball=auth-$client.tar.gz
- tar -C $tmpdir -czf $tarball .$etcdir
-
- cat <<-EOF
- ------------------------------------------------------------------
- | Successfully packaged $tarball
- | Please copy this file to client $client and install
- ------------------------------------------------------------------
- EOF
-fi
diff --git a/utils/open-isns/tests/harness.pl b/utils/open-isns/tests/harness.pl
deleted file mode 100644
index d7ce025..0000000
--- a/utils/open-isns/tests/harness.pl
+++ /dev/null
@@ -1,929 +0,0 @@
-#!/usr/bin/perl
-
-use Getopt::Long;
-
-$__isns_verbose = 1;
-$__isns_security = 1;
-
-$__isns_bin = "../";
-$__isns_seq = 0;
-$__isns_test_base = '/tmp/isns-test';
-$__isns_test_dir = '/tmp/isns-test/test';
-$__isns_stage = 1;
-$__isns_test_data = '';
-$__isns_test_dump = '';
-$__isns_passed = 0;
-$__isns_failed = 0;
-$__isns_warned = 0;
-@__isns_servers = ();
-
-%__isns_ignore_tag = (
- "0004" => 1, # Timestamp
- "0603v" => 1, # DSA public key
-);
-
-sub isns_fail {
-
- print "*** FAILURE ***\n";
- $__isns_failed++;
-
- my $line;
- foreach $line (@_) {
- print "*** $line ***\n";
- }
-}
-
-sub isns_pass {
-
- print "*** SUCCESS ***\n" if ($__isns_verbose > 1);
- $__isns_passed++;
-}
-
-sub isns_warn {
-
- printf "*** WARNING: %s ***\n", join(' ', @_);
- $__isns_warned++;
-}
-
-sub isns_die {
-
- printf "*** TERMINAL FAILURE: %s ***\n", join(' ', @_);
- $__isns_failed++;
-
- &isns_finish;
- die "Test aborted\n";
-}
-
-sub isns_finish {
-
- my $pid;
- foreach $pid (@__isns_servers) {
- kill 15, $pid or &isns_warn("Cannot kill server process (pid=$pid): $!\n");
- }
-
- &isns_report;
-}
-
-sub isns_report {
-
- print "*** Test $__isns_test_name complete.";
- print " PASSED: $__isns_passed" if ($__isns_passed);
- print " FAILED: $__isns_failed" if ($__isns_failed);
- print " WARNINGS: $__isns_warned" if ($__isns_warned);
- print " ***\n";
-}
-
-sub isns_info {
-
- print @_ if ($__isns_verbose > 1);
-}
-
-sub isns_notice {
-
- print @_ if ($__isns_verbose > 0);
-}
-
-sub isns_stage {
-
- local($name, @msg) = @_;
-
- if ($name =~ m/^[0-9]/o) {
- $__isns_stage_name = $name;
- } else {
- $__isns_stage_name = sprintf "%02d-%s",
- $__isns_stage++, $name;
- }
- &isns_notice("*** $__isns_stage_name: ", @msg, " ***\n");
-}
-
-sub build_config {
-
- local($src_file, $dst_file, *__subst) = @_;
- my $key;
- my $okey;
- my $value;
- my $sepa;
- my %subst;
-
- &isns_info("*** Building $src_file -> $dst_file\n");
-
- # Translate all keys to lower case.
- foreach $key (keys(%__subst)) {
- $value = $__subst{$key};
- $key =~ tr/A-Z/a-z/;
- $subst{$key} = $value;
- }
-# foreach $key (keys(%subst)) {
-# printf " %s -> %s\n", $key, $subst{$key};
-# }
-
- open IN, "<$src_file" or die "$src_file: $!\n";
- open OUT, ">$dst_file" or die "$dst_file: $!\n";
-
- while (<IN>) {
- $line = $_;
- if (m:(\S+)(\s*=\s*)(.*):o) {
- ($okey, $sepa, $value) = ($1, $2, $3);
-
- $key = $okey;
- $key =~ tr/A-Z/a-z/;
-
- if ($subst{$key}) {
- $line = "$okey$sepa$subst{$key}\n";
- }
- }
-
- # Ignore unconfigured lines.
- next if ($line =~ m/\@[A-Z_]*\@/o);
- print OUT $line;
- }
- close OUT;
- close IN;
-}
-
-sub get_config_value {
- local($cfg_file, $item_name) = @_;
- my $result;
- my $name;
- my $value;
-
- $item_name =~ tr/A-Z/a-z/;
-
- open IN, "<$cfg_file" or die "$cfg_file: $!\n";
- while (<IN>) {
- chop;
- ($name, $value) = split(/\s+=\s+/, $_);
-
- $name =~ tr/A-Z/a-z/;
- if ($name eq $item_name) {
- $result = $value;
- last;
- }
- }
- close IN;
-
- return $result;
-}
-
-sub create_key {
-
- local($keyfile) = @_;
-
- if ($__isns_security) {
- &isns_info("*** Creating key at $keyfile\n");
- system "./genkey -fsk $keyfile 2048 >${keyfile}.log 2>&1";
- }
- return $keyfile;
-}
-
-sub create_server {
-
- local(*override) = @_;
- my %local_config;
- my $my_dir;
- my $handle;
- my $config;
-
- $handle = sprintf "server%d", $__isns_seq++;
- $my_dir = "$__isns_test_dir/${handle}";
-
- mkdir $my_dir, 0700 or die "Cannot create $my_dir: $!\n";
-
- $server_addr = "127.0.0.1:7770" unless ($server_addr);
-
- $config = "$my_dir/config";
-
- $local_config{"SourceName"} = "isns.$handle";
- $local_config{"Database"} = "$my_dir/database";
- $local_config{"BindAddress"} = "$server_addr";
- $local_config{"PIDFile"} = "$my_dir/pid";
- $local_config{"ControlSocket"} = "$my_dir/control";
- $local_config{"Security"} = $__isns_security;
- $local_config{"AuthKeyFile"} = &create_key("$my_dir/auth_key");
-
- foreach $key (keys(%override)) {
- $local_config{$key} = $override{$key};
- }
-
- &build_config('server.conf', $config, \%local_config);
- return $config;
-}
-
-sub create_client {
-
- local($server_config, $client_address) = @_;
- my %local_config;
- my $server_key;
- my $control_socket;
- my $server_addr;
- my $my_dir;
- my $handle;
- my $config;
-
- $handle = sprintf "client%d", $__isns_seq++;
- $my_dir = "$__isns_test_dir/${handle}";
-
- mkdir $my_dir, 0700 or die "Cannot create $my_dir: $!\n";
-
- $control_socket = &get_config_value($server_config, "ControlSocket");
- $server_addr = &get_config_value($server_config, "BindAddress");
- $server_addr = "127.0.0.1" unless ($server_addr);
-
- $config = "$my_dir/config";
-
- $local_config{"SourceName"} = "isns.$handle";
- $local_config{"AuthName"} = "$handle.isns-test.eu";
- $local_config{"ServerAddress"} = $server_addr;
- $local_config{"ControlSocket"} = $control_socket;
- $local_config{"BindAddress"} = $client_address if ($client_address);
- $local_config{"server_config"} = $server_config;
- $local_config{"Security"} = $__isns_security;
- $local_config{"AuthKeyFile"} = &create_key("$my_dir/auth_key");
- $local_config{"ServerKeyFile"} =
- &get_config_value($server_config, "AuthKeyFile") . ".pub";
-
- &build_config('client.conf', $config, \%local_config);
-
- $__isns_data{$config,"server_config"} = $server_config;
- $__isns_data{$config} = %local_config;
- return $config;
-}
-
-sub get_logfile {
-
- local($config) = @_;
- my $dir;
-
- $dir = $config;
- $dir =~ s|/+[^/]+$||o;
-
- return "$dir/logfile";
-}
-
-sub run_command {
-
- local(@cmd) = @_;
- my $status;
- my $cmd;
-
- $cmd = join(' ', @cmd);
- &isns_info("$cmd\n");
-
- system "$cmd";
-
- $status = $?;
- if ($status) {
- &isns_warn("Command failed, exit status $status");
- print "*** Command was: $cmd ***\n";
- return undef;
- }
-
- return 1;
-}
-
-sub isns_start_server {
-
- local($server_config) = @_;
- my $logfile;
- my $pidfile;
- my $pid;
-
- die "restart_server: missing server config argument!\n"
- unless(-f $server_config);
- $logfile = &get_logfile($server_config);
- $pidfile = &get_config_value($server_config, "PIDFile");
-
- &isns_info("*** Starting server (logging to $logfile)\n");
-
- $pid = fork();
- if ($pid) {
- my $retry;
-
- if ($pidfile) {
- for ($retry = 0; $retry < 5; $retry++) {
- last if (-f $pidfile);
- sleep 1;
- }
- $pid = `cat $pidfile` if ($pidfile);
- chop($pid);
- }
- &isns_info("*** Started server (pid=$pid) ***\n");
- push(@__isns_servers, $pid);
- return $pid;
- }
-
- &isns_info("${__isns_bin}isnsd -c $server_config -f -d all\n");
- exec "${__isns_bin}isnsd -c $server_config -f -d all >$logfile 2>&1 &"
- or die "Unable to run isnsd: $!\n";
-}
-
-sub isns_stop_server {
-
- local($pid) = @_;
- my @list;
- my $p;
-
- kill 15, $pid or &isns_warn("Cannot kill server process (pid=$pid): $!\n");
- foreach $p (@__isns_servers) {
- append(@list, $p) unless ($p == $pid);
- }
- @__isns_servers = @list;
-}
-
-sub isns_restart_server {
-
- local($pid, $server_config);
-
- if ($_[0] =~ m:^\d+$:o) {
- $pid = shift(@_);
- } else {
- if ($#__isns_servers < 0) {
- &isns_warn("isns_restart_server: no server running\n");
- return 0;
- }
- $pid = $__isns_servers[0];
- }
- $server_config = shift(@_);
-
- &isns_stop_server($pid);
- return &isns_start_server($server_config);
-}
-
-sub isns_verify_db {
-
- local($stage, $server_config);
- my $dump_file;
- my $data_file;
-
- if ($_[0] =~ m/^\d/o) {
- $stage = shift(@_);
- } else {
- $stage = $__isns_stage_name;
- }
- $server_config = shift(@_);
-
- die "Test case forgot to call test_prep" unless($__isns_test_data);
-
- $dump_file = "$__isns_test_dump/$stage";
- unless (&run_command("${__isns_bin}/isnsd -c $server_config --dump-db > $dump_file")) {
- &isns_fail;
- return 0;
- }
-
- # See if the reference data file exists. If it
- # doesn't, this means we're priming the test case.
- # Just copy the dump file.
- $data_file = "$__isns_test_data/$stage";
- unless (-f $data_file) {
- print "*** Saving database dump for stage $stage ***\n";
- mkdir $__isns_test_data, 0755;
- system "cp $dump_file $data_file";
- return 1;
- }
-
- &isns_info("*** Verifying database dump for stage $stage ***\n");
- if (&verify_dump($stage, $data_file, $dump_file)) {
- &isns_pass;
- } else {
- if ($__isns_verbose > 1) {
- system("diff -u -ITimestamp -I'DSA security key' $data_file $dump_file");
- }
- &isns_fail;
- }
-
- return 1;
-}
-
-sub verify_db {
-
- &isns_verify_db(@_);
-}
-
-sub verify_response {
-
- local($stage, $client_config) = @_;
- my $dump_file;
- my $data_file;
-
- die "Test case forgot to call test_prep" unless($__isns_test_data);
-
- $dump_file = &get_logfile($client_config);
-
- # See if the reference data file exists. If it
- # doesn't, this means we're priming the test case.
- # Just copy the dump file.
- $data_file = "$__isns_test_data/$stage";
- unless (-f $data_file) {
- print "*** Saving data for stage $stage ***\n";
- mkdir $__isns_test_data, 0755;
- system "cp $dump_file $data_file";
- return 1;
- }
-
- &isns_info("*** Verifying data for stage $stage ***\n");
- if (&verify_query($stage, $data_file, $dump_file)) {
- &isns_pass;
- } else {
- &isns_fail("Query response returns unexpected data");
- system "cp $dump_file $__isns_test_dump/$stage";
- print "*** Saved dump as $__isns_test_dump/$stage\n";
- print "*** Reference data in $data_file\n";
- if ($__isns_verbose > 1) {
- system("diff -u -ITimestamp -I'DSA security key' $data_file $dump_file");
- }
- }
-
- return 1;
-}
-
-sub verify_dump {
-
- local($stage, $data_file, $dump_file) = @_;
- my $line;
- my @dump;
- my @data;
- my @obj1;
- my @obj2;
-
- @dump = &load_dump($dump_file);
- @data = &load_dump($data_file);
-
- &skip_header(\@dump);
- &skip_header(\@data);
-
- while (1) {
- $line++;
-
- @obj1 = &get_next_object(\@dump);
- @obj2 = &get_next_object(\@data);
-
- last unless(@obj1 || @obj2);
-
- unless (@obj1 && @obj2) {
- print STDERR "*** $stage: Excess data at end of dump\n";
- return 0;
- }
-
- unless (&compare_objects(\@obj1, \@obj2)) {
- print STDERR "*** Object mismatch (object $line):\n";
- print STDERR "Expected:\n ";
- print STDERR join("\n ", @obj2), "\n";
- print STDERR "Got:\n ";
- print STDERR join("\n ", @obj1), "\n";
- return 0;
- }
- }
-
- if (@data) {
- print STDERR "*** $stage: Unexpected end of dump at line $line\n";
- return 0;
- }
-
- return 1;
-}
-
-sub skip_header {
-
- local(*list) = @_;
- local($_);
-
- while ($_ = shift(@list)) {
- last if (/^-/o);
- }
-}
-
-sub get_next_object {
-
- local(*list) = @_;
- local($_, $header, @result);
- my @tags;
-
- while ($_ = shift(@list)) {
- next if (/^-/o);
- if (/^\s+([0-9a-fv]+)\s+/o) {
- next if ($__isns_ignore_tag{$1});
- push(@tags, $_);
- } else {
- if (@result) {
- unshift(@list, $_);
- last;
- }
- push(@result, $_);
- }
- #print "### $_\n";
- }
-
- if (@tags) {
- push(@result, sort(@tags));
- }
- return @result;
-}
-
-sub compare_objects {
-
- local(*a, *b) = @_;
- local($i);
-
- return 0 unless ($#a == $#b);
- for ($i = 0; $i <= $#a; $i++) {
- return 0 unless ($a[$i] eq $b[$i]);
- }
-
- return 1;
-}
-
-
-sub verify_query {
-
- local($stage, $data_file, $dump_file) = @_;
- my $line;
- my @dump;
- my @data;
-
- @dump = &load_dump($dump_file);
- @data = &load_dump($data_file);
-
- while (@dump) {
- $line++;
- unless (@data) {
- print STDERR "*** $stage: Excess data in dump at line $line\n";
- return 0;
- }
-
- $a = shift(@dump);
- $b = shift(@data);
- if ($a =~ /^\S/o) {
- next if ($a eq $b);
- print STDERR "*** $stage: Mismatch at line $line ***\n";
- print STDERR "*** Found: $a\n";
- print STDERR "*** Expected: $b\n";
- return 0;
- }
-
- ($nix, $a_tag, $a_value) = split(/\s+/, $a, 3);
- ($nix, $b_tag, $b_value) = split(/\s+/, $b, 3);
- if ($a_tag ne $b_tag) {
- print STDERR "*** $stage: Tag mismatch at line $line\n";
- print STDERR "*** Found: $a\n";
- print STDERR "*** Expected: $b\n";
- return 0;
- }
-
- next if ($__isns_ignore_tag{$a_tag});
- if ($a_value ne $b_value) {
- print STDERR "*** $stage: Value mismatch at line $line (tag $a_tag)\n";
- print STDERR "*** Found: $a\n";
- print STDERR "*** Expected: $b\n";
- return 0;
- }
- }
-
- if (@data) {
- print STDERR "*** $stage: Unexpected end of dump at line $line\n";
- return 0;
- }
-
- return 1;
-}
-
-sub load_dump {
-
- local($filename) = @_;
- my @result;
-
- open IN, $filename or die "Unable to open $filename: $!\n";
- while (<IN>) {
- chop;
- push(@result, $_);
- }
- close IN;
- return @result;
-}
-
-
-sub run_client {
-
- local($config, @args) = @_;
- my $logfile;
- my $cmd;
-
- $logfile = &get_logfile($config);
-
- $cmd = "${__isns_bin}/isnsadm -c $client_config " . join(' ', @args);
- if (&run_command("$cmd >$logfile")) {
- return $logfile;
- }
- return undef;
-}
-
-sub __isns_enroll_client {
-
- local($client_config, @extra_args) = @_;
- my $source_name;
- my $auth_name;
- my $auth_key;
- my @args;
-
- $source_name = &get_config_value($client_config, "SourceName");
- $auth_name = &get_config_value($client_config, "AuthName");
- $auth_key = &get_config_value($client_config, "AuthKeyFile");
-
- push(@args, "--local --enroll $auth_name node-name=$source_name");
- push(@args, " key=${auth_key}.pub") if ($auth_key);
- push(@args, @extra_args) if (@extra_args);
-
- &run_client($client_config, @args);
-}
-
-sub isns_enroll_client {
-
- local($client, @args) = @_;
- my $server;
-
- $server = $__isns_data{$client,"server_config"};
- &isns_stage("enroll", "Enrolling client");
- &__isns_enroll_client($client, @args);
- &verify_db($__isns_stage_name, $server);
-}
-
-sub enroll_client {
-
- print "*** Enrolling client ***\n";
- &__isns_enroll_client(@_);
-}
-
-sub __isns_register_client {
-
- local($client_config, @extra_args) = @_;
- my @args;
-
- push(@args, "--register");
- push(@args, @extra_args) if (@extra_args);
-
- &run_client($client_config, @args);
-}
-
-sub isns_register_client {
-
- local($client, @args) = @_;
- my $server;
-
- $server = $__isns_data{$client,"server_config"};
- &isns_stage("registration", "Registering client " . join(' ', @args));
- &__isns_register_client($client, @args);
- &verify_db($__isns_stage_name, $server);
-}
-
-sub register_client {
-
- print "*** Registering client ***\n";
- &__isns_register_client(@_);
-}
-
-sub __isns_query_objects {
-
- local($client_config, @extra_args) = @_;
- my @args;
-
- push(@args, "--query");
- push(@args, @extra_args) if (@extra_args);
-
- return &run_client($client_config, @args);
-}
-
-sub isns_query_objects {
-
- local($client, @args) = @_;
-
- &isns_stage("query", "Querying " . join(' ', @args));
- &__isns_query_objects($client, @args);
- &verify_response($__isns_stage_name, $client);
-}
-
-sub query_objects {
-
- print "*** Querying objects ***\n";
- __isns_query_objects(@_);
-}
-
-sub isns_query_eid {
-
- local($client_config, @extra_args) = @_;
- my $logfile;
- my @args;
- local($eid);
-
- push(@args, "--query-eid");
- push(@args, @extra_args) if (@extra_args);
-
- &isns_info("*** Querying for EID ***\n");
- $logfile = &run_client($client_config, @args);
-
- if ($logfile) {
- $eid = `cat $logfile`;
- unless ($eid) {
- &isns_fail("Server reports empty EID");
- }
- chop($eid);
- }
-
- return $eid;
-}
-
-sub __isns_unregister_client {
-
- local($client_config, @extra_args) = @_;
- my @args;
-
- push(@args, "--deregister");
- push(@args, @extra_args) if (@extra_args);
-
- &run_client($client_config, @args);
-}
-
-sub isns_unregister_client {
-
- my $stage = 0;
- my $client;
- my $server;
- my $eid;
-
- if ($_[0] =~ m/^\d/o) {
- &isns_stage(shift(@_), "Unregister client");
- } else {
- &isns_stage("unregistration", "Unregister client");
- }
-
- $client = shift(@_);
-
- unless (@_) {
- $eid = &isns_query_eid($client);
- push(@_, "eid=$eid");
- }
-
- &__isns_unregister_client($client, @_);
-
- $server = $__isns_data{$client,"server_config"};
- &verify_db($__isns_stage_name, $server);
-}
-
-sub unregister_client {
-
- &isns_info("*** Unregistering client ***\n");
- &__isns_unregister_client(@_);
-}
-
-sub __isns_register_domain {
-
- local($client_config, @extra_args) = @_;
- my @args;
-
- push(@args, "--local --dd-register");
- push(@args, @extra_args) if (@extra_args);
-
- &run_client($client_config, @args);
-}
-
-sub isns_register_domain {
-
- local($client, @args) = @_;
- my $server;
-
- &isns_stage("dd-registration", "Registering DD " . join(' ', @args));
- &__isns_register_domain($client, @args);
-
- $server = $__isns_data{$client,"server_config"};
- &isns_verify_db($server);
-}
-
-sub register_domain {
-
- &isns_info("*** Registering DD ***\n");
- &__isns_register_domain(@_);
-}
-
-sub __isns_deregister_domain {
-
- local($client_config, @extra_args) = @_;
- my @args;
-
- push(@args, "--local --dd-deregister");
- push(@args, @extra_args) if (@extra_args);
-
- &run_client($client_config, @args);
-}
-
-sub isns_deregister_domain {
-
- local($client, @args) = @_;
- my $server;
-
- &isns_stage("dd-deregistration", "Deregistering DD (members)" . join(' ', @args));
- &__isns_deregister_domain($client, @args);
-
- $server = $__isns_data{$client,"server_config"};
- &isns_verify_db($server);
-}
-
-sub isns_external_test {
-
- local($client, @args) = @_;
- my $logfile;
- my $stage;
- my $cmd;
-
- $logfile = &get_logfile($client);
-
- $cmd = shift(@args);
- $stage = $cmd;
- $stage =~ s:.*/::o;
-
- $cmd = "${__isns_bin}/$cmd -c $client " . join(' ', @args);
-
- &isns_stage($stage, "Running external $cmd " . join(' ', @args));
- unless (&run_command("$cmd >$logfile")) {
- return undef;
- }
-
- $server = $__isns_data{$client,"server_config"};
- &isns_verify_db($server);
-}
-
-sub __isns_prep_test {
-
- local($name, $duration, @ARGV) = @_;
-
- GetOptions('verbose+' => \$__isns_verbose,
- "quiet" => \$__isns_quiet,
- "fast" => \$__isns_quick,
- "insecure" => \$__isns_insecure);
- $__isns_verbose = 0 if ($__isns_quiet);
- $__isns_security = 0 if ($__isns_insecure);
-
- if ($__isns_quick && $duration > 15) {
- print "*** Skipping $name (duration ~ $duration seconds) ***\n";
- exit(0);
- }
-
- print "*** Starting $name ***\n";
- printf "*** This test case will take about %u sec ***\n", $duration
- if ($duration);
- $__isns_test_name = $name;
- $__isns_test_dir = "$__isns_test_base/$name";
- $__isns_test_dump = "$__isns_test_dir/dump";
- $__isns_test_data = "data/$name";
-
- # Be careful when removing test dir
- system "rm -rf $__isns_test_dir" if ($__isns_test_dir =~ m:/tmp/:o);
-
- mkdir $__isns_test_base, 0700;
- mkdir $__isns_test_dir, 0700;
- mkdir $__isns_test_dump, 0700;
-}
-
-sub test_prep {
-
- local($name, @args) = @_;
-
- __isns_prep_test($name, 0, @args);
-}
-
-sub isns_prep_slow_test {
-
- __isns_prep_test(@_);
-}
-
-# Sleep for a few seconds, giving the user some dots to keep
-# him occupied.
-sub isns_idle {
-
- local($time) = @_;
-
- if ($__isns_verbose == 0) {
- sleep $time;
- return;
- }
-
- $| = 1;
- print "Snooze";
- while ($time--) {
- print ".";
- sleep 1;
- }
- print "\n";
- $| = 0;
-}
-
-sub main {
-
- my $server_config;
- my $client_config;
-
- &test_prep;
-
- $server_config = &create_server;
- $client_config = &create_client($server_config);
-}
-
-#&main;
-1;
diff --git a/utils/open-isns/tests/pauw1.c b/utils/open-isns/tests/pauw1.c
deleted file mode 100644
index c3e66f7..0000000
--- a/utils/open-isns/tests/pauw1.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * Test case, captured from a Wasabi Storage Builder
- * registering itself.
- */
-#include <getopt.h>
-#include <isns.h>
-#include <paths.h>
-#include <util.h>
-#include <message.h>
-
-int
-main(int argc, char **argv)
-{
- const char *opt_configfile = ISNS_DEFAULT_ISNSADM_CONFIG;
- isns_client_t *clnt;
- isns_attr_list_t *attrs;
- isns_simple_t *reg;
- isns_portal_info_t portal_info;
- uint32_t status;
- int c;
-
- while ((c = getopt(argc, argv, "c:d:")) != -1) {
- switch (c) {
- case 'c':
- opt_configfile = optarg;
- break;
-
- case 'd':
- isns_enable_debugging(optarg);
- break;
-
- default:
- isns_fatal("Unknown option\n");
- }
- }
-
- isns_read_config(opt_configfile);
- isns_assign_string(&isns_config.ic_source_name,
- "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0");
-
- clnt = isns_create_default_client(NULL);
-
- reg = isns_simple_create(ISNS_DEVICE_ATTRIBUTE_REGISTER,
- clnt->ic_source, NULL);
-
- attrs = &reg->is_operating_attrs;
-
-#define ADD(type, tag, value) \
- isns_attr_list_append_##type(attrs, ISNS_TAG_##tag, value)
-#define STR(tag, value) ADD(string, tag, value)
-#define U32(tag, value) ADD(uint32, tag, value)
-#define NIL(tag) isns_attr_list_append_nil(attrs, ISNS_TAG_##tag)
-#define TARGET(name, alias, auth) \
- STR(ISCSI_NAME, name); \
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK); \
- STR(ISCSI_ALIAS, alias); \
- STR(ISCSI_AUTHMETHOD, auth)
-
- STR(ENTITY_IDENTIFIER, "cyan.pauw.homeunix.net");
- U32(ENTITY_PROTOCOL, 2);
- U32(REGISTRATION_PERIOD, 31536000);
-
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0",
- "Test (10 GB)",
- "None");
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1",
- "160 GB disk (ntfs)",
- "None");
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2",
- "160 GB disk (ext3)",
- "CHAP");
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3",
- "Test (1 GB)",
- "None");
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4",
- "Test (40 GB)",
- "CHAP");
- TARGET("iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5",
- "test",
- "None");
-
- isns_portal_parse(&portal_info, "10.0.0.1:3260/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- /* Mumbo jumbo encoding of portal groups */
- U32(PG_TAG, 1);
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0");
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1");
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2");
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3");
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4");
- STR(PG_ISCSI_NAME, "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5");
-
- /* Strictly speaking, a PGT not followed by any data is invalid.
- *
- * 5.6.5.1.
- * When a Portal is registered, the Portal attributes MAY
- * immediately be followed by a PGT attribute. The PGT attribute
- * SHALL be followed by the set of PG iSCSI Names representing
- * nodes that will be associated to the Portal using the indicated
- * PGT value.
- */
- NIL(PG_TAG);
-
- isns_simple_print(reg, isns_print_stdout);
-
- status = isns_client_call(clnt, &reg);
-
- if (status != ISNS_SUCCESS)
- isns_fatal("Unable to register object: %s\n",
- isns_strerror(status));
-
- printf("Successfully registered object(s)\n");
- isns_simple_print(reg, isns_print_stdout);
-
- return 0;
-}
-
-/*
- Creating file DB backend (/var/lib/isns)
- DB: loading all objects from /var/lib/isns
- Next ESI message in 3600 seconds
- Incoming PDU xid=0001 seq=0 len=1208 func=DevAttrReg client first last
- Next message xid=0001
- Received message
- ---DevAttrReg---
- Source:
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0"
- Message attributes: <empty list>
- Operating attributes:
- 0001 string : Entity identifier = "cyan.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0006 uint32 : Registration Period = 31536000
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (10 GB)"
- 002a string : iSCSI auth method = "None"
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "160 GB disk (ntfs)"
- 002a string : iSCSI auth method = "None"
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "160 GB disk (ext3)"
- 002a string : iSCSI auth method = "CHAP"
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (1 GB)"
- 002a string : iSCSI auth method = "None"
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "Test (40 GB)"
- 002a string : iSCSI auth method = "CHAP"
- 0020 string : iSCSI name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5"
- 0021 uint32 : iSCSI node type = Target
- 0022 string : iSCSI alias = "test"
- 002a string : iSCSI auth method = "None"
- 0010 ipaddr : Portal IP address = 10.0.0.1
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0033 uint32 : Portal group tag = 1
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0"
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-1"
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-2"
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-3"
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-4"
- 0030 string : Portal group name = "iqn.2000-05.com.wasabisystems.storagebuilder:cyan-5"
- 0033 nil : Portal group tag = <empty>
- :: policy insecure function DevAttrReg (0001) permitted
- :: policy insecure source
-iqn.2000-05.com.wasabisystems.storagebuilder:cyan-0 permitted
- :: policy insecure operation DevAttrReg on Network Entity object
-permitted
- DB: Storing object 00000001 -> /var/lib/isns/00000001
- DB: added object 1 (Network Entity) state 1
-Segmentation fault
- */
diff --git a/utils/open-isns/tests/pauw2.c b/utils/open-isns/tests/pauw2.c
deleted file mode 100644
index 29084b3..0000000
--- a/utils/open-isns/tests/pauw2.c
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * Test case, captured from iscsi-target
- * registering itself.
- */
-#include <getopt.h>
-#include <isns.h>
-#include <paths.h>
-#include <util.h>
-#include <message.h>
-
-#define ADD(type, tag, value) \
- isns_attr_list_append_##type(attrs, ISNS_TAG_##tag, value)
-#define STR(tag, value) ADD(string, tag, value)
-#define U32(tag, value) ADD(uint32, tag, value)
-#define NIL(tag) isns_attr_list_append_nil(attrs, ISNS_TAG_##tag)
-#define TARGET(name, alias, auth) \
- STR(ISCSI_NAME, name); \
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK); \
- STR(ISCSI_ALIAS, alias); \
- STR(ISCSI_AUTHMETHOD, auth)
-
-int
-main(int argc, char **argv)
-{
- const char *opt_configfile = ISNS_DEFAULT_ISNSADM_CONFIG;
- isns_client_t *clnt;
- isns_attr_list_t *attrs;
- isns_simple_t *reg;
- isns_portal_info_t portal_info;
- uint32_t status;
- int c;
-
- while ((c = getopt(argc, argv, "c:d:")) != -1) {
- switch (c) {
- case 'c':
- opt_configfile = optarg;
- break;
-
- case 'd':
- isns_enable_debugging(optarg);
- break;
-
- default:
- isns_fatal("Unknown option\n");
- }
- }
-
- isns_read_config(opt_configfile);
-
- /*
- ---DevAttrReg[REPLACE]---
- Source:
- 0020 string : iSCSI name = "iqn.2007-03.com.example:stgt.disk"
- Message attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- Operating attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 3260/tcp
- 0017 uint32 : SCN port = 42138/tcp
- 0020 string : iSCSI name = "iqn.2007-03.com.example:stgt.disk"
- 0021 uint32 : iSCSI node type = Target
- */
- isns_assign_string(&isns_config.ic_source_name,
- "iqn.2007-03.com.example:stgt.disk");
-
- clnt = isns_create_default_client(NULL);
- reg = isns_simple_create(ISNS_DEVICE_ATTRIBUTE_REGISTER,
- clnt->ic_source, NULL);
- reg->is_replace = 1;
-
- /* Message attributes */
- attrs = &reg->is_message_attrs;
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
-
- /* Operating attributes */
- attrs = &reg->is_operating_attrs;
-
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
- U32(ENTITY_PROTOCOL, 2);
-
- isns_portal_parse(&portal_info, "192.168.1.2:3260/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- U32(SCN_PORT, 42138);
- STR(ISCSI_NAME, "iqn.2007-03.com.example:stgt.disk");
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK);
- isns_simple_print(reg, isns_print_stdout);
-
- status = isns_client_call(clnt, &reg);
-
- if (status != ISNS_SUCCESS)
- isns_fatal("Unable to register object: %s\n",
- isns_strerror(status));
-
- printf("Successfully registered object #1\n");
- // isns_simple_print(reg, isns_print_stdout);
- isns_simple_free(reg);
- isns_client_destroy(clnt);
-
- /*
- ---DevAttrReg[REPLACE]---
- Source:
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- Message attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- Operating attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0014 uint32 : ESI port = 56288/tcp
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
-
- [...]
- response status 0x0003 (Invalid registration)
-
- This would fail because we got confused about EID in
- the replace case.
- */
- isns_assign_string(&isns_config.ic_source_name,
- "iqn.2005-03.org.open-iscsi:blue");
-
- clnt = isns_create_default_client(NULL);
- reg = isns_simple_create(ISNS_DEVICE_ATTRIBUTE_REGISTER,
- clnt->ic_source, NULL);
- reg->is_replace = 1;
-
- /* Message attributes */
- attrs = &reg->is_message_attrs;
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
-
- /* Operating attributes */
- attrs = &reg->is_operating_attrs;
-
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
- U32(ENTITY_PROTOCOL, 2);
-
- isns_portal_parse(&portal_info, "192.168.1.2:33849/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- U32(ESI_PORT, 56288);
- STR(ISCSI_NAME, "iqn.2005-03.org.open-iscsi:blue");
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_INITIATOR_MASK);
- STR(ISCSI_ALIAS, "blue.pauw.homeunix.net");
- isns_simple_print(reg, isns_print_stdout);
-
- status = isns_client_call(clnt, &reg);
-
- if (status != ISNS_SUCCESS)
- isns_fatal("Unable to register object: %s\n",
- isns_strerror(status));
-
- printf("Successfully registered object #2\n");
- // isns_simple_print(reg, isns_print_stdout);
- isns_simple_free(reg);
- isns_client_destroy(clnt);
-
- return 0;
-}
-
-/*
- Creating file DB backend (/var/lib/isns)
- DB: loading all objects from /var/lib/isns
- Next ESI message in 3600 seconds
- Incoming PDU xid=0001 seq=0 len=232 func=DevAttrReg client first last
- Next message xid=0001
- Received message
-
- :: policy insecure function DevAttrReg (0001) permitted
- :: policy insecure source iqn.2005-03.org.open-iscsi:blue permitted
- :: policy insecure operation DevAttrReg on object 00000001 (Network
-Entity) permitted
- Replacing Network Entity (id 1)
- DB: removed object 2 (Portal)
- DB: removed object 4 (iSCSI Portal Group)
- DB: removed object 3 (iSCSI Storage Node)
- DB: removed object 1 (Network Entity)
- DB: destroying object 2 (Portal)
- DB: Purging object 2 (/var/lib/isns/00000002)
- DB: destroying object 1 (Network Entity)
- DB: Purging object 1 (/var/lib/isns/00000001)
- DB: destroying object 3 (iSCSI Storage Node)
- DB: Purging object 3 (/var/lib/isns/00000003)
- DB: destroying object 4 (iSCSI Portal Group)
- DB: Purging object 4 (/var/lib/isns/00000004)
- :: policy insecure entity ID blue.pauw.homeunix.net permitted
- :: policy insecure operation DevAttrReg on Network Entity object
-permitted
- DB: Storing object 5 -> /var/lib/isns/00000005
- DB: added object 5 (Network Entity) state 1
- DB: Storing object 5 -> /var/lib/isns/00000005
- isns_esi_callback(0x9dee788, 0x10)
- Deleting SCN registration for iqn.2007-03.com.example:stgt.disk
- isns_esi_callback(0x9deeae0, 0x10)
- isns_esi_callback(0x9deea30, 0x10)
- isns_esi_callback(0x9deec80, 0x10)
- SCN multicast <iSCSI Storage Node 3, removed>
- isns_scn_callback(0x9deec80, 0x10)
- isns_esi_callback(0x9def4b0, 0xc)
- Enable ESI monitoring for entity 5
-
- */
diff --git a/utils/open-isns/tests/pauw3.c b/utils/open-isns/tests/pauw3.c
deleted file mode 100644
index 3be0baa..0000000
--- a/utils/open-isns/tests/pauw3.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * This tests another problem reported by Albert, where a
- * re-registration shortly before ESI expiry would fail
- * to resurrect the registration properly.
- *
- * Usage:
- * pauw3 [options] timeout
- *
- * Where timeout is the delay until we try to re-register
- */
-
-#include <getopt.h>
-#include <unistd.h>
-
-#include <isns.h>
-#include <paths.h>
-#include <util.h>
-#include <message.h>
-
-#define ADD(type, tag, value) \
- isns_attr_list_append_##type(attrs, ISNS_TAG_##tag, value)
-#define STR(tag, value) ADD(string, tag, value)
-#define U32(tag, value) ADD(uint32, tag, value)
-#define NIL(tag) isns_attr_list_append_nil(attrs, ISNS_TAG_##tag)
-#define TARGET(name, alias, auth) \
- STR(ISCSI_NAME, name); \
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK); \
- STR(ISCSI_ALIAS, alias); \
- STR(ISCSI_AUTHMETHOD, auth)
-
-int
-main(int argc, char **argv)
-{
- const char *opt_configfile = ISNS_DEFAULT_ISNSADM_CONFIG;
- isns_client_t *clnt;
- isns_attr_list_t *attrs;
- isns_simple_t *reg;
- isns_portal_info_t portal_info;
- uint32_t status;
- int opt_replace = 1;
- int c, n, timeout;
-
- while ((c = getopt(argc, argv, "c:d:n")) != -1) {
- switch (c) {
- case 'c':
- opt_configfile = optarg;
- break;
-
- case 'd':
- isns_enable_debugging(optarg);
- break;
-
- case 'n':
- opt_replace = 0;
- break;
-
- default:
- isns_fatal("Unknown option\n");
- }
- }
-
- if (optind != argc - 1)
- isns_fatal("Need timeout argument\n");
- timeout = parse_timeout(argv[optind]);
-
- isns_read_config(opt_configfile);
-
- /*
- ---DevAttrReg[REPLACE]---
- Source:
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- Message attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- Operating attributes:
- 0001 string : Entity identifier = "blue.pauw.homeunix.net"
- 0002 uint32 : Entity protocol = iSCSI (2)
- 0010 ipaddr : Portal IP address = 192.168.1.2
- 0011 uint32 : Portal TCP/UDP port = 33849/tcp
- 0014 uint32 : ESI port = 56288/tcp
- 0020 string : iSCSI name = "iqn.2005-03.org.open-iscsi:blue"
- 0021 uint32 : iSCSI node type = Initiator
- 0022 string : iSCSI alias = "blue.pauw.homeunix.net"
-
- [...]
- response status 0x0003 (Invalid registration)
-
- This would fail because we got confused about EID in
- the replace case.
- */
- isns_assign_string(&isns_config.ic_source_name,
- "iqn.2005-03.org.open-iscsi:blue");
-
- for (n = 0; n < 2; ++n) {
- clnt = isns_create_default_client(NULL);
- reg = isns_simple_create(ISNS_DEVICE_ATTRIBUTE_REGISTER,
- clnt->ic_source, NULL);
- reg->is_replace = opt_replace;
-
- /* Message attributes */
- attrs = &reg->is_message_attrs;
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
-
- /* Operating attributes */
- attrs = &reg->is_operating_attrs;
-
- STR(ENTITY_IDENTIFIER, "blue.pauw.homeunix.net");
- U32(ENTITY_PROTOCOL, 2);
-
- isns_portal_parse(&portal_info, "192.168.1.2:33849/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- U32(ESI_PORT, 56288);
- STR(ISCSI_NAME, "iqn.2005-03.org.open-iscsi:blue");
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_INITIATOR_MASK);
- STR(ISCSI_ALIAS, "blue.pauw.homeunix.net");
- isns_simple_print(reg, isns_print_stdout);
-
- status = isns_client_call(clnt, &reg);
-
- if (status != ISNS_SUCCESS)
- isns_fatal("Unable to register object: %s\n",
- isns_strerror(status));
-
- printf("Successfully registered object\n");
- // isns_simple_print(reg, isns_print_stdout);
- isns_simple_free(reg);
- isns_client_destroy(clnt);
-
- if (n == 0) {
- printf("Sleeping for %d seconds\n", timeout);
- sleep(timeout);
- }
- }
-
- return 0;
-}
diff --git a/utils/open-isns/tests/pauw4.c b/utils/open-isns/tests/pauw4.c
deleted file mode 100644
index 9510ddd..0000000
--- a/utils/open-isns/tests/pauw4.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Test MS initiator registration.
- * The oddity about this is that the PG object precedes the
- * initiator object in the message.
- */
-
-#include <getopt.h>
-#include <unistd.h>
-
-#include <isns.h>
-#include <paths.h>
-#include <util.h>
-#include <message.h>
-
-#define ADD(type, tag, value) \
- isns_attr_list_append_##type(attrs, ISNS_TAG_##tag, value)
-#define STR(tag, value) ADD(string, tag, value)
-#define U32(tag, value) ADD(uint32, tag, value)
-#define NIL(tag) isns_attr_list_append_nil(attrs, ISNS_TAG_##tag)
-#define TARGET(name, alias, auth) \
- STR(ISCSI_NAME, name); \
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK); \
- STR(ISCSI_ALIAS, alias); \
- STR(ISCSI_AUTHMETHOD, auth)
-
-int
-main(int argc, char **argv)
-{
- const char *opt_configfile = ISNS_DEFAULT_ISNSADM_CONFIG;
- isns_client_t *clnt;
- isns_attr_list_t *attrs;
- isns_simple_t *reg;
- isns_portal_info_t portal_info;
- uint32_t status;
- int opt_replace = 1;
- int c;
-
- while ((c = getopt(argc, argv, "c:d:n")) != -1) {
- switch (c) {
- case 'c':
- opt_configfile = optarg;
- break;
-
- case 'd':
- isns_enable_debugging(optarg);
- break;
-
- case 'n':
- opt_replace = 0;
- break;
-
- default:
- isns_fatal("Unknown option\n");
- }
- }
-
- isns_read_config(opt_configfile);
-
- isns_assign_string(&isns_config.ic_source_name,
- "iqn.1991-05.com.microsoft:orange");
-
- clnt = isns_create_default_client(NULL);
-
- reg = isns_simple_create(ISNS_SCN_DEREGISTER, clnt->ic_source, NULL);
-
- /* Message attributes */
- attrs = &reg->is_message_attrs;
- STR(ISCSI_NAME, "iqn.1991-05.com.microsoft:orange");
-
- status = isns_client_call(clnt, &reg);
- if (status != ISNS_SUCCESS)
- isns_error("SCNDereg failed: %s\n", isns_strerror(status));
- isns_simple_free(reg);
-
-
- reg = isns_simple_create(ISNS_DEVICE_DEREGISTER, clnt->ic_source, NULL);
-
- attrs = &reg->is_operating_attrs;
- STR(ENTITY_IDENTIFIER, "troopa.nki.nl");
- U32(ENTITY_PROTOCOL, 2);
-
- isns_portal_parse(&portal_info, "192.168.1.40:3229/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- STR(ISCSI_NAME, "iqn.1991-05.com.microsoft:orange");
-
- status = isns_client_call(clnt, &reg);
- if (status != ISNS_SUCCESS)
- isns_fatal("DevDereg failed: %s\n", isns_strerror(status));
- isns_simple_free(reg);
-
- reg = isns_simple_create(ISNS_DEVICE_ATTRIBUTE_REGISTER, clnt->ic_source, NULL);
- reg->is_replace = opt_replace;
-
- attrs = &reg->is_operating_attrs;
- STR(ENTITY_IDENTIFIER, "troopa.nki.nl");
- U32(ENTITY_PROTOCOL, 2);
-
- isns_portal_parse(&portal_info, "192.168.1.40:3229/tcp", NULL);
- isns_portal_to_attr_list(&portal_info,
- ISNS_TAG_PORTAL_IP_ADDRESS,
- ISNS_TAG_PORTAL_TCP_UDP_PORT,
- attrs);
-
- U32(SCN_PORT, 3230);
- U32(ESI_PORT, 3230);
-
- U32(PG_TAG, 1);
- STR(PG_ISCSI_NAME, "iqn.1991-05.com.microsoft:orange");
-
- STR(ISCSI_NAME, "iqn.1991-05.com.microsoft:orange");
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_INITIATOR_MASK);
- STR(ISCSI_ALIAS, "<MS SW iSCSI Initiator>");
-
- status = isns_client_call(clnt, &reg);
- if (status != ISNS_SUCCESS)
- isns_fatal("DevAttrReg failed: %s\n", isns_strerror(status));
- isns_simple_free(reg);
-
- reg = isns_simple_create(ISNS_DEVICE_GET_NEXT, clnt->ic_source, NULL);
- attrs = &reg->is_message_attrs;
- NIL(ISCSI_NAME);
-
- attrs = &reg->is_operating_attrs;
- U32(ISCSI_NODE_TYPE, ISNS_ISCSI_TARGET_MASK);
- NIL(ISCSI_NODE_TYPE);
-
- status = isns_client_call(clnt, &reg);
- if (status != ISNS_SUCCESS)
- isns_fatal("DevGetNext failed: %s\n", isns_strerror(status));
- isns_simple_free(reg);
-
- return 0;
-}
diff --git a/utils/open-isns/tests/server.conf b/utils/open-isns/tests/server.conf
deleted file mode 100644
index fc0bb5a..0000000
--- a/utils/open-isns/tests/server.conf
+++ /dev/null
@@ -1,11 +0,0 @@
-BindAddress = @SERVER_ADDRESS@
-SourceName = @SOURCE_NAME@
-Database = @DB_PATH@
-RegistrationPeriod = 2h
-ESIMinInterval = 1m
-ESIMinInterval = 5m
-Security = @NOT_SET@
-AuthKeyFile = @AUTH_KEY@
-ClientKeyStore = DB:
-PIDFile = @MYDIR@/pid
-ControlSocket = @MYDIR@/control
diff --git a/utils/open-isns/tests/test01.pl b/utils/open-isns/tests/test01.pl
deleted file mode 100644
index 258acff..0000000
--- a/utils/open-isns/tests/test01.pl
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# single client.
-
-push(@INC, ".");
-require "harness.pl";
-
-&test_prep("test01", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-# 1: Enroll the test client
-&isns_enroll_client($client);
-
-# 2: Register an initiator with default portal
-&isns_register_client($client, "initiator portal");
-
-# 3: Run a simple query
-&isns_query_objects($client, "eid");
-
-# 99: Unregister client
-&isns_unregister_client("99-unregistration", $client);
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test02.pl b/utils/open-isns/tests/test02.pl
deleted file mode 100644
index 208bed5..0000000
--- a/utils/open-isns/tests/test02.pl
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# two clients, and simple DD functionality.
-
-push(@INC, ".");
-require "harness.pl";
-
-&test_prep("test02", @ARGV);
-
-$server = &create_server;
-$client1 = &create_client($server, "127.1.0.1");
-$client2 = &create_client($server, "127.1.0.2");
-
-&isns_start_server($server);
-
-# 1: Enroll the client1
-&isns_enroll_client($client1);
-
-# 2: Enroll the client1
-&isns_enroll_client($client2, "node-type=target");
-
-&isns_stage("registration", "Registering both clients");
-&__isns_register_client($client1, "initiator portal");
-&__isns_register_client($client2, "target portal");
-&isns_verify_db($server);
-
-# Now each of the two clients should just see
-# itself
-&isns_query_objects($client1, "eid");
-&isns_query_objects($client2, "eid");
-
-# Register a DD linking the two nodes
-&isns_register_domain($client1, "member-name=isns.client1", "member-name=isns.client2");
-
-# Now the clients should see each other
-&isns_query_objects($client1, "eid");
-&isns_query_objects($client2, "eid");
-
-# Initiator querying for target:
-&isns_query_objects($client1, "iscsi-node-type=Target");
-
-# Add another member to this DD, and re-add client2 (making
-# sure the server doesn't generate dupes)
-&isns_register_domain($client1, "dd-id=1", "member-name=isns.client2", "member-name=iqn.com.foobar:disk1");
-
-# Query the list of DDs we're a member of
-&isns_query_objects($client1, "dd-id");
-
-# Remove some entries from the DD
-&isns_deregister_domain($client1, "1", "member-iscsi-idx=10");
-&isns_deregister_domain($client1, "1", "member-name=iqn.com.foobar:disk1");
-&isns_register_domain($client1, "dd-id=1", "member-name=isns.client2");
-&isns_deregister_domain($client1, "1");
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test03.pl b/utils/open-isns/tests/test03.pl
deleted file mode 100644
index 3cc0d71..0000000
--- a/utils/open-isns/tests/test03.pl
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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;
diff --git a/utils/open-isns/tests/test04.pl b/utils/open-isns/tests/test04.pl
deleted file mode 100644
index 8181a4e..0000000
--- a/utils/open-isns/tests/test04.pl
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case verifies that the database remains intact
-# across server restarts.
-
-push(@INC, ".");
-require "harness.pl";
-
-&test_prep("test04", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_enroll_client($client);
-&isns_register_client($client, "initiator portal");
-
-# Restart the server, and make sure it still displays
-# the database properly
-&isns_stage("restart", "Restarting server process");
-&isns_restart_server($server);
-&isns_verify_db($server);
-
-# Run a simple query
-&isns_query_objects($client, "iscsi-name");
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test05.pl b/utils/open-isns/tests/test05.pl
deleted file mode 100644
index 694d7c3..0000000
--- a/utils/open-isns/tests/test05.pl
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case verifies entity expiry
-
-push(@INC, ".");
-require "harness.pl";
-
-&isns_prep_slow_test("test05", 30, @ARGV);
-
-$server = &create_server({ "RegistrationPeriod" => "20s" });
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_enroll_client($client);
-&isns_register_client($client, "initiator portal");
-
-&isns_stage("expired", "Waiting for registration period to expire (25s)");
-&isns_idle(25);
-&isns_verify_db($server);
-
-&isns_finish;
-
diff --git a/utils/open-isns/tests/test06.pl b/utils/open-isns/tests/test06.pl
deleted file mode 100644
index 6b6aa05..0000000
--- a/utils/open-isns/tests/test06.pl
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates DevAttrReg replace mode.
-
-push(@INC, ".");
-require "harness.pl";
-
-&test_prep("test06", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-# 1: Enroll the client
-&isns_enroll_client($client);
-
-# 2: Register a simple initiator with one portal
-&isns_register_client($client, "initiator portal");
-
-$eid = &isns_query_eid($client);
-unless ($eid) {
- &isns_die("Cannot obtain entity ID");
-}
-
-# Now replace the portal with different values
-&isns_register_client($client, "--replace entity=$eid initiator portal=192.168.1.1:iscsi");
-&isns_register_client($client, "--replace entity=$eid initiator portal=192.168.1.2:iscsi");
-
-&isns_register_domain($client, "member-name=isns.client1");
-
-# Replace our registration once more. Now the object index of the
-# initiator should not change, since it's a domain member now.
-&isns_register_client($client, "--replace entity=$eid initiator portal=192.168.1.1:iscsi");
-
-# Make the portal a domain member too. Now even the portal index should stay
-# the same. Note that we do not replace the whole entity now, but just the
-# portal
-&isns_register_domain($client, "dd-id=1 member-addr=192.168.1.1 member-port=860");
-&isns_register_client($client, "--replace --key portal=192.168.1.1:iscsi portal=192.168.1.2:iscsi");
-&isns_register_client($client, "--replace --key portal=192.168.1.2:iscsi portal=192.168.1.1:iscsi");
-
-# Now unregister the whole client, and re-register.
-# Portal and client index should remain the same
-&isns_unregister_client($client, "eid=$eid");
-&isns_register_client($client, "initiator portal=192.168.1.1:iscsi");
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test07.pl b/utils/open-isns/tests/test07.pl
deleted file mode 100644
index c13df11..0000000
--- a/utils/open-isns/tests/test07.pl
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates that the server discards portals
-# that do not respond to ESI messages
-
-push(@INC, ".");
-require "harness.pl";
-
-&isns_prep_slow_test("test07", 30, @ARGV);
-
-$server = &create_server({ "ESIMinInterval" => "5s" });
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-# 1: Enroll the client
-&isns_enroll_client($client);
-
-# 2: Register a simple initiator with one portal
-&isns_register_client($client, "initiator portal,esi-port=65535,esi-interval=5");
-
-&isns_stage("expired", "Waiting for ESI to expire (~15 sec)");
-&isns_idle(15);
-&isns_verify_db($server);
-
-# 3: Register a simple initiator with two portals, one with ESI and one without.
-# When the ESI monitored portal expires, this should still take down
-# the whole network entity.
-&isns_register_client($client, "initiator portal,esi-port=65535,esi-interval=5 portal=127.0.0.1:1");
-
-&isns_stage("expired", "Waiting for ESI to expire (~15 sec)");
-&isns_idle(15);
-&isns_verify_db($server);
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test08.pl b/utils/open-isns/tests/test08.pl
deleted file mode 100644
index 1487532..0000000
--- a/utils/open-isns/tests/test08.pl
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# single client.
-
-push(@INC, ".");
-require "harness.pl";
-
-# For now, this one will run w/o security only
-push(@ARGV, '-i');
-
-&test_prep("test08", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_external_test($client, "tests/pauw1");
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test09.pl b/utils/open-isns/tests/test09.pl
deleted file mode 100644
index bd2bd7f..0000000
--- a/utils/open-isns/tests/test09.pl
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# single client.
-
-push(@INC, ".");
-require "harness.pl";
-
-# For now, this one will run w/o security only
-push(@ARGV, '-i');
-
-&test_prep("test09", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_external_test($client, "tests/pauw2");
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test10.pl b/utils/open-isns/tests/test10.pl
deleted file mode 100644
index 7286521..0000000
--- a/utils/open-isns/tests/test10.pl
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# single client.
-
-push(@INC, ".");
-require "harness.pl";
-
-# For now, this one will run w/o security only
-push(@ARGV, '-i');
-
-&isns_prep_slow_test("test10", 20, @ARGV);
-
-$server = &create_server({ "ESIMinInterval" => "10s" });
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_external_test($client, "tests/pauw3", "16");
-
-&isns_stage("expired", "Waiting for ESI to come around");
-&isns_idle(5);
-&isns_verify_db($server);
-
-&isns_external_test($client, "tests/pauw3", "-n", "16");
-
-&isns_stage("expired", "Waiting for ESI to come around");
-&isns_idle(5);
-&isns_verify_db($server);
-
-&isns_finish;
diff --git a/utils/open-isns/tests/test11.pl b/utils/open-isns/tests/test11.pl
deleted file mode 100644
index 2745955..0000000
--- a/utils/open-isns/tests/test11.pl
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
-#
-# This test case validates registration and simple query of
-# single client.
-
-push(@INC, ".");
-require "harness.pl";
-
-# For now, this one will run w/o security only
-push(@ARGV, '-i');
-
-&test_prep("test11", @ARGV);
-
-$server = &create_server;
-$client = &create_client($server);
-
-&isns_start_server($server);
-
-&isns_external_test($client, "tests/pauw4");
-
-&isns_finish;