github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/cmd/bisync/testdata/test_check_access/scenario.txt (about)

     1  test check-access
     2  # RCLONE_TEST files in the top level and subdir
     3  #
     4  # 1. See that check-access passes with the initial setup.
     5  # 2. Delete the Path2 subdir RCLONE_TEST, run sync. Should fail critical.
     6  # 3. Put the Path2 subdir RCLONE_TEST back, resync.
     7  # 4. Run sync with check-access. Should pass.
     8  # 5. Delete Path1 top level RCLONE_TEST, run sync. Should fail critical.
     9  # 6. Run again. Should fail critical due to missing listings.
    10  # 7. Run resync, which will copy the Path2 top level back to Path1.
    11  # 8. Run sync with check-access. Should pass.
    12  
    13  test initial bisync
    14  bisync resync
    15  
    16  test 1. see that check-access passes with the initial setup
    17  bisync check-access
    18  
    19  test 2. delete the path2 subdir RCLONE_TEST and run sync. should fail critical.
    20  delete-file {path2/}subdir{/}RCLONE_TEST
    21  bisync check-access
    22  copy-listings path2-missing
    23  
    24  test 3. put the path2 subdir RCLONE_TEST back, resync.
    25  copy-file {path1/}subdir/RCLONE_TEST {path2/}
    26  bisync resync
    27  
    28  test 4. run sync with check-access. should pass.
    29  bisync check-access
    30  
    31  test 5. delete path1 top level RCLONE_TEST, run sync. should fail critical.
    32  delete-file {path1/}RCLONE_TEST
    33  bisync check-access
    34  copy-listings path1-missing
    35  
    36  test 6. run again. should fail critical due to missing listings.
    37  bisync check-access
    38  move-listings missing-listings
    39  
    40  test 7. run resync, which will copy the path2 top level back to path1.
    41  bisync resync
    42  
    43  test 8. run sync with --check-access. should pass.
    44  bisync check-access