~launchpad-pqm/launchpad/devel

10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
1
<!-- Copyright 2009 Canonical Ltd.  This software is licensed under the
2
     GNU Affero General Public License version 3 (see the file LICENSE).
3
-->
4
5
<configure
6
    xmlns="http://namespaces.zope.org/zope"
7
    xmlns:browser="http://namespaces.zope.org/browser"
8
    xmlns:i18n="http://namespaces.zope.org/i18n"
9
    i18n_domain="launchpad">
10
11
    <browser:navigation
12
        module=".server"
13
        classes="TestOpenIDApplicationNavigation"
14
        />
15
16
    <adapter
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
17
        provides="lp.services.webapp.interfaces.ICanonicalUrlData"
10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
18
        for="..interfaces.server.ITestOpenIDApplication"
10212.5.2 by Guilherme Salgado
Use only relative paths in testopenid.browser.configure.zcml
19
        factory=".server.TestOpenIDRootUrlData"
10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
20
        />
21
22
    <browser:defaultView
23
        for="..interfaces.server.ITestOpenIDApplication"
24
        name="+index"
25
        />
26
27
    <browser:page
28
        for="..interfaces.server.ITestOpenIDApplication"
10212.5.2 by Guilherme Salgado
Use only relative paths in testopenid.browser.configure.zcml
29
        class=".server.TestOpenIDView"
10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
30
        permission="zope.Public"
31
        name="+openid"
32
        />
33
    <browser:page
34
        for="..interfaces.server.ITestOpenIDApplication"
35
        class=".server.TestOpenIDIndexView"
36
        permission="zope.Public"
37
        name="+index"
38
        />
39
    <browser:page
10212.5.2 by Guilherme Salgado
Use only relative paths in testopenid.browser.configure.zcml
40
        for="..interfaces.server.ITestOpenIDApplication"
41
        class=".server.TestOpenIDLoginView"
10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
42
        permission="zope.Public"
43
        name="+auth"
44
        />
45
46
    <browser:url
47
        for="..interfaces.server.ITestOpenIDPersistentIdentity"
48
        path_expression="string:${openid_identifier}"
49
        parent_utility="..interfaces.server.ITestOpenIDApplication"
50
        />
51
52
    <browser:defaultView
53
        for="..interfaces.server.ITestOpenIDPersistentIdentity"
54
        name="+index"
55
        />
56
57
    <browser:page
58
        for="..interfaces.server.ITestOpenIDPersistentIdentity"
59
        name="+index"
60
        template="../templates/persistentidentity-index.pt"
61
        permission="zope.Public"
62
        class=".server.PersistentIdentityView"
63
        />
64
10065.2.22 by Guilherme Salgado
Register the LaunchpadImageFolder for ITestOpenIDApplication so that the images don't 404 on the testopenid vhost. Make ITestOpenIDLoginForm.password required and change the macro used in auth.pt from main_only to locationless
65
    <browser:page
66
        name=""
67
        for="..interfaces.server.ITestOpenIDApplication"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
68
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
10065.2.22 by Guilherme Salgado
Register the LaunchpadImageFolder for ITestOpenIDApplication so that the images don't 404 on the testopenid vhost. Make ITestOpenIDLoginForm.password required and change the macro used in auth.pt from main_only to locationless
69
        permission="zope.Public"
14600.1.8 by Curtis Hovey
Move c.l.layers to lp.
70
        layer="lp.layers.TestOpenIDLayer"
10065.2.22 by Guilherme Salgado
Register the LaunchpadImageFolder for ITestOpenIDApplication so that the images don't 404 on the testopenid vhost. Make ITestOpenIDLoginForm.password required and change the macro used in auth.pt from main_only to locationless
71
        />
72
10065.2.20 by Guilherme Salgado
Some basic tests for the test openid provider
73
    <!-- A simple view used by the page tests. -->
74
    <browser:page
75
        for="..interfaces.server.ITestOpenIDApplication"
76
        name="+echo"
77
        permission="zope.Public"
78
        class="..testing.helpers.EchoView"
14600.1.8 by Curtis Hovey
Move c.l.layers to lp.
79
        layer="lp.layers.PageTestLayer"
10065.2.20 by Guilherme Salgado
Some basic tests for the test openid provider
80
        />
81
10065.2.12 by Guilherme Salgado
Make the test openid work without the hack in c-i-p
82
</configure>