~diegosarmentero/ubuntuone-client/syncdaemon-q

« back to all changes in this revision

Viewing changes to tests/proxy/__init__.py

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2012-03-18 20:59:03 UTC
  • mfrom: (1196.7.2 proxy-tunnel-cookies)
  • Revision ID: tarmac-20120318205903-qertwpfc68mrv8tn
- Only allow connections that provide the right cookie thru the tunnel (LP: #929207).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
SIMPLERESOURCE = "simpleresource"
25
25
DUMMY_KEY_FILENAME = "dummy.key"
26
26
DUMMY_CERT_FILENAME = "dummy.cert"
 
27
FAKE_COOKIE = "fa:ke:co:ok:ie"
27
28
 
28
29
 
29
30
class SaveHTTPChannel(http.HTTPChannel):
137
138
 
138
139
    connected = True
139
140
    disconnecting = False
 
141
    cookie = None
140
142
 
141
143
    def loseConnection(self):
142
144
        """Mark the connection as lost."""