-
Notifications
You must be signed in to change notification settings - Fork 263
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
Fix json path to latest revision in e2e tests to something reliable #376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@@ -35,7 +35,7 @@ var targetFieldsLength = 4 | |||
var targetsJsonPath = "jsonpath={range .status.traffic[*]}{.tag}{','}{.revisionName}{','}{.percent}{','}{.latestRevision}{'|'}{end}" | |||
|
|||
// returns deployed service latest revision name | |||
var latestRevisionJsonPath = "jsonpath={.status.traffic[?(@.latestRevision==true)].revisionName}" | |||
var latestRevisionJsonPath = "jsonpath={.status.latestCreatedRevisionName}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: navidshaikh, sixolet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* A helper funcion for removing broken symlinks Two types of symlinks are considered broken: 1. Broken symlinks. 2. Symlinks pointing to a path outside of the source tree. This function was impleneted in knative/serving#2842 and should be useful for all knative modules. * Readd LF at end of file after merge
as the test-infra scripts are no longer under vendor dir but at the root of repo
…y providing goos and goarch. (knative#376) * add go build with goos and goarch * add a example at help message --------- Co-authored-by: Kaustubh Pande <[email protected]>
This is just a small change that should make a helper function in the tests reliably return the latest revision name even when traffic doesn't have anything set to latest. No change to the actual running of the tests.