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

Feature/ts 168/integration tests #62

Merged

Conversation

trevrosen
Copy link
Contributor

What

Adds live tests for:

  • Alerts
  • Charts
  • Metrics
  • Spaces
  • Services

Why

So that we're regression testing the client against the production service.

@trevrosen trevrosen requested review from seubert and akahn April 2, 2019 18:59
Copy link
Contributor

@akahn akahn left a comment

Choose a reason for hiding this comment

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

Seems good. Thanks!

_live-tests/alerts_test.go Show resolved Hide resolved
_live-tests/alerts_test.go Show resolved Hide resolved

client = appoptics.NewClient(token)
// Uncomment the below to see response status/body stdout while tests run
//client = appoptics.NewClient(token, appoptics.SetDebugMode())
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this should be configurable via ENV, and be enabled for CI? Or is that too verbose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think that's a little too verbose -- it dumps entire request bodies for each request, which can make it hard to read. I'd vote against making it the default, but I'm not against an available ENV setting for it.

@trevrosen trevrosen merged commit 28d89d1 into appoptics:master Apr 3, 2019
@trevrosen trevrosen deleted the feature/TS-168/integration-tests branch April 3, 2019 17:01
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