Skip to content

Commit 295fe87

Browse files
Force overwrite on cred_store tests
Certain versions of krb5 (>= 1.14 or anything that backported the patch, including RHEL/Centos/Fedora) object (probably rightly so) to duplicate credentials already existing in the ccache. Tell those versions to sit down and shut up. This is the third and final commit in a series to enable running our test suite on RHEL-7.
1 parent 3e766d7 commit 295fe87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gssapi/tests/test_high_level.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def test_store_acquire(self):
173173
deleg_creds = server_ctx.delegated_creds
174174
deleg_creds.shouldnt_be_none()
175175

176-
store_res = deleg_creds.store(usage='initiate', set_default=True)
176+
store_res = deleg_creds.store(usage='initiate', set_default=True,
177+
overwrite=True)
177178
store_res.usage.should_be('initiate')
178179
store_res.mechs.should_include(gb.MechType.kerberos)
179180

gssapi/tests/test_raw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def test_store_cred_acquire_cred(self):
475475
deleg_creds = server_ctx_resp.delegated_creds
476476
deleg_creds.shouldnt_be_none()
477477
store_res = gb.store_cred(deleg_creds, usage='initiate',
478-
set_default=True)
478+
set_default=True, overwrite=True)
479479

480480
store_res.shouldnt_be_none()
481481
store_res.usage.should_be('initiate')

0 commit comments

Comments
 (0)