From 5812feceeb7e90c85f378dbdd6ce890a3c8a5d5f Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 15 Jan 2024 17:32:25 +0100 Subject: [PATCH] test: use random username and password for test user --- test/c8y_test/user_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/c8y_test/user_test.go b/test/c8y_test/user_test.go index 9aa658c8..b4ea6d1a 100644 --- a/test/c8y_test/user_test.go +++ b/test/c8y_test/user_test.go @@ -52,8 +52,9 @@ func TestUserService_GetUserByUsername(t *testing.T) { func TestUserService_CRUD(t *testing.T) { client := createTestClient() - - userInput := c8y.NewUser("myciuser01", "myciuser01@no-reply.org", "0d18dksd81j30d*64fl65") + name := "myciuser" + testingutils.RandomString(7) + password := testingutils.RandomString(32) + userInput := c8y.NewUser(name, name+"@no-reply.org", password) userInput. SetFirstName("User01"). SetLastName("CI")