Skip to content

Commit

Permalink
Rename users and change emails for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-belhadj committed Oct 18, 2023
1 parent dfca930 commit a1b61af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/test_service_catalog/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def setUp(self):
# ------------------------------
self.common_password = "p@ssw0rd"
# staff user (default user for all tests)
self.superuser = User.objects.create_superuser('admi1234', 'admin@hpe.com', self.common_password)
self.superuser_2 = User.objects.create_superuser('admin_2', 'admin_2@hpe.com', self.common_password)
self.superuser = User.objects.create_superuser('superuser', 'superuser@hpe.com', self.common_password)
self.superuser_2 = User.objects.create_superuser('superuser_2', 'superuser_2@hpe.com', self.common_password)
self.client.login(username=self.superuser.username, password=self.common_password)
# standard user
self.standard_user = User.objects.create_user('stan1234', 'stan.1234@hpe.com', self.common_password)
self.standard_user_2 = User.objects.create_user('other1234', 'other.guy@hpe.com', self.common_password)
self.standard_user = User.objects.create_user('standard_user', 'standard_user@hpe.com', self.common_password)
self.standard_user_2 = User.objects.create_user('standard_user_2', 'standard_user_2@hpe.com', self.common_password)

self.organization_admin_role = Role.objects.create(name="Organization manager")
self.team_member_role = Role.objects.create(name="Team member for tests")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_apply_jinja_template_to_survey_with_spec_variable(self):
"os": "linux"
}
self.test_instance.save()
expected_result = "linux stan.1234@hpe.com"
expected_result = "linux standard_user@hpe.com"
form_generator = FormGenerator(user=self.standard_user,
squest_request=self.test_request, squest_instance=self.test_instance)
form_generator._add_all_fields()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_swagger_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TestMonitoring(TestCase):

def test_can_get_swagger_view(self):
url = reverse('schema-swagger-ui') + "?format=openapi"
testing_user = User.objects.create_user('stan1234', 'stan.1234@hpe.com', 'password')
testing_user = User.objects.create_user('stan1234', 'standard_user@hpe.com', 'password')
self.client.force_login(testing_user)
response = self.client.get(url)
self.assertEqual(200, response.status_code)
Expand Down

0 comments on commit a1b61af

Please sign in to comment.