s4:torture:smb2: let smb2.lease.[v2_]complex1 check the R->NONE breaks
authorStefan Metzmacher <metze@samba.org>
Wed, 3 Dec 2014 21:32:33 +0000 (22:32 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 4 Dec 2014 04:45:09 +0000 (05:45 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/lease.c

index 1665586fc309b7cda6b95850e9332bb36d16fe8a..9d14aeb8096cde71783c996acd1e2474d9d8d6a8 100644 (file)
@@ -3040,12 +3040,12 @@ static bool test_lease_complex1(struct torture_context *tctx,
        CHECK_STATUS(status, NT_STATUS_OK);
 
        /* Contend with LEASE2. */
-       smb2_lease_create(&io2, &ls2, false, fname, LEASE2, smb2_util_lease_state("RHW"));
+       smb2_lease_create(&io2, &ls2, false, fname, LEASE2, smb2_util_lease_state("R"));
        status = smb2_create(tree1b, mem_ctx, &io2);
        CHECK_STATUS(status, NT_STATUS_OK);
        h3 = io2.out.file.handle;
        CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-       CHECK_LEASE(&io2, "RH", true, LEASE2, 0);
+       CHECK_LEASE(&io2, "R", true, LEASE2, 0);
 
        /* Verify that we were only sent one break. */
        CHECK_BREAK_INFO("RHW", "RH", LEASE1);
@@ -3073,7 +3073,7 @@ static bool test_lease_complex1(struct torture_context *tctx,
        CHECK_STATUS(status, NT_STATUS_OK);
 
        ls2.lease_epoch += 1;
-       CHECK_BREAK_INFO("RH", "", LEASE2);
+       CHECK_BREAK_INFO("R", "", LEASE2);
 
        ZERO_STRUCT(break_info);
 
@@ -3178,13 +3178,13 @@ static bool test_lease_v2_complex1(struct torture_context *tctx,
 
        /* Contend with LEASE2. */
        smb2_lease_v2_create(&io2, &ls2, false, fname, LEASE2, NULL,
-                            smb2_util_lease_state("RWH"), 0x11);
+                            smb2_util_lease_state("R"), 0x11);
        status = smb2_create(tree1b, mem_ctx, &io2);
        CHECK_STATUS(status, NT_STATUS_OK);
        h3 = io2.out.file.handle;
        CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
        ls2.lease_epoch += 1;
-       CHECK_LEASE_V2(&io2, "RH", true, LEASE2,
+       CHECK_LEASE_V2(&io2, "R", true, LEASE2,
                       0, 0, ls2.lease_epoch);
 
        /* Verify that we were only sent one break. */
@@ -3217,7 +3217,7 @@ static bool test_lease_v2_complex1(struct torture_context *tctx,
 
        ls2.lease_epoch += 1;
        CHECK_BREAK_INFO_V2(tree1a->session->transport,
-                           "RH", "", LEASE2, ls2.lease_epoch);
+                           "R", "", LEASE2, ls2.lease_epoch);
 
        ZERO_STRUCT(break_info);