comparison tests/test-simple4server.t @ 906:24f59f38a202

test: sort output of listkey command The pushkey namespace came as dict key. So they have no defined order. We sort them to stabilize the test.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 22 Apr 2014 17:15:05 -0700
parents 6cb81dbb9516
children b71b563b17de
comparison
equal deleted inserted replaced
905:b177fde040dd 906:24f59f38a202
78 $ curl --silent http://localhost:$HGPORT/?cmd=hello 78 $ curl --silent http://localhost:$HGPORT/?cmd=hello
79 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 79 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0
80 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities 80 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
81 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol) 81 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol)
82 82
83 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" 83 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
84 bookmarks 84 bookmarks
85 namespaces
86 obsolete
85 phases 87 phases
86 namespaces
87 obsolete (no-eol)
88 88
89 Push 89 Push
90 ============= 90 =============
91 91
92 $ echo 'A' > a 92 $ echo 'A' > a
144 144
145 Test disabling obsolete advertisement 145 Test disabling obsolete advertisement
146 =========================================== 146 ===========================================
147 (used by bitbucket to select which repo use evolve) 147 (used by bitbucket to select which repo use evolve)
148 148
149 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" 149 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
150 bookmarks 150 bookmarks
151 namespaces
152 obsolete
151 phases 153 phases
152 namespaces
153 obsolete (no-eol)
154 $ curl --silent http://localhost:$HGPORT/?cmd=hello 154 $ curl --silent http://localhost:$HGPORT/?cmd=hello
155 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 155 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0
156 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities 156 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
157 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol) 157 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol)
158 158
160 $ echo 'advertiseobsolete=False' >> server/.hg/hgrc 160 $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
161 $ $TESTDIR/killdaemons.py 161 $ $TESTDIR/killdaemons.py
162 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log 162 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
163 $ cat hg.pid >> $DAEMON_PIDS 163 $ cat hg.pid >> $DAEMON_PIDS
164 164
165 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" 165 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
166 bookmarks 166 bookmarks
167 namespaces
167 phases 168 phases
168 namespaces (no-eol)
169 $ curl --silent http://localhost:$HGPORT/?cmd=hello 169 $ curl --silent http://localhost:$HGPORT/?cmd=hello
170 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 170 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
171 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities 171 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
172 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 (no-eol) 172 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 (no-eol)
173 173
174 $ echo 'advertiseobsolete=True' >> server/.hg/hgrc 174 $ echo 'advertiseobsolete=True' >> server/.hg/hgrc
175 $ $TESTDIR/killdaemons.py 175 $ $TESTDIR/killdaemons.py
176 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log 176 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
177 $ cat hg.pid >> $DAEMON_PIDS 177 $ cat hg.pid >> $DAEMON_PIDS
178 178
179 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" 179 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
180 bookmarks 180 bookmarks
181 namespaces
182 obsolete
181 phases 183 phases
182 namespaces
183 obsolete (no-eol)
184 $ curl --silent http://localhost:$HGPORT/?cmd=hello 184 $ curl --silent http://localhost:$HGPORT/?cmd=hello
185 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 185 capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0
186 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities 186 $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
187 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol) 187 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 (no-eol)