Ubuntu Pastebin

Paste from jbeedy at Thu, 14 Jan 2016 19:57:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
rootdir: /home/jbeedy/allcode/charms/layers/tls/unit_tests, inifile: 
collected 3 items

test_actions.py F.F

=================================== FAILURES ===================================
___________________________________ test_ca ____________________________________

    def test_ca():
>       ca()

test_actions.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_actions.py:13: in ca
    cert_auth("/tmp")
../lib/tlslib.py:58: in ca
    hookenv.service_name())
/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py:204: in service_name
    return local_unit().split('/')[0]
/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py:194: in local_unit
    return os.environ['JUJU_UNIT_NAME']
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'PROJECT_HOME': '/home/jbeedy/Devel', 'INTERFACE_PATH': '/home/jbeedy/allcode/charms/interfaces', 'SSH_CLIENT': '10.1...36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'USER': 'jbeedy'}
key = 'JUJU_UNIT_NAME'

    def __getitem__(self, key):
        if key in self.data:
            return self.data[key]
        if hasattr(self.__class__, "__missing__"):
            return self.__class__.__missing__(self, key)
>       raise KeyError(key)
E       KeyError: 'JUJU_UNIT_NAME'

/usr/lib/python2.7/UserDict.py:23: KeyError
_______________________________ test_server_cert _______________________________

    def test_server_cert():
>       server_cert()

test_actions.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_actions.py:29: in server_cert
    sc("/tmp")
../lib/tlslib.py:17: in server_cert
    copy_key(destination_directory, 'server')
../lib/tlslib.py:76: in copy_key
    path_name = hookenv.local_unit().replace('/', '_')
/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py:194: in local_unit
    return os.environ['JUJU_UNIT_NAME']
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'PROJECT_HOME': '/home/jbeedy/Devel', 'INTERFACE_PATH': '/home/jbeedy/allcode/charms/interfaces', 'SSH_CLIENT': '10.1...36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'USER': 'jbeedy'}
key = 'JUJU_UNIT_NAME'

    def __getitem__(self, key):
        if key in self.data:
            return self.data[key]
        if hasattr(self.__class__, "__missing__"):
            return self.__class__.__missing__(self, key)
>       raise KeyError(key)
E       KeyError: 'JUJU_UNIT_NAME'

/usr/lib/python2.7/UserDict.py:23: KeyError
====================== 2 failed, 1 passed in 0.15 seconds ======================
Download as text