log: add "log.follow" configuration variable
[gitweb.git] / t / t9818-git-p4-block.sh
index 79765a4a4e120d921f764899887b1657ffe6569c..3b3ae1f59a4d354472ce5042aa192313324cc516 100755 (executable)
@@ -8,6 +8,19 @@ test_expect_success 'start p4d' '
        start_p4d
 '
 
+create_restricted_group() {
+       p4 group -i <<-EOF
+       Group: restricted
+       MaxResults: 7
+       MaxScanRows: 40
+       Users: author
+       EOF
+}
+
+test_expect_success 'Create group with limited maxrows' '
+       create_restricted_group
+'
+
 test_expect_success 'Create a repo with many changes' '
        (
                client_view "//depot/included/... //client/included/..." \
@@ -32,6 +45,10 @@ test_expect_success 'Create a repo with many changes' '
        )
 '
 
+test_expect_success 'Default user cannot fetch changes' '
+       ! p4 changes -m 1 //depot/...
+'
+
 test_expect_success 'Clone the repo' '
        git p4 clone --dest="$git" --changes-block-size=7 --verbose //depot/included@all
 '