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

Fix json path to latest revision in e2e tests to something reliable #376

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

sixolet
Copy link
Contributor

@sixolet sixolet commented Aug 19, 2019

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.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 19, 2019
@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 19, 2019
Copy link
Collaborator

@navidshaikh navidshaikh left a 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}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 20, 2019
@knative-prow-robot
Copy link
Contributor

[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:
  • OWNERS [navidshaikh,sixolet]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit 7b90959 into knative:master Aug 20, 2019
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
* 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
dsimansk pushed a commit to dsimansk/client that referenced this pull request May 28, 2020
as the test-infra scripts are no longer under vendor dir but at the root of repo
dsimansk pushed a commit to dsimansk/client that referenced this pull request May 15, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants