Mercurial > hg
comparison tests/test-hgweb-no-request-uri.t @ 31008:636cf3f7620d
tests: use LOCALIP
This patch replaces hardcoded 127.0.0.1 with $LOCALIP in all tests.
Till now, the IPv6 series should make tests pass on common IPv6 systems
where the local device has the address "::1" and the hostname "localhost"
resolves to "::1".
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 16 Feb 2017 09:38:52 -0800 |
parents | fe7158fced4b |
children | 75be14993fda |
comparison
equal
deleted
inserted
replaced
31007:bfdb0741f9f2 | 31008:636cf3f7620d |
---|---|
46 > 'wsgi.multithread': False, | 46 > 'wsgi.multithread': False, |
47 > 'wsgi.multiprocess': False, | 47 > 'wsgi.multiprocess': False, |
48 > 'wsgi.run_once': False, | 48 > 'wsgi.run_once': False, |
49 > 'REQUEST_METHOD': 'GET', | 49 > 'REQUEST_METHOD': 'GET', |
50 > 'SCRIPT_NAME': '', | 50 > 'SCRIPT_NAME': '', |
51 > 'SERVER_NAME': '127.0.0.1', | 51 > 'SERVER_NAME': '$LOCALIP', |
52 > 'SERVER_PORT': os.environ['HGPORT'], | 52 > 'SERVER_PORT': os.environ['HGPORT'], |
53 > 'SERVER_PROTOCOL': 'HTTP/1.0' | 53 > 'SERVER_PROTOCOL': 'HTTP/1.0' |
54 > } | 54 > } |
55 > | 55 > |
56 > def process(app): | 56 > def process(app): |
88 [('Content-Type', 'application/atom+xml; charset=ascii')] | 88 [('Content-Type', 'application/atom+xml; charset=ascii')] |
89 ---- DATA | 89 ---- DATA |
90 <?xml version="1.0" encoding="ascii"?> | 90 <?xml version="1.0" encoding="ascii"?> |
91 <feed xmlns="http://www.w3.org/2005/Atom"> | 91 <feed xmlns="http://www.w3.org/2005/Atom"> |
92 <!-- Changelog --> | 92 <!-- Changelog --> |
93 <id>http://127.0.0.1:$HGPORT/</id> (glob) | 93 <id>http://$LOCALIP:$HGPORT/</id> (glob) |
94 <link rel="self" href="http://127.0.0.1:$HGPORT/atom-log"/> (glob) | 94 <link rel="self" href="http://$LOCALIP:$HGPORT/atom-log"/> (glob) |
95 <link rel="alternate" href="http://127.0.0.1:$HGPORT/"/> (glob) | 95 <link rel="alternate" href="http://$LOCALIP:$HGPORT/"/> (glob) |
96 <title>repo Changelog</title> | 96 <title>repo Changelog</title> |
97 <updated>1970-01-01T00:00:00+00:00</updated> | 97 <updated>1970-01-01T00:00:00+00:00</updated> |
98 | 98 |
99 <entry> | 99 <entry> |
100 <title>[default] test</title> | 100 <title>[default] test</title> |
101 <id>http://127.0.0.1:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id> (glob) | 101 <id>http://$LOCALIP:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id> (glob) |
102 <link href="http://127.0.0.1:$HGPORT/rev/61c9426e69fe"/> (glob) | 102 <link href="http://$LOCALIP:$HGPORT/rev/61c9426e69fe"/> (glob) |
103 <author> | 103 <author> |
104 <name>test</name> | 104 <name>test</name> |
105 <email>test</email> | 105 <email>test</email> |
106 </author> | 106 </author> |
107 <updated>1970-01-01T00:00:00+00:00</updated> | 107 <updated>1970-01-01T00:00:00+00:00</updated> |