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

Pablo/dev 177 add pipeline check method to sdk #19

Merged

Conversation

PabloPardoGarcia
Copy link
Member

@PabloPardoGarcia PabloPardoGarcia commented Sep 5, 2024

  • Add method is_access_token_valid to PipelineClient to return True if the access token is valid, False otherwise
  • Add integration tests
  • Add GA to run tests and code checks
  • Format code and sort imports

@PabloPardoGarcia PabloPardoGarcia merged commit 1834a7c into main Sep 5, 2024
2 checks passed
@PabloPardoGarcia PabloPardoGarcia deleted the pablo/dev-177-add-pipeline-check-method-to-sdk branch September 5, 2024 14:46
Comment on lines +30 to +31
PIPELINE_ID: ${{ secrets.PIPELINE_ID }}
PIPELINE_ACCESS_TOKEN: ${{ secrets.PIPELINE_ACCESS_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't seem right.
At least, let's rename it into something more concrete, like INTEGRATION_TESTS_PIPELINE_ID.

Copy link
Member

Choose a reason for hiding this comment

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

Base URL also needs to be configured - we shouldn't run integration tests on production environment.
At least, it could be staging.

Copy link
Member

Choose a reason for hiding this comment

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

But anyway, conceptually we need to do integration tests differently.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good points! We can rename the secrets.

As for the environment, agree, we should test on a staging environment.

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.

2 participants