functional tests - remove datadriven tests from smoke tests
Bug #1420868 reported by
Steve Heyman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-barbicanclient |
Fix Released
|
Medium
|
Thomas Dinkjian |
Bug Description
We have data-driven tests in our smoke tests that really belong under functional.
Changed in python-barbicanclient: | |
status: | Confirmed → In Progress |
Changed in python-barbicanclient: | |
milestone: | none → 3.0.3 |
Changed in python-barbicanclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have confirmed that there was a Data driven test in our smoke test file.
@utils. parameterized_ dataset( {
'alphanumeric' : ['1f34ds'],
'punctuation' : ['~!@#$ %^&*()_ +`-={}[ ]|:;<>, .?'], 4bc7-4821- 8df0-dc2ca8e112 bb'], ).zfill( 255))], attr('positive' ) get_defaults_ metadata_ w_valid_ name(self, name): create_ secret( secret_ create_ defaults_ data)
test_model. name = name
'uuid': ['54262d9d-
'len_255': [str(bytearray(
'empty': [''],
'null': [None]
})
@testcase.
def test_secret_
"""Covers getting and checking a secret's metadata."""
test_model = self.behaviors.
secret_ref = self.behaviors. store_secret( test_model)
self.assertIsN otNone( secret_ ref)
get_resp = self.behaviors. get_secret( secret_ ref)
self.assertEqu al(get_ resp.status, "ACTIVE")
self.assertEqu al(get_ resp.name, name)
self.assertEqu al(get_ resp.mode, test_model.mode)
self.assertEqu al(get_ resp.algorithm, test_model. algorithm)
self.assertEqu al(get_ resp.bit_ length, test_model. bit_length)
I have moved this test to the functional test suite.