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

Refactor API & FLAPS clients to interfaces for unit testing #3560

Merged
merged 1 commit into from
May 20, 2024

Conversation

benbjohnson
Copy link
Contributor

Change Summary

This pull request creates interfaces & mock implementations for fly.Client & flaps.Client. This is to enable unit testing of failure scenarios with launch & deploy that we can't easily test with integration testing. A partial, in-progress unit test is also checked in but it's disabled.


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

@benbjohnson benbjohnson merged commit 950d365 into master May 20, 2024
38 of 39 checks passed
@benbjohnson benbjohnson deleted the client-interfaces branch May 20, 2024 20:41
Copy link

sentry-io bot commented May 27, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ *errors.errorString: returned error 504 Gateway Time-out:

    504 Gateway Time-out

    github.com/superfly/flyctl/internal/sentry in C... View Issue

Did you find this useful? React with a 👍 or 👎

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.

1 participant