Use gen_resource_name in create/delete user test

Using uuid in every testcase is already overcome.

Change-Id: Ib651a0e97e8e19b12b0a2735a7694d0234e378fc
This commit is contained in:
Martin Pavlasek 2015-04-13 11:38:44 +02:00 committed by Martin Pavlásek
parent e44d95fa21
commit 31e189687e

View File

@ -9,14 +9,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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 uuid
from openstack_dashboard.test.integration_tests import helpers from openstack_dashboard.test.integration_tests import helpers
class TestUser(helpers.AdminTestCase): class TestUser(helpers.AdminTestCase):
USER_NAME = "user_" + str(uuid.uuid4()) USER_NAME = helpers.gen_random_resource_name("user")
def test_create_delete_user(self): def test_create_delete_user(self):
users_page = self.home_pg.go_to_identity_userspage() users_page = self.home_pg.go_to_identity_userspage()