Skip to content

hostinfo_history tests fail #9

@dwagon

Description

@dwagon
ERROR: test_actor (host.tests.test_cmd_history)
Make sure that we are saving the actor properly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1578, in test_actor
    output = self.cmd.handle(namespace)
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/commands/cmd_hostinfo_history.py", line 54, in handle
    if namespace.origin:
AttributeError: 'Namespace' object has no attribute 'origin'

======================================================================
ERROR: test_badhost (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1547, in test_badhost
    output = self.cmd.handle(namespace)
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/commands/cmd_hostinfo_history.py", line 45, in handle
    kvchanges = KeyValue.history.filter(hostid_id=host.id).order_by('history_date')
AttributeError: 'NoneType' object has no attribute 'id'

======================================================================
ERROR: test_noaudit (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1641, in test_noaudit
    output = self.cmd.handle(namespace)
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/commands/cmd_hostinfo_history.py", line 54, in handle
    if namespace.origin:
AttributeError: 'Namespace' object has no attribute 'origin'

======================================================================
ERROR: test_origin (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1558, in test_origin
    namespace = self.parser.parse_args(['-o', 'host_history_o'])
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1697, in parse_args
    self.error(msg % ' '.join(argv))
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 2367, in error
    self.exit(2, _('%s: error: %s\n') % (self.prog, message))
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 2355, in exit
    _sys.exit(status)
SystemExit: 2

======================================================================
ERROR: test_valadd (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1605, in test_valadd
    output = self.cmd.handle(namespace)
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/commands/cmd_hostinfo_history.py", line 54, in handle
    if namespace.origin:
AttributeError: 'Namespace' object has no attribute 'origin'

======================================================================
ERROR: test_valdelete (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1622, in test_valdelete
    output = self.cmd.handle(namespace)
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/commands/cmd_hostinfo_history.py", line 54, in handle
    if namespace.origin:
AttributeError: 'Namespace' object has no attribute 'origin'

======================================================================
FAIL: test_hostadd (host.tests.test_cmd_history)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dwagon/src/git/hostinfo/hostinfo/host/tests.py", line 1592, in test_hostadd
    self.assertTrue('added host_history_ha' in output[0])
AssertionError: False is not true

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions