Project

General

Profile

resultat.txt

Joël Cuissinat, 11/04/2014 12:06 PM

Download (14.4 KB)

 
1
============================= test session starts ==============================
2
platform linux2 -- Python 2.7.3 -- pytest-1.3.4
3
test path 1: /usr/share/pyeole/test_pkg.py
4

    
5
../usr/share/pyeole/test_pkg.py ......FF.
6

    
7
=================================== FAILURES ===================================
8
_________________________________ test_update __________________________________
9

    
10
    def test_update():
11
>       repo.update()
12

    
13
/usr/share/pyeole/test_pkg.py:53: 
14
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
15

    
16
self = <pyeole.pkg.EolePkg object at 0x17c63d0>, container = u'all'
17
silent = False
18

    
19
    def update(self, container=None, silent=False):
20
        """Update the package lists
21
    
22
            :param silent: do not display progress informations
23
            :type silent: `bool`
24
    
25
            """
26
        action = u'update'
27
        func = u'update'
28
    
29
        if container is None:
30
            container = u'all'
31
    
32
        return self._run(action=action,
33
                         func=func,
34
                         container=container,
35
>                        silent=silent)
36

    
37
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:1153: 
38
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
39

    
40
self = <pyeole.pkg.EolePkg object at 0x17c63d0>, action = u'update'
41
func = u'update', container = u'all'
42

    
43
    def _run(self, action, func, container=None, **kwargs):
44
        """Run package manager actions for all containers
45
    
46
            Print a JSON dump of return value if asked.
47
    
48
            :param action: action to perform
49
            :type action: `str`
50
            :param func: package manager method to run
51
            :type func: `str`
52
            :param container: container name
53
            :type container: `str`
54
            :return: return values of commands by containers
55
            :rtype: `dict`
56
    
57
            """
58
        ret = {}
59
    
60
        if container in [None, 'all', 'root', 'current']:
61
            # Run for the current container
62
            ret.update(self.pkgmgr._run(action=action,
63
                                        func=func,
64
                                        container=container,
65
                                        **kwargs))
66
    
67
        if container not in [None, 'root', 'current']:
68
            # Try for containers
69
            ret.update(self.pkgmgr._run_containers(action=action,
70
                                                   container=container,
71
>                                                  **kwargs))
72

    
73
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:1038: 
74
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
75

    
76
self = <pyeole.pkg.EolePkgApt object at 0x17c6450>, action = u'update'
77
container = u'all', silent = False
78

    
79
    def _run_containers(self, action, container, silent=False, **kwargs):
80
        """Run apt-eole in containers
81
            """
82
        outputs = {}
83
        if self.container_mode and container != u'current':
84
>           groups = self.get_groups()
85

    
86
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:535: 
87
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
88

    
89
self = <pyeole.pkg.EolePkgApt object at 0x17c6450>
90

    
91
    def get_groups(self):
92
        if self.groups is None:
93
            self.groups = {'group_infos': {}}
94
>           self.groups['groups'] = self.client.get_groups()
95

    
96
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:487: 
97
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
98

    
99
self = <creole.client.CreoleClient object at 0x17c6550>
100

    
101
    def get_groups(self):
102
        """Get list of container groups
103
    
104
            All groups are a container, but all containers are not a
105
            group.
106
    
107
            :return: container groups names
108
            :rtype: `list`
109
    
110
            """
111
        mode_container =  self.get_creole('mode_conteneur_actif', 'non') == 'oui'
112
>       containers = self.get_containers()
113

    
114
/usr/lib/python2.7/dist-packages/creole/client.py:534: 
115
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
116

    
117
self = <creole.client.CreoleClient object at 0x17c6550>, group = None
118

    
119
    def get_containers(self, group=None):
120
        """Get basic informations of all containers
121
    
122
            :param group: limit search to a group of containers
123
            :type group: `str`
124
            :return: containers informations
125
            :rtype: `list`
126
            """
127
        mode_container =  self.get_creole('mode_conteneur_actif', 'non') == 'oui'
128
        if group is None or (not mode_container and group == 'root'):
129
            args = {}
130
        else:
131
            args = {'withoption':'group',
132
                    'withvalue':group}
133
    
134
        try:
135
            ret = self.get('/containers/containers', **args)
136
        except NotFoundError:
137
            # Tiramisu has no any meaningful message
138
            if group is not None:
139
                msg = _(u'No container found for group {0}')
140
            else:
141
                msg = _(u'No container found! Is that possible?')
142
>           raise NotFoundError(msg.format(group))
143
E           NotFoundError: Pas de conteneur trouv\xe9 ! Est-ce possible ?
144

    
145
/usr/lib/python2.7/dist-packages/creole/client.py:497: NotFoundError
146
------------------------------- Captured stdout --------------------------------
147
Atteint http://test-eole.ac-dijon.fr precise Release.gpg
148
Atteint http://test-eole.ac-dijon.fr precise-security Release.gpg
149
Atteint http://test-eole.ac-dijon.fr precise-updates Release.gpg
150
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable Release.gpg
151
Atteint http://test-eole.ac-dijon.fr precise Release
152
Atteint http://test-eole.ac-dijon.fr precise-security Release
153
Atteint http://test-eole.ac-dijon.fr precise-updates Release
154
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable Release
155
Atteint http://test-eole.ac-dijon.fr precise/main amd64 Packages
156
Atteint http://test-eole.ac-dijon.fr precise/universe amd64 Packages
157
Atteint http://test-eole.ac-dijon.fr precise/multiverse amd64 Packages
158
Atteint http://test-eole.ac-dijon.fr precise/restricted amd64 Packages
159
Atteint http://test-eole.ac-dijon.fr precise/main i386 Packages
160
Atteint http://test-eole.ac-dijon.fr precise/universe i386 Packages
161
Atteint http://test-eole.ac-dijon.fr precise/multiverse i386 Packages
162
Atteint http://test-eole.ac-dijon.fr precise/restricted i386 Packages
163
Atteint http://test-eole.ac-dijon.fr precise/main TranslationIndex
164
Atteint http://test-eole.ac-dijon.fr precise/multiverse TranslationIndex
165
Atteint http://test-eole.ac-dijon.fr precise/restricted TranslationIndex
166
Atteint http://test-eole.ac-dijon.fr precise/universe TranslationIndex
167
Atteint http://test-eole.ac-dijon.fr precise-security/main amd64 Packages
168
Atteint http://test-eole.ac-dijon.fr precise-security/universe amd64 Packages
169
Atteint http://test-eole.ac-dijon.fr precise-security/multiverse amd64 Packages
170
Atteint http://test-eole.ac-dijon.fr precise-security/restricted amd64 Packages
171
Atteint http://test-eole.ac-dijon.fr precise-security/main i386 Packages
172
Atteint http://test-eole.ac-dijon.fr precise-security/universe i386 Packages
173
Atteint http://test-eole.ac-dijon.fr precise-security/multiverse i386 Packages
174
Atteint http://test-eole.ac-dijon.fr precise-security/restricted i386 Packages
175
Atteint http://test-eole.ac-dijon.fr precise-security/main TranslationIndex
176
Atteint http://test-eole.ac-dijon.fr precise-security/multiverse TranslationIndex
177
Atteint http://test-eole.ac-dijon.fr precise-security/restricted TranslationIndex
178
Atteint http://test-eole.ac-dijon.fr precise-security/universe TranslationIndex
179
Atteint http://test-eole.ac-dijon.fr precise-updates/main amd64 Packages
180
Atteint http://test-eole.ac-dijon.fr precise-updates/universe amd64 Packages
181
Atteint http://test-eole.ac-dijon.fr precise-updates/multiverse amd64 Packages
182
Atteint http://test-eole.ac-dijon.fr precise-updates/restricted amd64 Packages
183
Atteint http://test-eole.ac-dijon.fr precise-updates/main i386 Packages
184
Atteint http://test-eole.ac-dijon.fr precise-updates/universe i386 Packages
185
Atteint http://test-eole.ac-dijon.fr precise-updates/multiverse i386 Packages
186
Atteint http://test-eole.ac-dijon.fr precise-updates/restricted i386 Packages
187
Atteint http://test-eole.ac-dijon.fr precise-updates/main TranslationIndex
188
Atteint http://test-eole.ac-dijon.fr precise-updates/multiverse TranslationIndex
189
Atteint http://test-eole.ac-dijon.fr precise-updates/restricted TranslationIndex
190
Atteint http://test-eole.ac-dijon.fr precise-updates/universe TranslationIndex
191
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable/main amd64 Packages/DiffIndex
192
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud amd64 Packages/DiffIndex
193
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable/main i386 Packages/DiffIndex
194
Atteint http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud i386 Packages/DiffIndex
195
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud TranslationIndex
196
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/main TranslationIndex
197
Atteint http://test-eole.ac-dijon.fr precise/main Translation-fr_FR
198
Atteint http://test-eole.ac-dijon.fr precise/main Translation-fr
199
Atteint http://test-eole.ac-dijon.fr precise/main Translation-en
200
Atteint http://test-eole.ac-dijon.fr precise/multiverse Translation-fr_FR
201
Atteint http://test-eole.ac-dijon.fr precise/multiverse Translation-fr
202
Atteint http://test-eole.ac-dijon.fr precise/multiverse Translation-en
203
Atteint http://test-eole.ac-dijon.fr precise/restricted Translation-fr_FR
204
Atteint http://test-eole.ac-dijon.fr precise/restricted Translation-fr
205
Atteint http://test-eole.ac-dijon.fr precise/restricted Translation-en
206
Atteint http://test-eole.ac-dijon.fr precise/universe Translation-fr_FR
207
Atteint http://test-eole.ac-dijon.fr precise/universe Translation-fr
208
Atteint http://test-eole.ac-dijon.fr precise/universe Translation-en
209
Atteint http://test-eole.ac-dijon.fr precise-security/main Translation-en
210
Atteint http://test-eole.ac-dijon.fr precise-security/multiverse Translation-en
211
Atteint http://test-eole.ac-dijon.fr precise-security/restricted Translation-en
212
Atteint http://test-eole.ac-dijon.fr precise-security/universe Translation-en
213
Atteint http://test-eole.ac-dijon.fr precise-updates/main Translation-fr
214
Atteint http://test-eole.ac-dijon.fr precise-updates/main Translation-en
215
Atteint http://test-eole.ac-dijon.fr precise-updates/multiverse Translation-fr
216
Atteint http://test-eole.ac-dijon.fr precise-updates/multiverse Translation-en
217
Atteint http://test-eole.ac-dijon.fr precise-updates/restricted Translation-fr
218
Atteint http://test-eole.ac-dijon.fr precise-updates/restricted Translation-en
219
Atteint http://test-eole.ac-dijon.fr precise-updates/universe Translation-fr
220
Atteint http://test-eole.ac-dijon.fr precise-updates/universe Translation-en
221
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud Translation-fr_FR
222
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud Translation-fr
223
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/cloud Translation-en
224
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/main Translation-fr_FR
225
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/main Translation-fr
226
Ign http://test-eole.ac-dijon.fr eole-2.4-unstable/main Translation-en
227
Lecture des listes de paquets...
228
_________________________________ test_upgrade _________________________________
229

    
230
    def test_upgrade():
231
        repo.pkgmgr.set_test_run(True)
232
>       repo.upgrade()
233

    
234
/usr/share/pyeole/test_pkg.py:57: 
235
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
236

    
237
self = <pyeole.pkg.EolePkg object at 0x17c63d0>, container = u'all'
238
dist = False, silent = False
239

    
240
    def upgrade(self, container=None, dist=False, silent=False):
241
        """Upgrade all packages with new available versions
242
    
243
            :param silent: do not display progress informations
244
            :type silent: `bool`
245
    
246
            """
247
        func = u'upgrade'
248
        action = u'upgrade'
249
        if dist:
250
            action = u'dist-upgrade'
251
    
252
        if container is None:
253
            container = u'all'
254
    
255
        return self._run(action=action,
256
                         func=func,
257
                         container=container,
258
                         dist_upgrade=dist,
259
>                        silent=silent)
260

    
261
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:1175: 
262
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
263

    
264
self = <pyeole.pkg.EolePkg object at 0x17c63d0>, action = u'upgrade'
265
func = u'upgrade', container = u'all'
266

    
267
    def _run(self, action, func, container=None, **kwargs):
268
        """Run package manager actions for all containers
269
    
270
            Print a JSON dump of return value if asked.
271
    
272
            :param action: action to perform
273
            :type action: `str`
274
            :param func: package manager method to run
275
            :type func: `str`
276
            :param container: container name
277
            :type container: `str`
278
            :return: return values of commands by containers
279
            :rtype: `dict`
280
    
281
            """
282
        ret = {}
283
    
284
        if container in [None, 'all', 'root', 'current']:
285
            # Run for the current container
286
            ret.update(self.pkgmgr._run(action=action,
287
                                        func=func,
288
                                        container=container,
289
                                        **kwargs))
290
    
291
        if container not in [None, 'root', 'current']:
292
            # Try for containers
293
            ret.update(self.pkgmgr._run_containers(action=action,
294
                                                   container=container,
295
>                                                  **kwargs))
296

    
297
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:1038: 
298
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
299

    
300
self = <pyeole.pkg.EolePkgApt object at 0x17c6450>, action = u'upgrade'
301
container = u'all', silent = False
302

    
303
    def _run_containers(self, action, container, silent=False, **kwargs):
304
        """Run apt-eole in containers
305
            """
306
        outputs = {}
307
        if self.container_mode and container != u'current':
308
            groups = self.get_groups()
309
            no_container = False
310
            if container == u'all':
311
>               containers = groups['groups']
312
E               KeyError: 'groups'
313

    
314
/usr/lib/python2.7/dist-packages/pyeole/pkg.py:538: KeyError
315
------------------------------- Captured stdout --------------------------------
316
Lecture des listes de paquets...
317
Construction de l'arbre des dépendances...
318
Lecture des informations d'état...
319
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
320
===================== 2 failed, 7 passed in 61.49 seconds ======================