summaryrefslogtreecommitdiff
path: root/tests/functional/api/test_clusters.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-11-29 20:57:05 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-11-29 20:59:53 -0800
commit86ab04e54ea4175f10053decfad5086cda7aa024 (patch)
tree083fefada982c795e2415092794db429abb0c184 /tests/functional/api/test_clusters.py
parent5a1678f43184bd459132102cc13cf8426fe0449d (diff)
downloadgitlab-jlvillal/dead_master.tar.gz
Close-out `master` branchjlvillal/dead_master
Until we delete the `master` branch, delete all content except a short README that tells people to use the `main` branch.
Diffstat (limited to 'tests/functional/api/test_clusters.py')
-rw-r--r--tests/functional/api/test_clusters.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/functional/api/test_clusters.py b/tests/functional/api/test_clusters.py
deleted file mode 100644
index 8930aad..0000000
--- a/tests/functional/api/test_clusters.py
+++ /dev/null
@@ -1,46 +0,0 @@
-def test_project_clusters(project):
- project.clusters.create(
- {
- "name": "cluster1",
- "platform_kubernetes_attributes": {
- "api_url": "http://url",
- "token": "tokenval",
- },
- }
- )
- clusters = project.clusters.list()
- assert len(clusters) == 1
-
- cluster = clusters[0]
- 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 len(project.clusters.list()) == 0
-
-
-def test_group_clusters(group):
- group.clusters.create(
- {
- "name": "cluster1",
- "platform_kubernetes_attributes": {
- "api_url": "http://url",
- "token": "tokenval",
- },
- }
- )
- clusters = group.clusters.list()
- assert len(clusters) == 1
-
- cluster = clusters[0]
- 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 len(group.clusters.list()) == 0