]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Check for nonexistent db right after BIND starts (contd.)
authorMukund Sivaraman <muks@isc.org>
Tue, 1 May 2012 00:53:55 +0000 (06:23 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 14 May 2012 17:07:20 +0000 (22:37 +0530)
tests/lettuce/features/example.feature
tests/lettuce/features/xfrin_bind10.feature

index e9ef1f3ae99eeac35688d5476a3426c2664de25f..9b7c2ca27fa50e69064ecd21d2eebb7edf67da93 100644 (file)
@@ -30,8 +30,8 @@ Feature: Example feature
         # that we are sure this file does not exist, see
         # features/terrain/terrain.py
 
-        # Standard check to test (non-)existence of a file
-        # This file is actually automatically
+        # Standard check to test (non-)existence of a file.
+        # This file is actually automatically created.
         The file data/test_nonexistent_db.sqlite3 should not exist
 
         # In the first scenario, we used 'given I have bind10 running', which
index f2a7e8d33e80b26485f107205149be3e8ed05df1..3d6e5d2077ff118288b037c04e81c70a568e4144 100644 (file)
@@ -2,6 +2,8 @@ Feature: Xfrin
     Tests for Xfrin, specific for BIND 10 behaviour.
     
     Scenario: Retransfer command
+    # Standard check to test (non-)existence of a file.
+    # This file is actually automatically created.
     The file data/test_nonexistent_db.sqlite3 should not exist
 
     Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
@@ -18,6 +20,9 @@ Feature: Xfrin
     And wait for bind10 stderr message XFRIN_STARTED
     And wait for bind10 stderr message ZONEMGR_STARTED
 
+    # Now we use the first step again to see if the file has been created
+    The file data/test_nonexistent_db.sqlite3 should exist
+
     A query for www.example.org should have rcode REFUSED
     When I send bind10 the command Xfrin retransfer example.org IN 127.0.0.1 47807
     Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
@@ -30,5 +35,3 @@ Feature: Xfrin
     # containing an NSEC3 RR.
     When I do an AXFR transfer of example.org from 127.0.0.1 47807
     Then transfer result should have 13 rrs
-
-    The file data/test_nonexistent_db.sqlite3 should exist