Skip to content

Add default wildcard routing e2e test#21617

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
ironcladlou:wildcard-dns-test
Jan 30, 2019
Merged

Add default wildcard routing e2e test#21617
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
ironcladlou:wildcard-dns-test

Conversation

@ironcladlou
Copy link
Contributor

Add a test which exercises:

  • Wildcard DNS management
  • Route host defaulting
  • Default wildcard certificates

By:

  • Creating a reencrypt route using only defaults
  • Asserting the route is accessible over its public hostname

This test should only execute when wildcard DNS management is enabled as
indicated by the presence of an ingress domain on the cluster config resource.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 4, 2018
@ironcladlou
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 2018
@ironcladlou
Copy link
Contributor Author

/cc @openshift/sig-network-edge

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 4, 2018
@ironcladlou
Copy link
Contributor Author

/retest

cmd := fmt.Sprintf(`
set -e
for i in $(seq 1 %d); do
code=$( curl -k -s -o /dev/null -w '%%{http_code}\n' %q ) || rc=$?
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest adding -m 1 to the curl command to time out after 1 second. If you want a higher timeout value, or if you want to observe timeoutSeconds more strictly, you could add if [[ $SECONDS -gt %d ]]; then echo timed out; exit 1; fi to the loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 16, 2019
@ironcladlou
Copy link
Contributor Author

Okay, finally getting back to this, I made the test only execute if we detect that the default router is fronted by a LoadBalancer service. I'm not sure that's the best way to do detection going forward, but I think it works for now and we desperately need this coverage.

@ironcladlou
Copy link
Contributor Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 16, 2019
@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/21617/pull-ci-openshift-origin-master-e2e-gcp/2714

This should be skipping on GCE so something’s wrong either in my skip detection or in the operator

@ironcladlou
Copy link
Contributor Author

/retest

2 similar comments
@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

So close!

/retest

@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@smarterclayton
Copy link
Contributor

/test e2e-aws

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 25, 2019
Add a test which exercises:

* Wildcard DNS management
* Route host defaulting
* Default wildcard certificates

By:

* Creating a reencrypt route using only defaults
* Asserting the route is accessible over its public hostname

This test should only execute when wildcard DNS management is enabled as
indicated by the presence of an ingress domain on the cluster config resource.
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 28, 2019
@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

@smarterclayton had to rebase, please re-tag

@knobunc
Copy link
Contributor

knobunc commented Jan 28, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 28, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou, knobunc, smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

/test e2e-aws-builds

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@ironcladlou
Copy link
Contributor Author

/test e2e-aws-builds

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@ironcladlou
Copy link
Contributor Author

/retest

1 similar comment
@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

Well, tests passed and instead of merging tests kicked off again for some reason.

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 30, 2019

@ironcladlou: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-gcp c9b7bda link /test e2e-gcp
ci/prow/e2e-gcp-builds c9b7bda link /test e2e-gcp-builds

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@pravisankar
Copy link

/test e2e-aws-builds

@openshift-merge-robot openshift-merge-robot merged commit 25fd8c7 into openshift:master Jan 30, 2019
@ironcladlou
Copy link
Contributor Author

What a ride!

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. lgtm Indicates that a PR is ready to be merged. sig/network-edge size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants