Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

[KOGITO-850] Add Cucumber test for Prometheus integration #135

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

sutaakar
Copy link
Contributor

@sutaakar sutaakar commented Jan 9, 2020

https://issues.redhat.com/browse/KOGITO-850

Signed-off-by: Karel Suta ksuta@redhat.com

Many thanks for submiting your Pull Request ❤️!

Please make sure that your PR meets the following requirements:

  • You have read the contributors guide
  • Pull Request title is properly formatted: [KOGITO-XYZ] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
  • Your feature/bug fix has a unit test that verifies it
  • You've tested the new feature/bug fix in an actual OpenShift cluster

Copy link
Contributor

@radtriste radtriste left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ricardozanini ricardozanini left a comment

Choose a reason for hiding this comment

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

LGTM, one minor suggestion.

BTW, why are we not opening JIRAs for those PRs? Could you please open it so we can track this great work you guys are doing?

@@ -133,3 +156,34 @@ func waitAndRetrieveRouteURI(namespace, serviceName string) (string, error) {
GetLogger(namespace).Debugf("Got route %s\n", routeURI)
return routeURI, nil
}

// waitForPods waits for pods with specific label to be available and running
func waitForPods(namespace, labelName, labelValue string, numberOfPods, timeoutInMin int) error {
Copy link
Member

Choose a reason for hiding this comment

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

Since those functions are related to Pods resource, why not keep them on kubernetes.go instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, can do that in next PR, can move there also route functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in this PR.

@sutaakar sutaakar changed the title Add Cucumber test for Prometheus integration [KOGITO-850] Add Cucumber test for Prometheus integration Jan 9, 2020
@sutaakar
Copy link
Contributor Author

sutaakar commented Jan 9, 2020

@ricardozanini Good point, added JIRA for this test.

@ricardozanini ricardozanini added the needs review 🔍 Pull Request that needs reviewers label Jan 9, 2020
@ricardozanini ricardozanini added this to the v0.7.0 milestone Jan 9, 2020
Signed-off-by: Karel Suta <ksuta@redhat.com>
@sutaakar
Copy link
Contributor Author

@ricardozanini Can you please take a look again?

@ricardozanini ricardozanini added ready 🚀 PR is ready to be merged and removed needs review 🔍 Pull Request that needs reviewers labels Jan 10, 2020
@ricardozanini ricardozanini merged commit e0771f2 into apache:master Jan 10, 2020
@sutaakar sutaakar deleted the prometheus branch January 10, 2020 11:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready 🚀 PR is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants