Skip to content

Commit 2533131

Browse files
committed
Update test username,password variable names to be the same across SDK repos
1 parent f268314 commit 2533131

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

example_sdkrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export SPLUNK_HOST_2=<REDACTED>
1111

1212
# PKCE FLOW
1313
export SPLUNK_APP_CLIENT_ID=<REDACTED>
14-
export SPLUNK_USERNAME=<REDACTED>
15-
export SPLUNK_PASSWORD=<REDACTED>
14+
export TEST_USERNAME=<REDACTED>
15+
export TEST_PASSWORD=<REDACTED>
1616
export SPLUNK_TENANT=<REDACTED>
1717
export SPLUNK_TENANT_ML=<REDACTED>
1818
export SPLUNK_REDIRECT_URL=<REDACTED>

test/auth/test_auth_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def test_hook(response, **kwargs):
107107

108108
PKCEAuthManager(host=os.environ.get('SPLUNK_AUTH_HOST'),
109109
client_id=os.environ.get('SPLUNK_APP_CLIENT_ID'),
110-
username=os.environ.get('SPLUNK_USERNAME'),
111-
password=os.environ.get('SPLUNK_PASSWORD'),
110+
username=os.environ.get('TEST_USERNAME'),
111+
password=os.environ.get('TEST_PASSWORD'),
112112
redirect_uri=os.environ.get('SPLUNK_REDIRECT_URL'),
113113
requests_hooks=[test_hook]).authenticate()
114114
assert len(responses) == 4
@@ -135,8 +135,8 @@ def test_hook(*args, **kwargs):
135135

136136
PKCEAuthManager(host=os.environ.get('SPLUNK_AUTH_HOST'),
137137
client_id=os.environ.get('SPLUNK_APP_CLIENT_ID'),
138-
username=os.environ.get('SPLUNK_USERNAME'),
139-
password=os.environ.get('SPLUNK_PASSWORD'),
138+
username=os.environ.get('TEST_USERNAME'),
139+
password=os.environ.get('TEST_PASSWORD'),
140140
redirect_uri=os.environ.get('SPLUNK_REDIRECT_URL'),
141141
requests_hooks=test_hook).authenticate()
142142
assert hook_called
@@ -164,8 +164,8 @@ def test_hook(*args, **kwargs):
164164

165165
PKCEAuthManager(host=os.environ.get('SPLUNK_AUTH_HOST'),
166166
client_id=os.environ.get('SPLUNK_APP_CLIENT_ID'),
167-
username=os.environ.get('SPLUNK_USERNAME'),
168-
password=os.environ.get('SPLUNK_PASSWORD'),
167+
username=os.environ.get('TEST_USERNAME'),
168+
password=os.environ.get('TEST_PASSWORD'),
169169
redirect_uri=os.environ.get('SPLUNK_REDIRECT_URL'),
170170
requests_hooks=test_hook).authenticate()
171171
assert hook_called

test/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def get_service_principal_auth_manager():
170170
def _get_pkce_manager():
171171
return PKCEAuthManager(host=os.environ.get('SPLUNK_AUTH_HOST'),
172172
client_id=os.environ.get('SPLUNK_APP_CLIENT_ID'),
173-
username=os.environ.get('SPLUNK_USERNAME'),
174-
password=os.environ.get('SPLUNK_PASSWORD'),
173+
username=os.environ.get('TEST_USERNAME'),
174+
password=os.environ.get('TEST_PASSWORD'),
175175
redirect_uri=os.environ.get('SPLUNK_REDIRECT_URL'))
176176

177177

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ passenv = SPLUNK_AUTH_HOST
1111
SPLUNK_HOST_2
1212
SPLUNK_APP_CLIENT_ID
1313
SPLUNK_APP_SERVER
14-
SPLUNK_USERNAME
15-
SPLUNK_PASSWORD
14+
TEST_USERNAME
15+
TEST_PASSWORD
1616
SPLUNK_TENANT
1717
SPLUNK_TENANT_2
1818
SPLUNK_TENANT_ML

0 commit comments

Comments
 (0)