-
Notifications
You must be signed in to change notification settings - Fork 228
USHIFT-6743: migrate 9 api-server tests from openshift-tests-private to RF #6625
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
Open
agullon
wants to merge
10
commits into
openshift:main
Choose a base branch
from
agullon:USHIFT-6743
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0c32f87
USHIFT-6743: promote Start MicroShift Without Waiting keyword to shar…
agullon fd5734c
USHIFT-6743: add shared kustomize-test.resource for manifest test key…
agullon ab5625b
USHIFT-6743: add config search path test to show-config.robot
agullon 4dc04ed
USHIFT-6743: add case-insensitive log level tests
agullon 6830ffd
USHIFT-6743: add data directory isolation test
agullon c7049d6
USHIFT-6743: add drop-in config merge and override tests
agullon dc99dde
USHIFT-6743: add configurable kustomize paths and glob scanning tests
agullon 7165f36
USHIFT-6743: add audit log profile and rotation tests
agullon 464ac00
USHIFT-6743: add API server readiness rejection test
agullon 155f558
USHIFT-6743: fix CI failures and rebalance configuration scenarios
agullon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,48 @@ | ||
| *** Settings *** | ||
| Documentation Keywords for deploying and cleaning up kustomize test manifests | ||
|
|
||
| Resource microshift-host.resource | ||
| Resource kubeconfig.resource | ||
|
|
||
|
|
||
| *** Keywords *** | ||
| Deploy Test Manifests | ||
| [Documentation] Create a kustomization that deploys a namespace and configmap | ||
| [Arguments] ${manifest_dir} ${namespace} ${configmap_name}=test-configmap | ||
| Command Should Work mkdir -p ${manifest_dir} | ||
| ${kustomization}= Catenate SEPARATOR=\n | ||
| ... resources: | ||
| ... - namespace.yaml | ||
| ... - configmap.yaml | ||
| ... namespace: ${namespace} | ||
| Upload String To File ${kustomization} ${manifest_dir}/kustomization.yaml | ||
| ${ns_yaml}= Catenate SEPARATOR=\n | ||
| ... apiVersion: v1 | ||
| ... kind: Namespace | ||
| ... metadata: | ||
| ... \ \ name: ${namespace} | ||
| Upload String To File ${ns_yaml} ${manifest_dir}/namespace.yaml | ||
| ${configmap}= Catenate SEPARATOR=\n | ||
| ... apiVersion: v1 | ||
| ... kind: ConfigMap | ||
| ... metadata: | ||
| ... \ \ name: ${configmap_name} | ||
| ... data: | ||
| ... \ \ path: ${manifest_dir} | ||
| Upload String To File ${configmap} ${manifest_dir}/configmap.yaml | ||
|
|
||
| Remove Manifest Directory | ||
| [Documentation] Completely remove a manifest directory under /etc/microshift | ||
| [Arguments] ${manifest_dir} | ||
| Should Not Be Empty ${manifest_dir} | ||
| Should Start With ${manifest_dir} /etc/microshift/ | ||
| Command Should Work rm -rf ${manifest_dir} | ||
|
|
||
| ConfigMap Should Not Exist | ||
| [Documentation] Verify the configmap was not created in the namespace | ||
| [Arguments] ${namespace} ${configmap_name}=test-configmap | ||
| ${stdout} ${rc}= Run With Kubeconfig | ||
| ... oc get configmap ${configmap_name} -n ${namespace} | ||
| ... allow_fail=True return_rc=True | ||
| Should Not Be Equal As Integers ${rc} 0 | ||
| Should Contain ${stdout} NotFound | ||
This file contains hidden or 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 hidden or 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
23 changes: 23 additions & 0 deletions
23
test/scenarios-bootc/el10/presubmits/el102-src@configuration2.sh
This file contains hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| scenario_create_vms() { | ||
| prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source | ||
| launch_vm rhel102-bootc | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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
30 changes: 30 additions & 0 deletions
30
test/scenarios-bootc/el10/releases/el102-lrel@dual-stack-configuration2.sh
This file contains hidden or 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,30 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| start_image="rhel102-bootc-brew-lrel-optional" | ||
|
|
||
| scenario_create_vms() { | ||
| exit_if_image_not_found "${start_image}" | ||
|
|
||
| prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}" | ||
| launch_vm rhel102-bootc --network "${VM_DUAL_STACK_NETWORK}" --vm_vcpus 4 | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| exit_if_image_not_found "${start_image}" | ||
|
|
||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| exit_if_image_not_found "${start_image}" | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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
23 changes: 23 additions & 0 deletions
23
test/scenarios-bootc/el9/presubmits/el98-src@configuration2.sh
This file contains hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| scenario_create_vms() { | ||
| prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source | ||
| launch_vm rhel98-bootc | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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
30 changes: 30 additions & 0 deletions
30
test/scenarios-bootc/el9/releases/el98-lrel@dual-stack-configuration2.sh
This file contains hidden or 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,30 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| start_image="rhel98-bootc-brew-lrel-optional" | ||
|
|
||
| scenario_create_vms() { | ||
| exit_if_image_not_found "${start_image}" | ||
|
|
||
| prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}" | ||
| launch_vm rhel98-bootc --network "${VM_DUAL_STACK_NETWORK}" --vm_vcpus 4 | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| exit_if_image_not_found "${start_image}" | ||
|
|
||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| exit_if_image_not_found "${start_image}" | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| scenario_create_vms() { | ||
| prepare_kickstart host1 kickstart-bootc.ks.template cos10-bootc-source | ||
| launch_vm centos10-bootc | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| scenario_create_vms() { | ||
| prepare_kickstart host1 kickstart-bootc.ks.template cos9-bootc-source | ||
| launch_vm centos9-bootc | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| scenario_create_vms() { | ||
| prepare_kickstart host1 kickstart.ks.template rhel-9.8-microshift-source | ||
| launch_vm rhel-9.8 | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
This file contains hidden or 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
30 changes: 30 additions & 0 deletions
30
test/scenarios/releases/el98-lrel@dual-stack-configuration2.sh
This file contains hidden or 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,30 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Sourced from scenario.sh and uses functions defined there. | ||
|
|
||
| start_image="rhel98-brew-lrel-optional" | ||
|
|
||
| scenario_create_vms() { | ||
| exit_if_commit_not_found "${start_image}" | ||
|
|
||
| prepare_kickstart host1 kickstart.ks.template "${start_image}" | ||
| launch_vm rhel-9.8 --network "${VM_DUAL_STACK_NETWORK}" --vm_vcpus 4 | ||
| } | ||
|
|
||
| scenario_remove_vms() { | ||
| exit_if_commit_not_found "${start_image}" | ||
|
|
||
| remove_vm host1 | ||
| } | ||
|
|
||
| scenario_run_tests() { | ||
| exit_if_commit_not_found "${start_image}" | ||
| run_tests host1 \ | ||
| suites/configuration/tls-configuration.robot \ | ||
| suites/configuration/drop-in-config.robot \ | ||
| suites/configuration/show-config.robot \ | ||
| suites/configuration/logging.robot \ | ||
| suites/configuration/data-dir.robot \ | ||
| suites/configuration/apiserver-readiness.robot \ | ||
| suites/configuration/audit-log.robot | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.