Search in sources :

Example 1 with ChangePermissionsOfFolder

use of org.syncany.tests.integration.scenarios.framework.ChangePermissionsOfFolder in project syncany by syncany.

the class AllFilePossibilitiesScenarioTest method testAllPossibilities.

@Test
public void testAllPossibilities() throws Exception {
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);
    ClientActions.run(clientA, new Executable() {

        @Override
        public void execute() throws Exception {
        // Nothing.
        }
    }, new AbstractClientAction[] { new CreateFileTree(), new ChangeContentWithoutFileSize(), new ChangeFileSize(), new ChangeLastModifiedDate(), new ChangePermissionsOfFile(), new ChangePermissionsOfFolder(), new ChangeSymlinkTarget(), new ChangeTypeFileToFolder(), new ChangeTypeFileToSymlinkWithNonExistingTarget(), new ChangeTypeFileToSymlinkWithTargetFile(), new ChangeTypeFileToSymlinkWithTargetFolder(), new ChangeTypeSymlinkWithNonExistingTargetToFile(), new ChangeTypeSymlinkWithTargetFileToFile(), new ChangeTypeSymlinkWithTargetFolderToFile(), new ChangeTypeSymlinkWithNonExistingTargetToFolder(), new ChangeTypeSymlinkWithTargetFileToFolder(), new ChangeTypeSymlinkWithTargetFolderToFolder(), new ChangeTypeFolderToFile(), new ChangeTypeFolderToSymlinkWithNonExistingTarget(), new ChangeTypeFolderToSymlinkWithTargetFile(), new ChangeTypeFolderToSymlinkWithTargetFolder(), new CreateFile(), new CreateFolder(), new CreateSymlinkToFile(), new CreateSymlinkToFolder(), new CreateSymlinkToNonExisting(), new DeleteFile(), new DeleteFolder(), new MoveFileToOtherFolder(), new MoveFileWithinFolder(), new MoveFolderToOtherFolder(), new MoveFolderWithinFolder() // new LockFile() and new UnlockFile() are not compatible with these tests
    }, new Executable() {

        @Override
        public void execute() throws Exception {
            clientA.upWithForceChecksum();
            clientB.down();
            assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
            assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
        }
    });
    clientA.deleteTestData();
    clientB.deleteTestData();
}
Also used : ChangeTypeSymlinkWithTargetFolderToFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFolderToFolder) CreateSymlinkToFile(org.syncany.tests.integration.scenarios.framework.CreateSymlinkToFile) ChangeContentWithoutFileSize(org.syncany.tests.integration.scenarios.framework.ChangeContentWithoutFileSize) ChangeTypeFolderToSymlinkWithNonExistingTarget(org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithNonExistingTarget) CreateFile(org.syncany.tests.integration.scenarios.framework.CreateFile) ChangeTypeFileToSymlinkWithTargetFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithTargetFolder) MoveFolderWithinFolder(org.syncany.tests.integration.scenarios.framework.MoveFolderWithinFolder) TestClient(org.syncany.tests.util.TestClient) CreateFileTree(org.syncany.tests.integration.scenarios.framework.CreateFileTree) ChangePermissionsOfFile(org.syncany.tests.integration.scenarios.framework.ChangePermissionsOfFile) ChangePermissionsOfFolder(org.syncany.tests.integration.scenarios.framework.ChangePermissionsOfFolder) ChangeTypeFolderToSymlinkWithTargetFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithTargetFolder) Executable(org.syncany.tests.integration.scenarios.framework.Executable) DeleteFolder(org.syncany.tests.integration.scenarios.framework.DeleteFolder) ChangeTypeFolderToSymlinkWithTargetFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithTargetFile) DeleteFile(org.syncany.tests.integration.scenarios.framework.DeleteFile) ChangeTypeSymlinkWithNonExistingTargetToFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithNonExistingTargetToFile) CreateSymlinkToNonExisting(org.syncany.tests.integration.scenarios.framework.CreateSymlinkToNonExisting) ChangeFileSize(org.syncany.tests.integration.scenarios.framework.ChangeFileSize) MoveFileWithinFolder(org.syncany.tests.integration.scenarios.framework.MoveFileWithinFolder) ChangeTypeSymlinkWithTargetFolderToFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFolderToFile) TransferSettings(org.syncany.plugins.transfer.TransferSettings) ChangeTypeFileToFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToFolder) ChangeTypeFileToSymlinkWithTargetFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithTargetFile) CreateSymlinkToFolder(org.syncany.tests.integration.scenarios.framework.CreateSymlinkToFolder) ChangeSymlinkTarget(org.syncany.tests.integration.scenarios.framework.ChangeSymlinkTarget) ChangeTypeSymlinkWithTargetFileToFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFileToFolder) ChangeLastModifiedDate(org.syncany.tests.integration.scenarios.framework.ChangeLastModifiedDate) ChangeTypeFileToSymlinkWithNonExistingTarget(org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithNonExistingTarget) CreateFolder(org.syncany.tests.integration.scenarios.framework.CreateFolder) ChangeTypeSymlinkWithTargetFileToFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFileToFile) ChangeTypeSymlinkWithNonExistingTargetToFolder(org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithNonExistingTargetToFolder) MoveFolderToOtherFolder(org.syncany.tests.integration.scenarios.framework.MoveFolderToOtherFolder) ChangeTypeFolderToFile(org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToFile) MoveFileToOtherFolder(org.syncany.tests.integration.scenarios.framework.MoveFileToOtherFolder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 TransferSettings (org.syncany.plugins.transfer.TransferSettings)1 ChangeContentWithoutFileSize (org.syncany.tests.integration.scenarios.framework.ChangeContentWithoutFileSize)1 ChangeFileSize (org.syncany.tests.integration.scenarios.framework.ChangeFileSize)1 ChangeLastModifiedDate (org.syncany.tests.integration.scenarios.framework.ChangeLastModifiedDate)1 ChangePermissionsOfFile (org.syncany.tests.integration.scenarios.framework.ChangePermissionsOfFile)1 ChangePermissionsOfFolder (org.syncany.tests.integration.scenarios.framework.ChangePermissionsOfFolder)1 ChangeSymlinkTarget (org.syncany.tests.integration.scenarios.framework.ChangeSymlinkTarget)1 ChangeTypeFileToFolder (org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToFolder)1 ChangeTypeFileToSymlinkWithNonExistingTarget (org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithNonExistingTarget)1 ChangeTypeFileToSymlinkWithTargetFile (org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithTargetFile)1 ChangeTypeFileToSymlinkWithTargetFolder (org.syncany.tests.integration.scenarios.framework.ChangeTypeFileToSymlinkWithTargetFolder)1 ChangeTypeFolderToFile (org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToFile)1 ChangeTypeFolderToSymlinkWithNonExistingTarget (org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithNonExistingTarget)1 ChangeTypeFolderToSymlinkWithTargetFile (org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithTargetFile)1 ChangeTypeFolderToSymlinkWithTargetFolder (org.syncany.tests.integration.scenarios.framework.ChangeTypeFolderToSymlinkWithTargetFolder)1 ChangeTypeSymlinkWithNonExistingTargetToFile (org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithNonExistingTargetToFile)1 ChangeTypeSymlinkWithNonExistingTargetToFolder (org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithNonExistingTargetToFolder)1 ChangeTypeSymlinkWithTargetFileToFile (org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFileToFile)1 ChangeTypeSymlinkWithTargetFileToFolder (org.syncany.tests.integration.scenarios.framework.ChangeTypeSymlinkWithTargetFileToFolder)1