Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sso: Add test for RHSSO OAuth service (PROJQUAY-2056)
- Add test for RHSSOOAuthService class
- Loading branch information
1 parent
587cceb
commit 0a6c66c
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import requests | ||
|
||
result = requests.post( | ||
app_config.get("EXPORT_COMPLIANCE_ENDPOINT"), | ||
cert=( | ||
"export-compliance-client.crt", | ||
"export-compliance-client.key", | ||
), | ||
verify="export-compliance-ca.crt", | ||
json={"user": {"login": lusername}, "account": {"primary": True}}, | ||
timeout=5, | ||
) | ||
print(result.json()) |