summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-07-28 20:59:28 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-07-28 21:01:43 -0700
commitb46b3791707ac76d501d6b7b829d1370925fd614 (patch)
tree7f32b60d3025f20b0de6c729733ff8478548265e /tests
parent271f6880dbb15b56305efc1fc73924ac26fb97ad (diff)
downloadgitlab-b46b3791707ac76d501d6b7b829d1370925fd614.tar.gz
chore(clusters): deprecate clusters support
Cluster support was deprecated in GitLab 14.5 [1]. And disabled by default in GitLab 15.0 [2] * Update docs to mark clusters as deprecated * Remove testing of clusters [1] https://docs.gitlab.com/ee/api/project_clusters.html [2] https://gitlab.com/groups/gitlab-org/configure/-/epics/8
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/api/test_clusters.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/functional/api/test_clusters.py b/tests/functional/api/test_clusters.py
deleted file mode 100644
index 32d1488..0000000
--- a/tests/functional/api/test_clusters.py
+++ /dev/null
@@ -1,44 +0,0 @@
-def test_project_clusters(project):
- cluster = project.clusters.create(
- {
- "name": "cluster1",
- "platform_kubernetes_attributes": {
- "api_url": "http://url",
- "token": "tokenval",
- },
- }
- )
- clusters = project.clusters.list()
- assert cluster in clusters
-
- cluster.platform_kubernetes_attributes = {"api_url": "http://newurl"}
- cluster.save()
-
- cluster = project.clusters.list()[0]
- assert cluster.platform_kubernetes["api_url"] == "http://newurl"
-
- cluster.delete()
- assert cluster not in project.clusters.list()
-
-
-def test_group_clusters(group):
- cluster = group.clusters.create(
- {
- "name": "cluster1",
- "platform_kubernetes_attributes": {
- "api_url": "http://url",
- "token": "tokenval",
- },
- }
- )
- clusters = group.clusters.list()
- assert cluster in clusters
-
- cluster.platform_kubernetes_attributes = {"api_url": "http://newurl"}
- cluster.save()
-
- cluster = group.clusters.list()[0]
- assert cluster.platform_kubernetes["api_url"] == "http://newurl"
-
- cluster.delete()
- assert cluster not in group.clusters.list()