7675.743.23
by Jonathan Lange
Make it really obvious when we are using sampledata |
1 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
4 |
"""Constants that refer to values in sampledata.
|
|
5 |
||
6 |
If ever you use a literal in a test that refers to sample data, even if it's
|
|
7 |
just a small number, then you should define it as a constant here.
|
|
8 |
"""
|
|
9 |
||
10 |
__metaclass__ = type |
|
11 |
__all__ = [ |
|
11132.4.20
by Graham Binns
Merged devel. |
12 |
'ADMIN_EMAIL', |
10888.7.23
by Julian Edwards
jml's review comments |
13 |
'BOB_THE_BUILDER_NAME', |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
14 |
'BUILDD_ADMIN_USERNAME', |
15 |
'CHROOT_LIBRARYFILEALIAS', |
|
7675.767.12
by William Grant
Use lp.testing.sampledata instead of hardcoding sampledata email address. |
16 |
'COMMERCIAL_ADMIN_EMAIL', |
10888.7.23
by Julian Edwards
jml's review comments |
17 |
'FROG_THE_BUILDER_NAME', |
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
18 |
'HOARY_DISTROSERIES_NAME', |
19 |
'I386_ARCHITECTURE_NAME', |
|
11316.11.3
by Robert Collins
Add a LAUNCHPAD_ADMIN constant for sample data. |
20 |
'LAUNCHPAD_ADMIN', |
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
21 |
'LAUNCHPAD_DBUSER_NAME', |
22 |
'MAIN_COMPONENT_NAME', |
|
7675.743.23
by Jonathan Lange
Make it really obvious when we are using sampledata |
23 |
'NO_PRIVILEGE_EMAIL', |
10888.7.30
by Julian Edwards
merge db-devel |
24 |
'SAMPLE_PERSON_EMAIL', |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
25 |
'UBUNTU_DEVELOPER_ADMIN_NAME', |
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
26 |
'UBUNTU_DISTRIBUTION_NAME', |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
27 |
'UBUNTU_UPLOAD_TEAM_NAME', |
11448.1.1
by Graham Binns
Merged db-devel r9700 into devel. |
28 |
'UBUNTUTEST_DISTRIBUTION_NAME', |
11132.4.20
by Graham Binns
Merged devel. |
29 |
'USER_EMAIL', |
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
30 |
'WARTY_DISTROSERIES_NAME', |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
31 |
'WARTY_ONLY_SOURCEPACKAGENAME', |
32 |
'WARTY_ONLY_SOURCEPACKAGEVERSION', |
|
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
33 |
'WARTY_UPDATES_SUITE_NAME', |
7675.743.23
by Jonathan Lange
Make it really obvious when we are using sampledata |
34 |
]
|
35 |
||
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
36 |
# Please use names that reveal intent, rather than being purely
|
37 |
# descriptive, i.e. USER16_NAME isn't as good as
|
|
38 |
# UBUNTU_DEVELOPER_NAME. Where intent is tricky to convey in the
|
|
39 |
# name, please leave a comment as well.
|
|
7675.743.23
by Jonathan Lange
Make it really obvious when we are using sampledata |
40 |
|
11132.4.20
by Graham Binns
Merged devel. |
41 |
# A user with Launchpad Admin privileges.
|
11132.4.3
by Graham Binns
Admins can call the resetWatches() method. |
42 |
ADMIN_EMAIL = 'foo.bar@canonical.com' |
11132.4.20
by Graham Binns
Merged devel. |
43 |
|
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
44 |
# A user with buildd admin rights and upload rights to Ubuntu.
|
45 |
BUILDD_ADMIN_USERNAME = 'cprov' |
|
10888.7.23
by Julian Edwards
jml's review comments |
46 |
# A couple of builders.
|
47 |
BOB_THE_BUILDER_NAME = 'bob' |
|
48 |
FROG_THE_BUILDER_NAME = 'frog' |
|
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
49 |
# The LibraryFileAlias of a chroot for attaching to a DistroArchSeries
|
50 |
CHROOT_LIBRARYFILEALIAS = 1 |
|
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
51 |
HOARY_DISTROSERIES_NAME = 'hoary' |
52 |
I386_ARCHITECTURE_NAME = 'i386' |
|
11316.11.3
by Robert Collins
Add a LAUNCHPAD_ADMIN constant for sample data. |
53 |
LAUNCHPAD_ADMIN = 'admin@canonical.com' |
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
54 |
LAUNCHPAD_DBUSER_NAME = 'launchpad' |
55 |
MAIN_COMPONENT_NAME = 'main' |
|
11132.4.20
by Graham Binns
Merged devel. |
56 |
|
7675.743.23
by Jonathan Lange
Make it really obvious when we are using sampledata |
57 |
NO_PRIVILEGE_EMAIL = 'no-priv@canonical.com' |
11132.4.7
by Graham Binns
Began adding pagetests to cover the reset button. |
58 |
USER_EMAIL = 'test@canonical.com' |
11448.1.1
by Graham Binns
Merged db-devel r9700 into devel. |
59 |
VCS_IMPORTS_MEMBER_EMAIL = 'david.allouche@canonical.com' |
7675.767.12
by William Grant
Use lp.testing.sampledata instead of hardcoding sampledata email address. |
60 |
COMMERCIAL_ADMIN_EMAIL = 'commercial-member@canonical.com' |
11456.1.4
by Robert Collins
Replace a duplicated sample data constant with the other name for it. |
61 |
SAMPLE_PERSON_EMAIL = USER_EMAIL |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
62 |
# A user that is an admin of ubuntu-team, which has upload rights
|
63 |
# to Ubuntu.
|
|
64 |
UBUNTU_DEVELOPER_ADMIN_NAME = 'name16' |
|
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
65 |
UBUNTU_DISTRIBUTION_NAME = 'ubuntu' |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
66 |
# A team that has upload rights to Ubuntu
|
67 |
UBUNTU_UPLOAD_TEAM_NAME = 'ubuntu-team' |
|
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
68 |
WARTY_DISTROSERIES_NAME = 'warty' |
11265.1.9
by James Westby
Rename the sampledata constants according to intent. |
69 |
# A source package name and version for a package only published in
|
70 |
# warty
|
|
71 |
WARTY_ONLY_SOURCEPACKAGENAME = 'mozilla-firefox' |
|
72 |
WARTY_ONLY_SOURCEPACKAGEVERSION = '0.9' |
|
11265.1.1
by James Westby
Start the attack on Soyuz sampledata. |
73 |
WARTY_UPDATES_SUITE_NAME = WARTY_DISTROSERIES_NAME + '-updates' |