tests/test-exchange-C3.t
author Greg Ward <greg@gerg.ca>
Thu, 05 Jun 2014 22:11:04 -0400
changeset 978 8328337d23b2
parent 957 2cde59f3cb5d
child 984 b286f77d680c
permissions -rw-r--r--
docs: add new user guide This has also been reviewed to death on evolve-testers. There are still a couple of short sections to write (clearly marked "TODO"), and one example to add. But (if I may be so bold) this is a gigantic improvement over the current docs, so it really should get merged. Incidentally, the figures are all SVG files created with Inkscape. They're not perfect, but they're pretty nice. Anyone who knows a better way to create technical diagrams is welcome to contribute. One wart: there's a test script that accompanies the document and largely duplicates it, but I haven't unified them. I've been concentrating on writing the best possible content, not on fiddling with tools. I suspect that unifying them will be non-trivial, but definitely worth doing.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     1
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     2
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     3
Initial setup
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     4
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     5
  $ . $TESTDIR/_exc-util.sh
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     6
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     7
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     8
=== C.3 Pruned changeset on precursors of another pruned one ===
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
     9
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    10
.. {{{
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    11
..   B 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    12
..     |
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    13
..   A ø⇠⊗ A'
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    14
..     |/
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    15
..     ● O
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    16
.. }}}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    17
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    18
.. Marker exist from:
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    19
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    20
..  * A' succeed to A
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    21
..  * A' (prune
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    22
..  * B (prune)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    23
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    24
.. Command run:
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    25
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    26
..  * hg push -r A'
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    27
..  * hg push
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    28
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    29
.. Expected exchange:
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    30
.. 
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    31
..  * `A ø⇠⊗ A'`
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    32
..  * A (prune)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    33
..  * B (prune)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    34
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    35
  $ setuprepos C.3
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    36
  creating test repo for test case C.3
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    37
  - pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    38
  - main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    39
  - pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    40
  cd into `main` and proceed with env setup
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    41
  $ cd main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    42
  $ mkcommit A0
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    43
  $ mkcommit B
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    44
  $ hg prune -qd '0 0' .
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    45
  $ hg update -q 0
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    46
  $ mkcommit A1
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    47
  created new head
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    48
  $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'`
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    49
  $ hg prune -qd '0 0' .
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    50
  $ hg log -G --hidden
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    51
  x  e5ea8f9c7314 (draft): A1
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    52
  |
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    53
  | x  06055a7959d4 (draft): B
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    54
  | |
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    55
  | x  28b51eb45704 (draft): A0
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    56
  |/
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    57
  @  a9bdc8b26820 (public): O
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    58
  
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    59
  $ hg debugobsolete
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    60
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    61
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    62
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    63
  $ cd ..
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    64
  $ cd ..
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    65
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    66
  $ cp -r C.3 C.3.a
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    67
  $ cp -r C.3 C.3.b
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    68
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    69
Actual Test (explicite push)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    70
-------------------------------------
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    71
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    72
  $ dotest C.3.a O
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    73
  ## Running testcase C.3.a
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    74
  # testing echange of "O" (a9bdc8b26820)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    75
  ## initial state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    76
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    77
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    78
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    79
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    80
  # obstore: pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    81
  # obstore: pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    82
  ## pushing "O" from main to pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    83
  pushing to pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    84
  searching for changes
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    85
  no changes found
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    86
  OBSEXC: computing relevant nodes
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    87
  OBSEXC: computing markers relevant to 1 nodes
957
2cde59f3cb5d evolve: add a push pass using bundle2
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 956
diff changeset
    88
  OBSEXC: pushing 3 markers (238 bytes)
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    89
  OBSEXC: DONE
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    90
  ## post push state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    91
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    92
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    93
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    94
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    95
  # obstore: pushdest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
    96
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    97
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    98
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
    99
  # obstore: pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   100
  ## pulling "a9bdc8b26820" from main into pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   101
  pulling from main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   102
  no changes found
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   103
  OBSEXC: pull obsolescence markers
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   104
  OBSEXC: merging obsolescence markers (238 bytes)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   105
  OBSEXC: 3 markers added
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   106
  OBSEXC: DONE
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   107
  ## post pull state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   108
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   109
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   110
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   111
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   112
  # obstore: pushdest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
   113
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   114
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   115
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   116
  # obstore: pulldest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
   117
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   118
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   119
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   120
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   121
Actual Test (bare push)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   122
-------------------------------------
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   123
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   124
  $ dotest C.3.b
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   125
  ## Running testcase C.3.b
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   126
  ## initial state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   127
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   128
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   129
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   130
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   131
  # obstore: pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   132
  # obstore: pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   133
  ## pushing from main to pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   134
  pushing to pushdest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   135
  searching for changes
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   136
  no changes found
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   137
  OBSEXC: computing relevant nodes
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   138
  OBSEXC: computing markers relevant to 1 nodes
957
2cde59f3cb5d evolve: add a push pass using bundle2
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 956
diff changeset
   139
  OBSEXC: pushing 3 markers (238 bytes)
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   140
  OBSEXC: DONE
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   141
  ## post push state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   142
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   143
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   144
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   145
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   146
  # obstore: pushdest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
   147
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   148
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   149
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   150
  # obstore: pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   151
  ## pulling from main into pulldest
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   152
  pulling from main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   153
  searching for changes
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   154
  no changes found
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   155
  OBSEXC: pull obsolescence markers
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   156
  OBSEXC: merging obsolescence markers (238 bytes)
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   157
  OBSEXC: 3 markers added
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   158
  OBSEXC: DONE
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   159
  ## post pull state
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   160
  # obstore: main
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   161
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   162
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   163
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   164
  # obstore: pushdest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
   165
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   166
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   167
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   168
  # obstore: pulldest
905
b177fde040dd exchange: use fixed order for obstore content
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 846
diff changeset
   169
  06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {'date': '0 0', 'p1': '28b51eb45704506b5c603decd6bf7ac5e0f6a52f', 'user': 'test'}
846
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   170
  28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '', 'user': 'test'}
35972ef12664 exchange: add test case for C.3
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff changeset
   171
  e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {'date': '0 0', 'p1': 'a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04', 'user': 'test'}