Replaces uuid.uuid4 with uuidutils.generate_uuid()
Change-Id: I2ccd4067c366aa5332602626d5d8ac48612ebf4d Closes-Bug: #1082248
This commit is contained in:
parent
a8a23b5395
commit
0e9c8a3118
|
@ -12,9 +12,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import uuid
|
||||
|
||||
from oslo_serialization import jsonutils
|
||||
from oslo_utils import uuidutils
|
||||
from tempest import config
|
||||
from tempest.lib.common import rest_client
|
||||
|
||||
|
@ -28,7 +27,7 @@ class V2MessagingClient(rest_client.RestClient):
|
|||
|
||||
self.uri_prefix = 'v2'
|
||||
|
||||
client_id = uuid.uuid4().hex
|
||||
client_id = uuidutils.generate_uuid().hex
|
||||
self.headers = {'Client-ID': client_id}
|
||||
|
||||
def get_resp(self, resp, body):
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import uuid
|
||||
|
||||
from oslo_serialization import jsonutils
|
||||
from oslo_utils import timeutils as tu
|
||||
from oslo_utils import uuidutils
|
||||
|
||||
from senlin.db.sqlalchemy import api as db_api
|
||||
from senlin.engine import parser
|
||||
|
@ -47,7 +47,7 @@ sample_action = '''
|
|||
'''
|
||||
|
||||
|
||||
UUIDs = (UUID1, UUID2, UUID3) = sorted([str(uuid.uuid4())
|
||||
UUIDs = (UUID1, UUID2, UUID3) = sorted([uuidutils.generate_uuid()
|
||||
for x in range(3)])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue