Skip to content

Commit

Permalink
🎉Source Okta: unit tests were added (#14927)
Browse files Browse the repository at this point in the history
* Created UnitTests for Source Okta

added: UnitTests for Source Okta - coverage 100%
changes: minor changes to source

* changes: changes due to recommendation on review
  • Loading branch information
drrest authored Jul 22, 2022
1 parent 4df0a48 commit 2e3ae72
Show file tree
Hide file tree
Showing 6 changed files with 847 additions and 49 deletions.
2 changes: 2 additions & 0 deletions airbyte-integrations/connectors/source-okta/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
TEST_REQUIREMENTS = [
"pytest~=6.1",
"source-acceptance-test",
"pytest-mock~=3.6.1",
"requests-mock",
]

setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ def initialize_authenticator(self, config: Mapping[str, Any]):

creds = config.get("credentials")
if not creds:
raise "Config validation error. `credentials` not specified."
raise Exception("Config validation error. `credentials` not specified.")

auth_type = creds.get("auth_type")
if not auth_type:
raise "Config validation error. `auth_type` not specified."
raise Exception("Config validation error. `auth_type` not specified.")

if auth_type == "api_token":
return TokenAuthenticator(creds["api_token"], auth_method="SSWS")
Expand Down
Loading

0 comments on commit 2e3ae72

Please sign in to comment.