390 likes | 520 Views
Replication Sprint. F99 alien invasion. Local Alien Invasion. Tests a transferred tree that is invaded by the local repo. An “invaded” node is “pruned” rather than deleted. Unit test uses transfer with a mocked repo Id (REPO_ID_A) , path mapping and nodeId mapping. Local Alien Invasion 1.
E N D
Replication Sprint F99 alien invasion
Local Alien Invasion • Tests a transferred tree that is invaded by the local repo. • An “invaded” node is “pruned” rather than deleted. • Unit test uses transfer with a mocked repo Id (REPO_ID_A) , path mapping and nodeId mapping.
Local Alien Invasion 1 A1 • Set up A3 A2 A6 A4 A5 A8 A7
Local Alien Invasion 2 A1 • B9 Invades A3 B9 A2 A6 A4 A5 A8 A7 Invaded by B (local repo)
Local Alien Invasion 3 A1 • B9 Deleted A3 A2 A6 A4 A5 A8 A7 Invaded by B (local repo)
Local Alien Invasion 4 A1 • Add B10 A3 A2 A6 A4 A5 B10 A8 A7 Invaded by B (local repo)
Local Alien Invasion 5 A1 • Delete B10 A3 A2 A6 A4 A5 A8 A7 Invaded by B (local repo)
Local Alien Invasion 6 A1 • Add B13,B14 A3 A2 A6 A4 A5 A8 B12 A7 B14 Invaded by B (local repo)
Local Alien Invasion 7 A1 • Remove B14 A3 A2 A6 A4 A5 A8 B12 A7 Invaded by B (local repo)
Local Alien Invasion 8 A1 • Add B13 A3 A2 A6 A4 A5 A8 B12 B13 A7 Invaded by B (local repo)
Local Alien Invasion 9 A1 • Remove B13 A3 A2 A6 A4 A5 A8 B12 A7 Invaded by B (local repo)
Local Alien Invasion 10 A1 • Remove B12 A3 A2 A6 A4 A5 A8 A7 Invaded by B (local repo)
Local Alien Invasion 11 A1 • Add B9, B10 A3 B9 A2 A6 A4 A5 B10 A8 A7 Invaded by B (local repo)
Local Alien Invasion 12 A1 Remove B10 A3 B9 A2 A6 A4 A5 A8 A7 Invaded by B (local repo)
Local Alien Invasion 13 A1 • Add B11 A3 B9 A2 A6 A4 A5 A8 A7 B11 Invaded by B (local repo)
Local Alien Invasion 14 A1 • A2 delete (sync) A3 B9 A2 A4 B11 Invaded by B (local repo)
Local Alien Restore • Tests restore of local alien nodes
Local Alien Restore 1 A1 B1 • Set up Invaded by B (local repo)
Local Alien Restore 2 A1 B1 • Add B2 B2 Invaded by B (local repo)
Local Alien Restore 3 A1 B1 • Delete B2 Invaded by B (local repo)
Local Alien Restore 4 A1 B1 • Restore B2 B2 Invaded by B (local repo)
Local Alien Restore 5 A1 B1 • Add B3 B2 B3 Invaded by B (local repo)
Local Alien Restore 5 A1 B1 • Remove B2 Invaded by B (local repo)
Local Alien Restore 6 A1 B1 • Restore B2 to B1 B2 B3 Invaded by B (local repo)
Multi Repo Move • Tests move via transfer
Multi Repo Move 1 B1 • Transfer C2, C3 C2 C3 Invaded by A Invaded by B (local repo)
Multi Repo Move 2 B1 • Transfer A4, A5 C2 C3 A4 A5 Invaded by A Invaded by B (local repo)
Multi Repo Move 3 B1 Move A5 to C3 (transfer sync) C2 C3 A4 A5 Invaded by A Invaded by B (local repo)
Multi Repo Move 4 B1 • Add B6 C2 C3 A4 A5 B6 Invaded by A Invaded by B (local repo)
Multi Repo Move 5 B1 • Move A5 to C2 C2 C3 A4 A5 B6 Invaded by A Invaded by B (local repo)
Multi Repo Move 6 B1 • Move A5 to A4 C2 C3 A4 A5 B6 Invaded by A Invaded by B (local repo)
Multi Repo Transfer • Tests multi-repo transfer • Mocks Descriptor service
Multi Repo Transfer Setup Source trees not shown B1 {Root} Invaded by C Invaded by B (local repo)
Multi Repo Transfer 1 • Transfer A2, A3 B1 {Root} A2 {Root}/images A3 Invaded by C Invaded by B (local repo)
Multi Repo Transfer 2 • Transfer C3 B1 {Root} A2 {Root}/images C3 A3 Invaded by C Invaded by B (local repo)
Multi Repo Transfer 3 • Transfer C3 B1 {Root} A2 {Root}/images C3 A3 C4 Invaded by C Invaded by B (local repo)
Multi Repo Transfer 4 • Sync C4 delete B1 {Root} A2 {Root}/images C3 A3 Invaded by C Invaded by B (local repo)
Multi Repo Transfer 1 • Remove C3 transfer Archive Node Ref B1 {Root} A2 {Root}/images A3 Invaded by C Invaded by B (local repo)