Skip to content

Commit

Permalink
Force overwrite on cred_store tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frozencemetery committed Mar 29, 2016
1 parent 3e766d7 commit 295fe87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gssapi/tests/test_high_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def test_store_acquire(self):
deleg_creds = server_ctx.delegated_creds
deleg_creds.shouldnt_be_none()

store_res = deleg_creds.store(usage='initiate', set_default=True)
store_res = deleg_creds.store(usage='initiate', set_default=True,
overwrite=True)
store_res.usage.should_be('initiate')
store_res.mechs.should_include(gb.MechType.kerberos)

Expand Down
2 changes: 1 addition & 1 deletion gssapi/tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def test_store_cred_acquire_cred(self):
deleg_creds = server_ctx_resp.delegated_creds
deleg_creds.shouldnt_be_none()
store_res = gb.store_cred(deleg_creds, usage='initiate',
set_default=True)
set_default=True, overwrite=True)

store_res.shouldnt_be_none()
store_res.usage.should_be('initiate')
Expand Down

0 comments on commit 295fe87

Please sign in to comment.