~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/pagetests/foaf/40-extra-teammembership-checks.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-17 20:41:13 UTC
  • mfrom: (3277.1.4 launchpad-foobar2)
  • Revision ID: pqm@pqm.ubuntu.com-20060317204113-9841a4470db3611b
[r=jamesh] Mainline soyuz

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Start out by verifying the members page is sane.
3
3
 
4
4
  >>> print http(r"""
5
 
  ... GET /people/name17/+members/ HTTP/1.1
 
5
  ... GET /people/ubuntu-team/+members/ HTTP/1.1
6
6
  ... """)
7
7
  HTTP/1.1 200 Ok
8
8
  Content-Length: ...
17
17
administrator and his subscription never expires.
18
18
 
19
19
  >>> print http(r"""
20
 
  ... GET /people/name17/+member/kamion/+index HTTP/1.1
 
20
  ... GET /people/ubuntu-team/+member/kamion/+index HTTP/1.1
21
21
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
22
22
  ... """)
23
23
  HTTP/1.1 200 Ok
42
42
no longer set as an admin, and he has expires=date checked.
43
43
 
44
44
  >>> print http(r"""
45
 
  ... POST /people/name17/+member/kamion/+index HTTP/1.1
 
45
  ... POST /people/ubuntu-team/+member/kamion/+index HTTP/1.1
46
46
  ... Content-Type: application/x-www-form-urlencoded
47
47
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
48
48
  ...
68
68
Kamion:
69
69
 
70
70
  >>> print http(r"""
71
 
  ... GET /people/name17/+members/ HTTP/1.1
 
71
  ... GET /people/ubuntu-team/+members/ HTTP/1.1
72
72
  ... """)
73
73
  HTTP/1.1 200 Ok
74
74
  Content-Length: ...
88
88
next year -- succcessfully.
89
89
 
90
90
  >>> print http(r"""
91
 
  ... POST /people/name17/+member/kamion/+index HTTP/1.1
 
91
  ... POST /people/ubuntu-team/+member/kamion/+index HTTP/1.1
92
92
  ... Content-Type: application/x-www-form-urlencoded
93
93
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
94
94
  ... 
96
96
  HTTP/1.1 303 See Other
97
97
  Content-Length: ...
98
98
  Content-Type: text/html;charset=utf-8
99
 
  Location: http://localhost:9000/people/name17/+members
 
99
  Location: http://localhost:9000/people/ubuntu-team/+members
100
100
  ...
101
101
 
102
102
Now check Jeff's subscription. Jeff's also an administrator and his
103
103
subscription never expires.
104
104
 
105
105
  >>> print http(r"""
106
 
  ... GET /people/name17/+member/jdub HTTP/1.1
 
106
  ... GET /people/ubuntu-team/+member/jdub HTTP/1.1
107
107
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
108
108
  ... """)
109
109
  HTTP/1.1 200 Ok
125
125
and set the expiration date to `today`.
126
126
 
127
127
  >>> print http(r"""
128
 
  ... POST /people/name17/+member/jdub HTTP/1.1
 
128
  ... POST /people/ubuntu-team/+member/jdub HTTP/1.1
129
129
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
130
130
  ... Content-Type: application/x-www-form-urlencoded
131
131
  ... 
133
133
  HTTP/1.1 303 See Other
134
134
  Content-Length: ...
135
135
  Content-Type: text/html;charset=utf-8
136
 
  Location: http://localhost:9000/people/name17/+members
 
136
  Location: http://localhost:9000/people/ubuntu-team/+members
137
137
  ...
138
138
 
139
139
Now check to see if everybody's looking good. Only team admins see inactive
140
140
members.
141
141
 
142
142
  >>> print http(r"""
143
 
  ... GET /people/name17/+members/ HTTP/1.1
 
143
  ... GET /people/ubuntu-team/+members/ HTTP/1.1
144
144
  ... Authorization: Basic Zm9vLmJhckBjYW5vbmljYWwuY29tOnRlc3Q=
145
145
  ... """)
146
146
  HTTP/1.1 200 Ok