~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: Christian Reis
  • Date: 2005-10-14 21:41:57 UTC
  • mto: (3258.2.1 lifes-a-batch) (1716.2.5)
  • mto: This revision was merged to the branch mainline in revision 2696.
  • Revision ID: Arch-1:christian.reis@canonical.com--lozenge%launchpad--devel--0--patch-201
We all love pagetests

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  ...Mark Shuttleworth...
14
14
  ...
15
15
 
16
 
Let's take a look at Colin's subscription page.
 
16
Let's take a look at Colin's subscription page. Colin is an
 
17
administrator and his subscription never expires.
17
18
 
18
19
  >>> print http(r"""
19
20
  ... GET /people/name17/+members/kamion/+index HTTP/1.1
37
38
  ...
38
39
 
39
40
Post an incomplete date and remove his administrator status. Check to
40
 
see that the values returned are reasonable -- i.e., he is no longer set
41
 
as an admin, and he has expires=date checked.
 
41
see that the values returned in the form are reasonable -- i.e., he is
 
42
no longer set as an admin, and he has expires=date checked.
42
43
 
43
44
  >>> print http(r"""
44
45
  ... POST /people/name17/+members/kamion/+index HTTP/1.1
76
77
  ...>Colin Watson</a>...
77
78
  ...
78
79
  ...<td>2005-03-03</td>...
79
 
  ...
80
80
  ...<td>&ndash;</td>...
81
 
  ...
82
 
  ...<td>Approved</td>...
 
81
  <BLANKLINE>
 
82
  ...<td>Administrator</td>...
83
83
  ...
84
84
  ...>Foo Bar</a>...
85
85
  ...
86
86
 
87
 
Now complete the change to Kamion's subscription successfully.
 
87
Now revoke Kamion's administrator status and make him expire in November
 
88
next year -- succcessfully.
88
89
 
89
90
  >>> print http(r"""
90
91
  ... POST /people/name17/+members/kamion/+index HTTP/1.1
98
99
  Location: ../
99
100
  ...
100
101
 
101
 
Now check Jeff's subscription.
 
102
Now check Jeff's subscription. Jeff's also an administrator and his
 
103
subscription never expires.
102
104
 
103
105
  >>> print http(r"""
104
106
  ... GET /people/name17/+members/jdub HTTP/1.1
119
121
  ...id="date" value="date" name="expires" />...
120
122
  ...
121
123
 
122
 
And now change it to expire in the past.
 
124
And now change it to expire in the past. It will expire automatically
 
125
and set the expiration date to `today`.
123
126
 
124
127
  >>> print http(r"""
125
128
  ... POST /people/name17/+members/jdub HTTP/1.1
147
150
  ...>2005-03-03<...
148
151
  <BLANKLINE>
149
152
  ...>2006-11-14<...
150
 
  ...
151
153
  ...>Approved<...
152
154
  ...
153
155
  ...>Foo Bar</a>...
158
160
  ...
159
161
  ...Expired on...
160
162
  ...
161
 
  ...2005-10-11..
 
163
  ...Add a new member...
162
164
  ...
163
165
 
164
166
Sample person had his membership declined to the guadamen group. Test