Skip to content

chore: adds tests for oidc in vscode - VSCODE-414 #652

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

Merged
merged 11 commits into from
Jan 11, 2024
Merged

Conversation

himanshusinghs
Copy link
Contributor

@himanshusinghs himanshusinghs commented Jan 9, 2024

Description

In this PR we have added tests for OIDC feature that covers all the applicable cases covered by compass as well as a few scenarios specific to vscode.

These are not E2E tests unfortunately, that is still an exploratory work in this PR

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@himanshusinghs himanshusinghs marked this pull request as draft January 9, 2024 19:03
@himanshusinghs
Copy link
Contributor Author

Converting to draft since we might need to move the CI to evergreen. I will be looking into that.

@himanshusinghs himanshusinghs marked this pull request as ready for review January 10, 2024 09:27
@himanshusinghs
Copy link
Contributor Author

No need to move the CI to evergreen just yet. Fixed the issues that were there for our Github actions.

@himanshusinghs himanshusinghs changed the title chore: added integration tests for oidc in vscode - VSCODE-414 chore: adds tests for oidc in vscode - VSCODE-414 Jan 10, 2024
await testConnectionController.getActiveDataService()?.count('x.y', {});

// Minor pause
await new Promise((resolve) => setTimeout(resolve, 500));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to rely on this? Is there a different way that is not making the result subject to timing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just addressed this in my recent commit.

Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

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

Couple smaller questions / thoughts. Nice tests!

@himanshusinghs himanshusinghs requested a review from Anemy January 11, 2024 13:36
@himanshusinghs himanshusinghs merged commit 1eb876e into main Jan 11, 2024
@himanshusinghs himanshusinghs deleted the oidc-tests branch January 11, 2024 16:05
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