Test's random name gen now uses uuid4

This test used a random integer to generate the name of a file.  Although
it doesn't pose a real problem, it's probably better just to drop a UUID
in instead of a 3-digit number, to avoid collisions.

Partially implements blueprint: selenium-integration-testing

Change-Id: I95fd2c25dc4e2e5ddc47cd390b472c8ee2310e97
Closes-Bug: 1399219
This commit is contained in:
Matt Borland 2014-12-15 14:13:39 -07:00
parent 926fa00073
commit 3f17e9d5ed

View File

@ -13,14 +13,14 @@
# License for the specific language governing permissions and limitations
# under the License.
import random
import uuid
from openstack_dashboard.test.integration_tests import helpers
class TestKeypair(helpers.TestCase):
"""Checks that the user is able to create/delete keypair."""
KEYPAIR_NAME = 'horizonkeypair' + str(random.randint(0, 1000))
KEYPAIR_NAME = 'horizonkeypair_' + str(uuid.uuid4())
def test_keypair(self):
accesssecurity_page = self.home_pg.go_to_accesssecurity_page()