Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNOW-1346233] Tests for authentication methods (external browser, oauth, okta, keypair) #1264

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-pcyrek
Copy link

@sfc-gh-pcyrek sfc-gh-pcyrek commented Dec 4, 2024

Description

SNOW-1346233 Tests for authentication methods (External browser, oauth, okta). This PR contains changes for authentication tests with external browser, oauth and okta in docker container.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

Copy link

github-actions bot commented Dec 4, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@sfc-gh-pcyrek
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.20%. Comparing base (7d34091) to head (a52cb60).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1264   +/-   ##
=======================================
  Coverage   82.20%   82.20%           
=======================================
  Files          55       55           
  Lines       13547    13547           
=======================================
  Hits        11136    11136           
  Misses       2411     2411           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sfc-gh-pcyrek sfc-gh-pcyrek marked this pull request as ready for review December 10, 2024 09:26
@sfc-gh-pcyrek sfc-gh-pcyrek requested a review from a team as a code owner December 10, 2024 09:26
@sfc-gh-pcyrek sfc-gh-pcyrek changed the title [SNOW-1346233] External browser authentication tests [SNOW-1346233] Tests for authentication methods (External browser, oauth, okta) Dec 11, 2024
@sfc-gh-pcyrek sfc-gh-pcyrek changed the title [SNOW-1346233] Tests for authentication methods (External browser, oauth, okta) [SNOW-1346233] Tests for authentication methods (external browser, oauth, okta) Dec 11, 2024
auth_generic_test_methods.go Outdated Show resolved Hide resolved
auth_generic_test_methods.go Outdated Show resolved Hide resolved
auth_generic_test_methods.go Outdated Show resolved Hide resolved
auth_generic_test_methods.go Outdated Show resolved Hide resolved
auth_generic_test_methods.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_oauth_test.go Outdated Show resolved Hide resolved
ci/container/test_authentication.sh Outdated Show resolved Hide resolved
@sfc-gh-pcyrek sfc-gh-pcyrek changed the title [SNOW-1346233] Tests for authentication methods (external browser, oauth, okta) [SNOW-1346233] Tests for authentication methods (external browser, oauth, okta, keypair) Dec 17, 2024
auth_generic_test_methods_test.go Outdated Show resolved Hide resolved
auth_generic_test_methods_test.go Outdated Show resolved Hide resolved
auth_generic_test_methods_test.go Outdated Show resolved Hide resolved
auth_generic_test_methods_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_oauth_test.go Outdated Show resolved Hide resolved
auth_with_oauth_test.go Outdated Show resolved Hide resolved
auth_with_okta_test.go Show resolved Hide resolved
authexternalbrowser_test.go Outdated Show resolved Hide resolved
util_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_external_browser_test.go Outdated Show resolved Hide resolved
auth_with_oauth_test.go Show resolved Hide resolved
auth_with_oauth_test.go Outdated Show resolved Hide resolved
util_test.go Show resolved Hide resolved

func TestOktaWrongURL(t *testing.T) {
cfg := setupOktaTest(t)
invalidAddress, err := url.Parse("https://fake-account-0000.okta.com")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url is the same as in previous test, is it ok ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants