def METHOD_NAME(self):
    url = reverse(viewname="v1:cluster-details", kwargs={"cluster_id": self.cluster.pk})
    with self.another_user_logged_in(username="admin", password="admin"):
        for name in self.valid_names:
            with self.subTest("correct-patch", name=name):
                response = self.client.patch(path=url, data={"name": name}, content_type=APPLICATION_JSON)
                self.assertEqual(response.status_code, status.HTTP_200_OK)
                self.assertEqual(response.json()["name"], name)
            with self.subTest("correct-put", name=name):
                response = self.client.put(path=url, data={"name": name}, content_type=APPLICATION_JSON)
                self.assertEqual(response.status_code, status.HTTP_200_OK)
                self.assertEqual(response.json()["name"], name)
        for name in self.invalid_names:
            with self.subTest("incorrect-patch", name=name):
                response = self.client.patch(path=url, data={"name": name}, content_type=APPLICATION_JSON)
                self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
                self.assertEqual(response.json()["code"], "BAD_REQUEST")
            with self.subTest("incorrect-put", name=name):
                response = self.client.put(path=url, data={"name": name}, content_type=APPLICATION_JSON)
                self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
                self.assertEqual(response.json()["code"], "BAD_REQUEST")