Merge "tests: Silence noisy tests"
This commit is contained in:
commit
11757852a9
placement/tests/functional
@ -10,6 +10,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import io
|
||||||
|
|
||||||
|
import fixtures
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_upgradecheck import upgradecheck
|
from oslo_upgradecheck import upgradecheck
|
||||||
from oslo_utils.fixture import uuidsentinel
|
from oslo_utils.fixture import uuidsentinel
|
||||||
@ -24,12 +27,15 @@ from placement.tests.functional.db import test_consumer
|
|||||||
|
|
||||||
|
|
||||||
class UpgradeCheckIncompleteConsumersTestCase(
|
class UpgradeCheckIncompleteConsumersTestCase(
|
||||||
base.TestCase, test_consumer.CreateIncompleteAllocationsMixin):
|
base.TestCase, test_consumer.CreateIncompleteAllocationsMixin,
|
||||||
|
):
|
||||||
"""Tests the "Incomplete Consumers" check for the
|
"""Tests the "Incomplete Consumers" check for the
|
||||||
"placement-status upgrade check" command.
|
"placement-status upgrade check" command.
|
||||||
"""
|
"""
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(UpgradeCheckIncompleteConsumersTestCase, self).setUp()
|
super(UpgradeCheckIncompleteConsumersTestCase, self).setUp()
|
||||||
|
self.output = io.StringIO()
|
||||||
|
self.useFixture(fixtures.MonkeyPatch('sys.stdout', self.output))
|
||||||
config = cfg.ConfigOpts()
|
config = cfg.ConfigOpts()
|
||||||
conf.register_opts(config)
|
conf.register_opts(config)
|
||||||
config(args=[], project='placement')
|
config(args=[], project='placement')
|
||||||
|
@ -49,7 +49,6 @@ tests:
|
|||||||
- name: system admin can create new resource provider
|
- name: system admin can create new resource provider
|
||||||
POST: /resource_providers
|
POST: /resource_providers
|
||||||
request_headers: *system_admin_headers
|
request_headers: *system_admin_headers
|
||||||
verbose: True
|
|
||||||
data:
|
data:
|
||||||
name: $ENVIRON['RP_NAME']
|
name: $ENVIRON['RP_NAME']
|
||||||
uuid: $ENVIRON['RP_UUID']
|
uuid: $ENVIRON['RP_UUID']
|
||||||
|
@ -49,7 +49,6 @@ tests:
|
|||||||
- name: system admin can create new resource provider
|
- name: system admin can create new resource provider
|
||||||
POST: /resource_providers
|
POST: /resource_providers
|
||||||
request_headers: *system_admin_headers
|
request_headers: *system_admin_headers
|
||||||
verbose: true
|
|
||||||
data:
|
data:
|
||||||
name: $ENVIRON['RP_NAME']
|
name: $ENVIRON['RP_NAME']
|
||||||
uuid: $ENVIRON['RP_UUID']
|
uuid: $ENVIRON['RP_UUID']
|
||||||
|
Loading…
Reference in New Issue
Block a user