-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2407 from openshift-cherrypick-robot/cherry-pick-…
…2397-to-release-4.14 [release-4.14] OCPBUGS-19872: Use cgo net for name resolution
- Loading branch information
Showing
4 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
*** Settings *** | ||
Documentation Tests verifying hostname resolution | ||
Resource ../../resources/microshift-process.resource | ||
Resource ../../resources/microshift-host.resource | ||
Resource ../../resources/oc.resource | ||
|
||
Suite Setup Setup | ||
Suite Teardown Teardown | ||
|
||
Test Tags restart slow | ||
|
||
|
||
*** Variables *** | ||
${NEW_HOSTNAME} microshift.local | ||
${OLD_HOSTNAME} ${EMPTY} | ||
|
||
|
||
*** Test Cases *** | ||
Verify local name resolution | ||
[Documentation] Verify correct name resolution through mDNS | ||
[Setup] Configure New Hostname | ||
|
||
Oc Wait For deployment/router-default condition\=Available 120s ns=openshift-ingress | ||
Oc Logs namespace="openshift-ingress" opts="deployment/router-default" | ||
|
||
[Teardown] Restore Old Hostname | ||
|
||
|
||
*** Keywords *** | ||
Setup | ||
[Documentation] Set up all of the tests in this suite | ||
Check Required Env Variables | ||
Login MicroShift Host | ||
Setup Kubeconfig | ||
|
||
Teardown | ||
[Documentation] Test suite teardown | ||
Remove Kubeconfig | ||
Logout MicroShift Host | ||
|
||
Configure New Hostname | ||
[Documentation] Configures ${NEW_HOSTNAME} in the MicroShift host. | ||
${old}= Setup Hostname ${NEW_HOSTNAME} | ||
Set Suite Variable \${OLD_HOSTNAME} ${old} | ||
|
||
Restore Old Hostname | ||
[Documentation] Configure old hostname again in the MicroShift host. | ||
Setup Hostname ${OLD_HOSTNAME} | ||
|
||
Setup Hostname | ||
[Documentation] Setup a new hostname and return the old one. | ||
[Arguments] ${hostname} | ||
IF "${hostname}"=="${EMPTY}" RETURN | ||
${old}= Change Hostname ${hostname} | ||
Cleanup MicroShift --all --keep-images | ||
Restart MicroShift | ||
RETURN ${old} |