codemie-test-harness 0.1.122__py3-none-any.whl → 0.1.123__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of codemie-test-harness might be problematic. Click here for more details.

@@ -1,173 +1,836 @@
1
- import os
2
-
3
- import pytest
4
-
5
1
  from tests.enums.tools import Toolkit, CloudTool
6
2
  from codemie_sdk.models.integration import CredentialTypes
7
3
  from tests.utils.aws_parameters_store import CredentialsUtil
8
4
 
9
5
  cloud_test_data = [
6
+ # (
7
+ # Toolkit.CLOUD,
8
+ # CloudTool.AWS,
9
+ # CredentialTypes.AWS,
10
+ # CredentialsUtil.aws_credentials(),
11
+ # {
12
+ # "query": {
13
+ # "service": "s3",
14
+ # "method_name": "list_buckets",
15
+ # "method_arguments": {},
16
+ # }
17
+ # },
18
+ # """
19
+ # {
20
+ # "ResponseMetadata":{
21
+ # "RequestId":"7F5A7MRRFPY9RPTC",
22
+ # "HostId":"YDtbO8lMQau9e0tDDDDC0GGnZnqQb1RxW9bRHQcV3P6v/FhWgLyVS63l79oBVOchAzQ9AXZeY1kCmeUWsoUTYg==",
23
+ # "HTTPStatusCode":200,
24
+ # "HTTPHeaders":{
25
+ # "x-amz-id-2":"YDtbO8lMQau9e0tDDDDC0GGnZnqQb1RxW9bRHQcV3P6v/FhWgLyVS63l79oBVOchAzQ9AXZeY1kCmeUWsoUTYg==",
26
+ # "x-amz-request-id":"7F5A7MRRFPY9RPTC",
27
+ # "date":"Wed, 25 Jun 2025 15:39:54 GMT",
28
+ # "content-type":"application/xml",
29
+ # "transfer-encoding":"chunked",
30
+ # "server":"AmazonS3"
31
+ # },
32
+ # "RetryAttempts":0
33
+ # },
34
+ # "Buckets":[
35
+ # {
36
+ # "Name":"az-v3-codemie-terraform-states-025066278959",
37
+ # "CreationDate": datetime.datetime(2025, 6, 20, 13, 31, 10, tzinfo=tzlocal())
38
+ # },
39
+ # {
40
+ # "Name":"codemie-bucket",
41
+ # "CreationDate": datetime.datetime(2025, 1, 29, 17, 30, 57, tzinfo=tzlocal())
42
+ # },
43
+ # {
44
+ # "Name":"codemie-it-terraform-states-025066278959",
45
+ # "CreationDate": datetime.datetime(2025, 6, 16, 21, 30, 46, tzinfo=tzlocal())
46
+ # },
47
+ # {
48
+ # "Name":"codemie-it-user-data-025066278959",
49
+ # "CreationDate": datetime.datetime(2025, 6, 16, 21, 30, 48, tzinfo=tzlocal())
50
+ # },
51
+ # {
52
+ # "Name":"codemie-terraform-states-025066278959",
53
+ # "CreationDate": datetime.datetime(2025, 6, 13, 13, 30, 50, tzinfo=tzlocal())
54
+ # },
55
+ # {
56
+ # "Name":"codemie-terraform-states-yevhen-l-025066278959",
57
+ # "CreationDate": datetime.datetime(2025, 6, 17, 9, 30, 58, tzinfo=tzlocal())
58
+ # },
59
+ # {
60
+ # "Name":"codemie-user-data-025066278959",
61
+ # "CreationDate": datetime.datetime(2025, 6, 16, 13, 31, 5, tzinfo=tzlocal())
62
+ # },
63
+ # {
64
+ # "Name":"codemie-yl-user-data-025066278959",
65
+ # "CreationDate": datetime.datetime(2025, 6, 17, 11, 31, 1, tzinfo=tzlocal())
66
+ # },
67
+ # {
68
+ # "Name":"epam-cloud-s3-access-logs-025066278959-eu-central-1",
69
+ # "CreationDate": datetime.datetime(2024, 11, 9, 19, 51, 46, tzinfo=tzlocal())
70
+ # },
71
+ # {
72
+ # "Name":"epam-cloud-s3-access-logs-025066278959-eu-north-1",
73
+ # "CreationDate": datetime.datetime(2025, 5, 17, 15, 31, 2, tzinfo=tzlocal())
74
+ # },
75
+ # {
76
+ # "Name":"epam-cloud-s3-access-logs-025066278959-eu-west-2",
77
+ # "CreationDate": datetime.datetime(2025, 5, 21, 15, 30, 57, tzinfo=tzlocal())
78
+ #
79
+ # },
80
+ # {
81
+ # "Name":"epam-cloud-s3-access-logs-025066278959-us-east-1",
82
+ # "CreationDate": datetime.datetime(2024, 11, 27, 15, 31, tzinfo=tzlocal())
83
+ # },
84
+ # {
85
+ # "Name":"sk-codemie-terraform-states-025066278959",
86
+ # "CreationDate": datetime.datetime(2025, 6, 4, 15, 30, 48, tzinfo=tzlocal())
87
+ # },
88
+ # {
89
+ # "Name":"terraform-states-025066278959",
90
+ # "CreationDate": datetime.datetime(2024, 11, 13, 22, 30, 57, tzinfo=tzlocal())
91
+ # }
92
+ # ],
93
+ # "Owner":{
94
+ # "ID":"978dcce1304506a42ed130c2cfdd87fe9c0652869232df15b4b5589a6481d4e5"
95
+ # }
96
+ # }
97
+ # """,
98
+ # ),
99
+ # (
100
+ # Toolkit.CLOUD,
101
+ # CloudTool.AZURE,
102
+ # CredentialTypes.AZURE,
103
+ # CredentialsUtil.azure_credentials(),
104
+ # {
105
+ # "method": "GET",
106
+ # "url": "https://management.azure.com/subscriptions/08679d2f-8945-4e08-8df8-b8e58626b13a/resourceGroups/krci-codemie-azure-env-rg?api-version=2021-04-01",
107
+ # },
108
+ # """
109
+ # {
110
+ # "id" : "/subscriptions/08679d2f-8945-4e08-8df8-b8e58626b13a/resourceGroups/krci-codemie-azure-env-rg",
111
+ # "name" : "krci-codemie-azure-env-rg",
112
+ # "type" : "Microsoft.Resources/resourceGroups",
113
+ # "location" : "westeurope",
114
+ # "tags" : {
115
+ # "environment" : "codemie-azure"
116
+ # },
117
+ # "properties" : {
118
+ # "provisioningState" : "Succeeded"
119
+ # }
120
+ # }
121
+ # """,
122
+ # ),
123
+ # pytest.param(
124
+ # Toolkit.CLOUD,
125
+ # CloudTool.GCP,
126
+ # CredentialTypes.GCP,
127
+ # CredentialsUtil.gcp_credentials(),
128
+ # {
129
+ # "method": "GET",
130
+ # "scopes": ["https://www.googleapis.com/auth/cloud-platform"],
131
+ # "url": "https://www.googleapis.com/storage/v1/b/009fb622-4e29-42aa-bafd-584c61f5e1e1",
132
+ # },
133
+ # """
134
+ # {
135
+ # "kind":"storage#bucket",
136
+ # "selfLink":"https://www.googleapis.com/storage/v1/b/009fb622-4e29-42aa-bafd-584c61f5e1e1",
137
+ # "id":"009fb622-4e29-42aa-bafd-584c61f5e1e1",
138
+ # "name":"009fb622-4e29-42aa-bafd-584c61f5e1e1",
139
+ # "projectNumber":"415940185513",
140
+ # "generation":"1731334834610581052",
141
+ # "metageneration":"1",
142
+ # "location":"US",
143
+ # "storageClass":"STANDARD",
144
+ # "etag":"CAE=",
145
+ # "timeCreated":"2024-11-11T14:20:34.897Z",
146
+ # "updated":"2024-11-11T14:20:34.897Z",
147
+ # "softDeletePolicy":{
148
+ # "retentionDurationSeconds":"604800",
149
+ # "effectiveTime":"2024-11-11T14:20:34.897Z"
150
+ # },
151
+ # "iamConfiguration":{
152
+ # "bucketPolicyOnly":{
153
+ # "enabled":false
154
+ # },
155
+ # "uniformBucketLevelAccess":{
156
+ # "enabled":false
157
+ # },
158
+ # "publicAccessPrevention":"inherited"
159
+ # },
160
+ # "locationType":"multi-region",
161
+ # "rpo":"DEFAULT"
162
+ # }
163
+ # """,
164
+ # marks=pytest.mark.skipif(
165
+ # os.getenv("ENV") == "azure",
166
+ # reason="Still have an issue with encoding long strings",
167
+ # ),
168
+ # ),
10
169
  (
11
170
  Toolkit.CLOUD,
12
- CloudTool.AWS,
13
- CredentialTypes.AWS,
14
- CredentialsUtil.aws_credentials(),
15
- {
16
- "query": {
17
- "service": "s3",
18
- "method_name": "list_buckets",
19
- "method_arguments": {},
20
- }
21
- },
171
+ CloudTool.KUBERNETES,
172
+ CredentialTypes.KUBERNETES,
173
+ CredentialsUtil.kubernetes_credentials(),
174
+ {"method": "GET", "suburl": "/api/v1/namespaces/argocd/services"},
22
175
  """
23
176
  {
24
- "ResponseMetadata":{
25
- "RequestId":"7F5A7MRRFPY9RPTC",
26
- "HostId":"YDtbO8lMQau9e0tDDDDC0GGnZnqQb1RxW9bRHQcV3P6v/FhWgLyVS63l79oBVOchAzQ9AXZeY1kCmeUWsoUTYg==",
27
- "HTTPStatusCode":200,
28
- "HTTPHeaders":{
29
- "x-amz-id-2":"YDtbO8lMQau9e0tDDDDC0GGnZnqQb1RxW9bRHQcV3P6v/FhWgLyVS63l79oBVOchAzQ9AXZeY1kCmeUWsoUTYg==",
30
- "x-amz-request-id":"7F5A7MRRFPY9RPTC",
31
- "date":"Wed, 25 Jun 2025 15:39:54 GMT",
32
- "content-type":"application/xml",
33
- "transfer-encoding":"chunked",
34
- "server":"AmazonS3"
35
- },
36
- "RetryAttempts":0
37
- },
38
- "Buckets":[
39
- {
40
- "Name":"az-v3-codemie-terraform-states-025066278959",
41
- "CreationDate": datetime.datetime(2025, 6, 20, 13, 31, 10, tzinfo=tzlocal())
42
- },
43
- {
44
- "Name":"codemie-bucket",
45
- "CreationDate": datetime.datetime(2025, 1, 29, 17, 30, 57, tzinfo=tzlocal())
46
- },
47
- {
48
- "Name":"codemie-it-terraform-states-025066278959",
49
- "CreationDate": datetime.datetime(2025, 6, 16, 21, 30, 46, tzinfo=tzlocal())
50
- },
51
- {
52
- "Name":"codemie-it-user-data-025066278959",
53
- "CreationDate": datetime.datetime(2025, 6, 16, 21, 30, 48, tzinfo=tzlocal())
54
- },
55
- {
56
- "Name":"codemie-terraform-states-025066278959",
57
- "CreationDate": datetime.datetime(2025, 6, 13, 13, 30, 50, tzinfo=tzlocal())
58
- },
59
- {
60
- "Name":"codemie-terraform-states-yevhen-l-025066278959",
61
- "CreationDate": datetime.datetime(2025, 6, 17, 9, 30, 58, tzinfo=tzlocal())
62
- },
63
- {
64
- "Name":"codemie-user-data-025066278959",
65
- "CreationDate": datetime.datetime(2025, 6, 16, 13, 31, 5, tzinfo=tzlocal())
66
- },
67
- {
68
- "Name":"codemie-yl-user-data-025066278959",
69
- "CreationDate": datetime.datetime(2025, 6, 17, 11, 31, 1, tzinfo=tzlocal())
70
- },
71
- {
72
- "Name":"epam-cloud-s3-access-logs-025066278959-eu-central-1",
73
- "CreationDate": datetime.datetime(2024, 11, 9, 19, 51, 46, tzinfo=tzlocal())
74
- },
75
- {
76
- "Name":"epam-cloud-s3-access-logs-025066278959-eu-north-1",
77
- "CreationDate": datetime.datetime(2025, 5, 17, 15, 31, 2, tzinfo=tzlocal())
78
- },
79
- {
80
- "Name":"epam-cloud-s3-access-logs-025066278959-eu-west-2",
81
- "CreationDate": datetime.datetime(2025, 5, 21, 15, 30, 57, tzinfo=tzlocal())
82
-
83
- },
84
- {
85
- "Name":"epam-cloud-s3-access-logs-025066278959-us-east-1",
86
- "CreationDate": datetime.datetime(2024, 11, 27, 15, 31, tzinfo=tzlocal())
87
- },
88
- {
89
- "Name":"sk-codemie-terraform-states-025066278959",
90
- "CreationDate": datetime.datetime(2025, 6, 4, 15, 30, 48, tzinfo=tzlocal())
91
- },
92
- {
93
- "Name":"terraform-states-025066278959",
94
- "CreationDate": datetime.datetime(2024, 11, 13, 22, 30, 57, tzinfo=tzlocal())
95
- }
96
- ],
97
- "Owner":{
98
- "ID":"978dcce1304506a42ed130c2cfdd87fe9c0652869232df15b4b5589a6481d4e5"
99
- }
100
- }
101
- """,
102
- ),
103
- (
104
- Toolkit.CLOUD,
105
- CloudTool.AZURE,
106
- CredentialTypes.AZURE,
107
- CredentialsUtil.azure_credentials(),
108
- {
109
- "method": "GET",
110
- "url": "https://management.azure.com/subscriptions/08679d2f-8945-4e08-8df8-b8e58626b13a/resourceGroups/krci-codemie-azure-env-rg?api-version=2021-04-01",
111
- },
112
- """
113
- {
114
- "id" : "/subscriptions/08679d2f-8945-4e08-8df8-b8e58626b13a/resourceGroups/krci-codemie-azure-env-rg",
115
- "name" : "krci-codemie-azure-env-rg",
116
- "type" : "Microsoft.Resources/resourceGroups",
117
- "location" : "westeurope",
118
- "tags" : {
119
- "environment" : "codemie-azure"
177
+ "kind" : "ServiceList",
178
+ "apiVersion" : "v1",
179
+ "metadata" : {
180
+ "resourceVersion" : "1940273724"
120
181
  },
121
- "properties" : {
122
- "provisioningState" : "Succeeded"
123
- }
124
- }
125
- """,
126
- ),
127
- pytest.param(
128
- Toolkit.CLOUD,
129
- CloudTool.GCP,
130
- CredentialTypes.GCP,
131
- CredentialsUtil.gcp_credentials(),
132
- {
133
- "method": "GET",
134
- "scopes": ["https://www.googleapis.com/auth/cloud-platform"],
135
- "url": "https://www.googleapis.com/storage/v1/b/009fb622-4e29-42aa-bafd-584c61f5e1e1",
136
- },
137
- """
138
- {
139
- "kind":"storage#bucket",
140
- "selfLink":"https://www.googleapis.com/storage/v1/b/009fb622-4e29-42aa-bafd-584c61f5e1e1",
141
- "id":"009fb622-4e29-42aa-bafd-584c61f5e1e1",
142
- "name":"009fb622-4e29-42aa-bafd-584c61f5e1e1",
143
- "projectNumber":"415940185513",
144
- "generation":"1731334834610581052",
145
- "metageneration":"1",
146
- "location":"US",
147
- "storageClass":"STANDARD",
148
- "etag":"CAE=",
149
- "timeCreated":"2024-11-11T14:20:34.897Z",
150
- "updated":"2024-11-11T14:20:34.897Z",
151
- "softDeletePolicy":{
152
- "retentionDurationSeconds":"604800",
153
- "effectiveTime":"2024-11-11T14:20:34.897Z"
154
- },
155
- "iamConfiguration":{
156
- "bucketPolicyOnly":{
157
- "enabled":false
158
- },
159
- "uniformBucketLevelAccess":{
160
- "enabled":false
161
- },
162
- "publicAccessPrevention":"inherited"
163
- },
164
- "locationType":"multi-region",
165
- "rpo":"DEFAULT"
182
+ "items" : [ {
183
+ "metadata" : {
184
+ "name" : "argo-cd-argocd-applicationset-controller",
185
+ "namespace" : "argocd",
186
+ "uid" : "db4e6042-41df-4b0d-88b6-7c69f2b5e109",
187
+ "resourceVersion" : "1915134165",
188
+ "creationTimestamp" : "2024-01-08T17:15:41Z",
189
+ "labels" : {
190
+ "app.kubernetes.io/component" : "applicationset-controller",
191
+ "app.kubernetes.io/instance" : "argo-cd",
192
+ "app.kubernetes.io/managed-by" : "Helm",
193
+ "app.kubernetes.io/name" : "argocd-applicationset-controller",
194
+ "app.kubernetes.io/part-of" : "argocd",
195
+ "app.kubernetes.io/version" : "v3.0.12",
196
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
197
+ "helm.sh/chart" : "argo-cd-8.2.5"
198
+ },
199
+ "managedFields" : [ {
200
+ "manager" : "argocd-controller",
201
+ "operation" : "Apply",
202
+ "apiVersion" : "v1",
203
+ "time" : "2025-08-01T14:44:31Z",
204
+ "fieldsType" : "FieldsV1",
205
+ "fieldsV1" : {
206
+ "f:metadata" : {
207
+ "f:labels" : {
208
+ "f:app.kubernetes.io/component" : { },
209
+ "f:app.kubernetes.io/instance" : { },
210
+ "f:app.kubernetes.io/managed-by" : { },
211
+ "f:app.kubernetes.io/name" : { },
212
+ "f:app.kubernetes.io/part-of" : { },
213
+ "f:app.kubernetes.io/version" : { },
214
+ "f:argocd.argoproj.io/instance-edp" : { },
215
+ "f:helm.sh/chart" : { }
216
+ }
217
+ },
218
+ "f:spec" : {
219
+ "f:ports" : {
220
+ "k:{\"port\":7000,\"protocol\":\"TCP\"}" : {
221
+ "." : { },
222
+ "f:name" : { },
223
+ "f:port" : { },
224
+ "f:targetPort" : { }
225
+ }
226
+ },
227
+ "f:selector" : { },
228
+ "f:type" : { }
229
+ }
230
+ }
231
+ } ]
232
+ },
233
+ "spec" : {
234
+ "ports" : [ {
235
+ "name" : "http-webhook",
236
+ "protocol" : "TCP",
237
+ "port" : 7000,
238
+ "targetPort" : "webhook"
239
+ } ],
240
+ "selector" : {
241
+ "app.kubernetes.io/instance" : "argo-cd",
242
+ "app.kubernetes.io/name" : "argocd-applicationset-controller"
243
+ },
244
+ "clusterIP" : "10.100.216.226",
245
+ "clusterIPs" : [ "10.100.216.226" ],
246
+ "type" : "ClusterIP",
247
+ "sessionAffinity" : "None",
248
+ "ipFamilies" : [ "IPv4" ],
249
+ "ipFamilyPolicy" : "SingleStack",
250
+ "internalTrafficPolicy" : "Cluster"
251
+ },
252
+ "status" : {
253
+ "loadBalancer" : { }
254
+ }
255
+ }, {
256
+ "metadata" : {
257
+ "name" : "argo-cd-argocd-repo-server",
258
+ "namespace" : "argocd",
259
+ "uid" : "9d0ab30b-04d7-4589-9fc6-35d99823dd90",
260
+ "resourceVersion" : "1915134170",
261
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
262
+ "labels" : {
263
+ "app.kubernetes.io/component" : "repo-server",
264
+ "app.kubernetes.io/instance" : "argo-cd",
265
+ "app.kubernetes.io/managed-by" : "Helm",
266
+ "app.kubernetes.io/name" : "argocd-repo-server",
267
+ "app.kubernetes.io/part-of" : "argocd",
268
+ "app.kubernetes.io/version" : "v3.0.12",
269
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
270
+ "helm.sh/chart" : "argo-cd-8.2.5"
271
+ },
272
+ "managedFields" : [ {
273
+ "manager" : "argocd-controller",
274
+ "operation" : "Apply",
275
+ "apiVersion" : "v1",
276
+ "time" : "2025-08-01T14:44:31Z",
277
+ "fieldsType" : "FieldsV1",
278
+ "fieldsV1" : {
279
+ "f:metadata" : {
280
+ "f:labels" : {
281
+ "f:app.kubernetes.io/component" : { },
282
+ "f:app.kubernetes.io/instance" : { },
283
+ "f:app.kubernetes.io/managed-by" : { },
284
+ "f:app.kubernetes.io/name" : { },
285
+ "f:app.kubernetes.io/part-of" : { },
286
+ "f:app.kubernetes.io/version" : { },
287
+ "f:argocd.argoproj.io/instance-edp" : { },
288
+ "f:helm.sh/chart" : { }
289
+ }
290
+ },
291
+ "f:spec" : {
292
+ "f:ports" : {
293
+ "k:{\"port\":8081,\"protocol\":\"TCP\"}" : {
294
+ "." : { },
295
+ "f:name" : { },
296
+ "f:port" : { },
297
+ "f:protocol" : { },
298
+ "f:targetPort" : { }
299
+ }
300
+ },
301
+ "f:selector" : { }
302
+ }
303
+ }
304
+ } ]
305
+ },
306
+ "spec" : {
307
+ "ports" : [ {
308
+ "name" : "tcp-repo-server",
309
+ "protocol" : "TCP",
310
+ "port" : 8081,
311
+ "targetPort" : "repo-server"
312
+ } ],
313
+ "selector" : {
314
+ "app.kubernetes.io/instance" : "argo-cd",
315
+ "app.kubernetes.io/name" : "argocd-repo-server"
316
+ },
317
+ "clusterIP" : "10.100.240.197",
318
+ "clusterIPs" : [ "10.100.240.197" ],
319
+ "type" : "ClusterIP",
320
+ "sessionAffinity" : "None",
321
+ "ipFamilies" : [ "IPv4" ],
322
+ "ipFamilyPolicy" : "SingleStack",
323
+ "internalTrafficPolicy" : "Cluster"
324
+ },
325
+ "status" : {
326
+ "loadBalancer" : { }
327
+ }
328
+ }, {
329
+ "metadata" : {
330
+ "name" : "argo-cd-argocd-server",
331
+ "namespace" : "argocd",
332
+ "uid" : "9d36eaa8-fb31-4073-a36c-3207ed696514",
333
+ "resourceVersion" : "1915134167",
334
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
335
+ "labels" : {
336
+ "app.kubernetes.io/component" : "server",
337
+ "app.kubernetes.io/instance" : "argo-cd",
338
+ "app.kubernetes.io/managed-by" : "Helm",
339
+ "app.kubernetes.io/name" : "argocd-server",
340
+ "app.kubernetes.io/part-of" : "argocd",
341
+ "app.kubernetes.io/version" : "v3.0.12",
342
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
343
+ "helm.sh/chart" : "argo-cd-8.2.5"
344
+ },
345
+ "managedFields" : [ {
346
+ "manager" : "argocd-controller",
347
+ "operation" : "Apply",
348
+ "apiVersion" : "v1",
349
+ "time" : "2025-08-01T14:44:31Z",
350
+ "fieldsType" : "FieldsV1",
351
+ "fieldsV1" : {
352
+ "f:metadata" : {
353
+ "f:labels" : {
354
+ "f:app.kubernetes.io/component" : { },
355
+ "f:app.kubernetes.io/instance" : { },
356
+ "f:app.kubernetes.io/managed-by" : { },
357
+ "f:app.kubernetes.io/name" : { },
358
+ "f:app.kubernetes.io/part-of" : { },
359
+ "f:app.kubernetes.io/version" : { },
360
+ "f:argocd.argoproj.io/instance-edp" : { },
361
+ "f:helm.sh/chart" : { }
362
+ }
363
+ },
364
+ "f:spec" : {
365
+ "f:ports" : {
366
+ "k:{\"port\":80,\"protocol\":\"TCP\"}" : {
367
+ "." : { },
368
+ "f:name" : { },
369
+ "f:port" : { },
370
+ "f:protocol" : { },
371
+ "f:targetPort" : { }
372
+ },
373
+ "k:{\"port\":443,\"protocol\":\"TCP\"}" : {
374
+ "." : { },
375
+ "f:name" : { },
376
+ "f:port" : { },
377
+ "f:protocol" : { },
378
+ "f:targetPort" : { }
379
+ }
380
+ },
381
+ "f:selector" : { },
382
+ "f:sessionAffinity" : { },
383
+ "f:type" : { }
384
+ }
385
+ }
386
+ } ]
387
+ },
388
+ "spec" : {
389
+ "ports" : [ {
390
+ "name" : "http",
391
+ "protocol" : "TCP",
392
+ "port" : 80,
393
+ "targetPort" : 8080
394
+ }, {
395
+ "name" : "https",
396
+ "protocol" : "TCP",
397
+ "port" : 443,
398
+ "targetPort" : 8080
399
+ } ],
400
+ "selector" : {
401
+ "app.kubernetes.io/instance" : "argo-cd",
402
+ "app.kubernetes.io/name" : "argocd-server"
403
+ },
404
+ "clusterIP" : "10.100.240.149",
405
+ "clusterIPs" : [ "10.100.240.149" ],
406
+ "type" : "ClusterIP",
407
+ "sessionAffinity" : "None",
408
+ "ipFamilies" : [ "IPv4" ],
409
+ "ipFamilyPolicy" : "SingleStack",
410
+ "internalTrafficPolicy" : "Cluster"
411
+ },
412
+ "status" : {
413
+ "loadBalancer" : { }
414
+ }
415
+ }, {
416
+ "metadata" : {
417
+ "name" : "argo-cd-redis-ha",
418
+ "namespace" : "argocd",
419
+ "uid" : "6bc23815-6346-4986-aae6-069aff8d17bf",
420
+ "resourceVersion" : "1915134169",
421
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
422
+ "labels" : {
423
+ "app" : "redis-ha",
424
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
425
+ "chart" : "redis-ha-4.33.7",
426
+ "heritage" : "Helm",
427
+ "release" : "argo-cd"
428
+ },
429
+ "managedFields" : [ {
430
+ "manager" : "argocd-controller",
431
+ "operation" : "Apply",
432
+ "apiVersion" : "v1",
433
+ "time" : "2025-08-01T14:44:31Z",
434
+ "fieldsType" : "FieldsV1",
435
+ "fieldsV1" : {
436
+ "f:metadata" : {
437
+ "f:annotations" : { },
438
+ "f:labels" : {
439
+ "f:app" : { },
440
+ "f:argocd.argoproj.io/instance-edp" : { },
441
+ "f:chart" : { },
442
+ "f:heritage" : { },
443
+ "f:release" : { }
444
+ }
445
+ },
446
+ "f:spec" : {
447
+ "f:clusterIP" : { },
448
+ "f:ports" : {
449
+ "k:{\"port\":6379,\"protocol\":\"TCP\"}" : {
450
+ "." : { },
451
+ "f:name" : { },
452
+ "f:port" : { },
453
+ "f:protocol" : { },
454
+ "f:targetPort" : { }
455
+ },
456
+ "k:{\"port\":26379,\"protocol\":\"TCP\"}" : {
457
+ "." : { },
458
+ "f:name" : { },
459
+ "f:port" : { },
460
+ "f:protocol" : { },
461
+ "f:targetPort" : { }
462
+ }
463
+ },
464
+ "f:selector" : { },
465
+ "f:type" : { }
466
+ }
467
+ }
468
+ } ]
469
+ },
470
+ "spec" : {
471
+ "ports" : [ {
472
+ "name" : "tcp-server",
473
+ "protocol" : "TCP",
474
+ "port" : 6379,
475
+ "targetPort" : "redis"
476
+ }, {
477
+ "name" : "tcp-sentinel",
478
+ "protocol" : "TCP",
479
+ "port" : 26379,
480
+ "targetPort" : "sentinel"
481
+ } ],
482
+ "selector" : {
483
+ "app" : "redis-ha",
484
+ "release" : "argo-cd"
485
+ },
486
+ "clusterIP" : "None",
487
+ "clusterIPs" : [ "None" ],
488
+ "type" : "ClusterIP",
489
+ "sessionAffinity" : "None",
490
+ "ipFamilies" : [ "IPv4" ],
491
+ "ipFamilyPolicy" : "SingleStack",
492
+ "internalTrafficPolicy" : "Cluster"
493
+ },
494
+ "status" : {
495
+ "loadBalancer" : { }
496
+ }
497
+ }, {
498
+ "metadata" : {
499
+ "name" : "argo-cd-redis-ha-announce-0",
500
+ "namespace" : "argocd",
501
+ "uid" : "bcdb4ff4-4910-410b-b232-c7eba1d37884",
502
+ "resourceVersion" : "1915134163",
503
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
504
+ "labels" : {
505
+ "app" : "redis-ha",
506
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
507
+ "chart" : "redis-ha-4.33.7",
508
+ "heritage" : "Helm",
509
+ "release" : "argo-cd"
510
+ },
511
+ "managedFields" : [ {
512
+ "manager" : "argocd-controller",
513
+ "operation" : "Apply",
514
+ "apiVersion" : "v1",
515
+ "time" : "2025-08-01T14:44:31Z",
516
+ "fieldsType" : "FieldsV1",
517
+ "fieldsV1" : {
518
+ "f:metadata" : {
519
+ "f:annotations" : { },
520
+ "f:labels" : {
521
+ "f:app" : { },
522
+ "f:argocd.argoproj.io/instance-edp" : { },
523
+ "f:chart" : { },
524
+ "f:heritage" : { },
525
+ "f:release" : { }
526
+ }
527
+ },
528
+ "f:spec" : {
529
+ "f:ports" : {
530
+ "k:{\"port\":6379,\"protocol\":\"TCP\"}" : {
531
+ "." : { },
532
+ "f:name" : { },
533
+ "f:port" : { },
534
+ "f:protocol" : { },
535
+ "f:targetPort" : { }
536
+ },
537
+ "k:{\"port\":26379,\"protocol\":\"TCP\"}" : {
538
+ "." : { },
539
+ "f:name" : { },
540
+ "f:port" : { },
541
+ "f:protocol" : { },
542
+ "f:targetPort" : { }
543
+ }
544
+ },
545
+ "f:publishNotReadyAddresses" : { },
546
+ "f:selector" : { },
547
+ "f:type" : { }
548
+ }
549
+ }
550
+ } ]
551
+ },
552
+ "spec" : {
553
+ "ports" : [ {
554
+ "name" : "tcp-server",
555
+ "protocol" : "TCP",
556
+ "port" : 6379,
557
+ "targetPort" : "redis"
558
+ }, {
559
+ "name" : "tcp-sentinel",
560
+ "protocol" : "TCP",
561
+ "port" : 26379,
562
+ "targetPort" : "sentinel"
563
+ } ],
564
+ "selector" : {
565
+ "app" : "redis-ha",
566
+ "release" : "argo-cd",
567
+ "statefulset.kubernetes.io/pod-name" : "argo-cd-redis-ha-server-0"
568
+ },
569
+ "clusterIP" : "10.100.8.41",
570
+ "clusterIPs" : [ "10.100.8.41" ],
571
+ "type" : "ClusterIP",
572
+ "sessionAffinity" : "None",
573
+ "publishNotReadyAddresses" : true,
574
+ "ipFamilies" : [ "IPv4" ],
575
+ "ipFamilyPolicy" : "SingleStack",
576
+ "internalTrafficPolicy" : "Cluster"
577
+ },
578
+ "status" : {
579
+ "loadBalancer" : { }
580
+ }
581
+ }, {
582
+ "metadata" : {
583
+ "name" : "argo-cd-redis-ha-announce-1",
584
+ "namespace" : "argocd",
585
+ "uid" : "171a3c5a-19f3-4489-adcc-d64e52e0fe56",
586
+ "resourceVersion" : "1915134166",
587
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
588
+ "labels" : {
589
+ "app" : "redis-ha",
590
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
591
+ "chart" : "redis-ha-4.33.7",
592
+ "heritage" : "Helm",
593
+ "release" : "argo-cd"
594
+ },
595
+ "managedFields" : [ {
596
+ "manager" : "argocd-controller",
597
+ "operation" : "Apply",
598
+ "apiVersion" : "v1",
599
+ "time" : "2025-08-01T14:44:31Z",
600
+ "fieldsType" : "FieldsV1",
601
+ "fieldsV1" : {
602
+ "f:metadata" : {
603
+ "f:annotations" : { },
604
+ "f:labels" : {
605
+ "f:app" : { },
606
+ "f:argocd.argoproj.io/instance-edp" : { },
607
+ "f:chart" : { },
608
+ "f:heritage" : { },
609
+ "f:release" : { }
610
+ }
611
+ },
612
+ "f:spec" : {
613
+ "f:ports" : {
614
+ "k:{\"port\":6379,\"protocol\":\"TCP\"}" : {
615
+ "." : { },
616
+ "f:name" : { },
617
+ "f:port" : { },
618
+ "f:protocol" : { },
619
+ "f:targetPort" : { }
620
+ },
621
+ "k:{\"port\":26379,\"protocol\":\"TCP\"}" : {
622
+ "." : { },
623
+ "f:name" : { },
624
+ "f:port" : { },
625
+ "f:protocol" : { },
626
+ "f:targetPort" : { }
627
+ }
628
+ },
629
+ "f:publishNotReadyAddresses" : { },
630
+ "f:selector" : { },
631
+ "f:type" : { }
632
+ }
633
+ }
634
+ } ]
635
+ },
636
+ "spec" : {
637
+ "ports" : [ {
638
+ "name" : "tcp-server",
639
+ "protocol" : "TCP",
640
+ "port" : 6379,
641
+ "targetPort" : "redis"
642
+ }, {
643
+ "name" : "tcp-sentinel",
644
+ "protocol" : "TCP",
645
+ "port" : 26379,
646
+ "targetPort" : "sentinel"
647
+ } ],
648
+ "selector" : {
649
+ "app" : "redis-ha",
650
+ "release" : "argo-cd",
651
+ "statefulset.kubernetes.io/pod-name" : "argo-cd-redis-ha-server-1"
652
+ },
653
+ "clusterIP" : "10.100.74.38",
654
+ "clusterIPs" : [ "10.100.74.38" ],
655
+ "type" : "ClusterIP",
656
+ "sessionAffinity" : "None",
657
+ "publishNotReadyAddresses" : true,
658
+ "ipFamilies" : [ "IPv4" ],
659
+ "ipFamilyPolicy" : "SingleStack",
660
+ "internalTrafficPolicy" : "Cluster"
661
+ },
662
+ "status" : {
663
+ "loadBalancer" : { }
664
+ }
665
+ }, {
666
+ "metadata" : {
667
+ "name" : "argo-cd-redis-ha-announce-2",
668
+ "namespace" : "argocd",
669
+ "uid" : "e1a334b5-07f2-47b7-bd66-410684033b78",
670
+ "resourceVersion" : "1915134168",
671
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
672
+ "labels" : {
673
+ "app" : "redis-ha",
674
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
675
+ "chart" : "redis-ha-4.33.7",
676
+ "heritage" : "Helm",
677
+ "release" : "argo-cd"
678
+ },
679
+ "managedFields" : [ {
680
+ "manager" : "argocd-controller",
681
+ "operation" : "Apply",
682
+ "apiVersion" : "v1",
683
+ "time" : "2025-08-01T14:44:31Z",
684
+ "fieldsType" : "FieldsV1",
685
+ "fieldsV1" : {
686
+ "f:metadata" : {
687
+ "f:annotations" : { },
688
+ "f:labels" : {
689
+ "f:app" : { },
690
+ "f:argocd.argoproj.io/instance-edp" : { },
691
+ "f:chart" : { },
692
+ "f:heritage" : { },
693
+ "f:release" : { }
694
+ }
695
+ },
696
+ "f:spec" : {
697
+ "f:ports" : {
698
+ "k:{\"port\":6379,\"protocol\":\"TCP\"}" : {
699
+ "." : { },
700
+ "f:name" : { },
701
+ "f:port" : { },
702
+ "f:protocol" : { },
703
+ "f:targetPort" : { }
704
+ },
705
+ "k:{\"port\":26379,\"protocol\":\"TCP\"}" : {
706
+ "." : { },
707
+ "f:name" : { },
708
+ "f:port" : { },
709
+ "f:protocol" : { },
710
+ "f:targetPort" : { }
711
+ }
712
+ },
713
+ "f:publishNotReadyAddresses" : { },
714
+ "f:selector" : { },
715
+ "f:type" : { }
716
+ }
717
+ }
718
+ } ]
719
+ },
720
+ "spec" : {
721
+ "ports" : [ {
722
+ "name" : "tcp-server",
723
+ "protocol" : "TCP",
724
+ "port" : 6379,
725
+ "targetPort" : "redis"
726
+ }, {
727
+ "name" : "tcp-sentinel",
728
+ "protocol" : "TCP",
729
+ "port" : 26379,
730
+ "targetPort" : "sentinel"
731
+ } ],
732
+ "selector" : {
733
+ "app" : "redis-ha",
734
+ "release" : "argo-cd",
735
+ "statefulset.kubernetes.io/pod-name" : "argo-cd-redis-ha-server-2"
736
+ },
737
+ "clusterIP" : "10.100.150.15",
738
+ "clusterIPs" : [ "10.100.150.15" ],
739
+ "type" : "ClusterIP",
740
+ "sessionAffinity" : "None",
741
+ "publishNotReadyAddresses" : true,
742
+ "ipFamilies" : [ "IPv4" ],
743
+ "ipFamilyPolicy" : "SingleStack",
744
+ "internalTrafficPolicy" : "Cluster"
745
+ },
746
+ "status" : {
747
+ "loadBalancer" : { }
748
+ }
749
+ }, {
750
+ "metadata" : {
751
+ "name" : "argo-cd-redis-ha-haproxy",
752
+ "namespace" : "argocd",
753
+ "uid" : "1f703dfa-dccd-4431-b8fa-028a32437ba9",
754
+ "resourceVersion" : "1915134164",
755
+ "creationTimestamp" : "2023-11-15T15:19:44Z",
756
+ "labels" : {
757
+ "app" : "redis-ha",
758
+ "argocd.argoproj.io/instance-edp" : "eks-sandbox-argo-cd",
759
+ "chart" : "redis-ha-4.33.7",
760
+ "component" : "argo-cd-redis-ha-haproxy",
761
+ "heritage" : "Helm",
762
+ "release" : "argo-cd"
763
+ },
764
+ "managedFields" : [ {
765
+ "manager" : "argocd-controller",
766
+ "operation" : "Apply",
767
+ "apiVersion" : "v1",
768
+ "time" : "2025-08-01T14:44:31Z",
769
+ "fieldsType" : "FieldsV1",
770
+ "fieldsV1" : {
771
+ "f:metadata" : {
772
+ "f:annotations" : { },
773
+ "f:labels" : {
774
+ "f:app" : { },
775
+ "f:argocd.argoproj.io/instance-edp" : { },
776
+ "f:chart" : { },
777
+ "f:component" : { },
778
+ "f:heritage" : { },
779
+ "f:release" : { }
780
+ }
781
+ },
782
+ "f:spec" : {
783
+ "f:ports" : {
784
+ "k:{\"port\":6379,\"protocol\":\"TCP\"}" : {
785
+ "." : { },
786
+ "f:name" : { },
787
+ "f:port" : { },
788
+ "f:protocol" : { },
789
+ "f:targetPort" : { }
790
+ },
791
+ "k:{\"port\":9101,\"protocol\":\"TCP\"}" : {
792
+ "." : { },
793
+ "f:name" : { },
794
+ "f:port" : { },
795
+ "f:protocol" : { },
796
+ "f:targetPort" : { }
797
+ }
798
+ },
799
+ "f:selector" : { },
800
+ "f:type" : { }
801
+ }
802
+ }
803
+ } ]
804
+ },
805
+ "spec" : {
806
+ "ports" : [ {
807
+ "name" : "tcp-haproxy",
808
+ "protocol" : "TCP",
809
+ "port" : 6379,
810
+ "targetPort" : "redis"
811
+ }, {
812
+ "name" : "http-exporter-port",
813
+ "protocol" : "TCP",
814
+ "port" : 9101,
815
+ "targetPort" : "metrics-port"
816
+ } ],
817
+ "selector" : {
818
+ "app" : "redis-ha-haproxy",
819
+ "release" : "argo-cd"
820
+ },
821
+ "clusterIP" : "10.100.224.21",
822
+ "clusterIPs" : [ "10.100.224.21" ],
823
+ "type" : "ClusterIP",
824
+ "sessionAffinity" : "None",
825
+ "ipFamilies" : [ "IPv4" ],
826
+ "ipFamilyPolicy" : "SingleStack",
827
+ "internalTrafficPolicy" : "Cluster"
828
+ },
829
+ "status" : {
830
+ "loadBalancer" : { }
831
+ }
832
+ } ]
166
833
  }
167
834
  """,
168
- marks=pytest.mark.skipif(
169
- os.getenv("ENV") == "azure",
170
- reason="Still have an issue with encoding long strings",
171
- ),
172
835
  ),
173
836
  ]