File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 26
26
## License
27
27
![ GitHub] ( https://img.shields.io/github/license/onlinejudge95/argocd )
28
28
29
+ ## DeepSource
30
+ [ ![ DeepSource] ( https://deepsource.io/gh/onlinejudge95/argocd.svg/?label=active+issues&show_trend=true&token=k4vYSD7ZovLMXroo2Kxi9z3q )] ( https://deepsource.io/gh/onlinejudge95/argocd/?ref=repository-badge )
31
+
29
32
Python client for argocd server. This provides unique interface for the argocd REST APIs.
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def validate_access(
125
125
insecure = False ,
126
126
tls_client_cert_data = "" ,
127
127
tls_client_cert_key = "" ,
128
- type = "" ,
128
+ access_type = "" ,
129
129
name = "" ,
130
130
enable_oci = False ,
131
131
github_app_private_key = "" ,
@@ -151,8 +151,8 @@ def validate_access(
151
151
params ["tlsClientCertData" ] = tls_client_cert_data
152
152
if tls_client_cert_key != "" :
153
153
params ["tlsClientCertKey" ] = tls_client_cert_key
154
- if type != "" :
155
- params ["type" ] = type
154
+ if access_type != "" :
155
+ params ["type" ] = access_type
156
156
if name != "" :
157
157
params ["name" ] = name
158
158
if enable_oci :
Original file line number Diff line number Diff line change @@ -539,8 +539,10 @@ def test_repository_api_validate_access_tls_client_cert_key_return_ok(
539
539
"argocd.services.repository.sessions.Session.post" ,
540
540
mocks .mocked_success_repository_delete_response ,
541
541
)
542
- def test_repository_api_validate_access_type_return_ok (repository_service ):
543
- response = repository_service .validate_access ("dummy_repository" , type = "dummy_type" )
542
+ def test_repository_api_validate_access_access_type_return_ok (repository_service ):
543
+ response = repository_service .validate_access (
544
+ "dummy_repository" , access_type = "dummy_access_type"
545
+ )
544
546
545
547
assert isinstance (response , dict )
546
548
You can’t perform that action at this time.
0 commit comments