yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60705
[Bug 1658200] [NEW] Running tests via nosestests fails due to insufficient test isolation
Public bug reported:
I don't know if we care about this or not, since it involves a test
harness other than tox.
Attempting to run the unittests using nosetests (nosetets
tests/unittests) will fail because the _set_mock_metadata method appears
to only run once...so tests that expect non-default metadata (such as
test_instance_level_keys_replace_project_level_keys) will fail if any
prior test calls _set_mock_metadata().
This can be avoided by calling httppretty.reset() before calling
httppretty.register_uri(...).
** Affects: cloud-init
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1658200
Title:
Running tests via nosestests fails due to insufficient test isolation
Status in cloud-init:
New
Bug description:
I don't know if we care about this or not, since it involves a test
harness other than tox.
Attempting to run the unittests using nosetests (nosetets
tests/unittests) will fail because the _set_mock_metadata method
appears to only run once...so tests that expect non-default metadata
(such as test_instance_level_keys_replace_project_level_keys) will
fail if any prior test calls _set_mock_metadata().
This can be avoided by calling httppretty.reset() before calling
httppretty.register_uri(...).
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1658200/+subscriptions
Follow ups