From 7520d6f8515d9e138f9ac9ccd809a40d86063663 Mon Sep 17 00:00:00 2001
From: Te Hung Tseng <te-hung.tseng@ess.eu>
Date: Tue, 6 Apr 2021 10:37:03 +0200
Subject: [PATCH] Updated unit test and changelog

---
 CHANGELOG.rst                | 7 +++++++
 tests/functional/test_api.py | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index dd7b1b3..eca2d7a 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,13 @@
 Changelog
 =========
 
+Version 2021.04.06
+------------------
+
+- Validate group names (INFRA-3135)
+- Add warning text for creating vm (INFRA-3292)
+- Paginate history in ansible groups and hosts (INFRA-3136)
+
 Version 2020.11.25
 ------------------
 
diff --git a/tests/functional/test_api.py b/tests/functional/test_api.py
index c9f1a71..9945dec 100644
--- a/tests/functional/test_api.py
+++ b/tests/functional/test_api.py
@@ -1568,7 +1568,7 @@ def test_create_ansible_group(client, admin_token):
     response = post(client, f"{API_URL}/network/groups", data=data, token=admin_token)
     check_response_message(
         response,
-        "(psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint",
+        "Group name matches an existing group",
         422,
     )
 
-- 
GitLab