-
Notifications
You must be signed in to change notification settings - Fork 215
USHIFT-4528: microshift-gitops pre-release testing #5261
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
vanhalenar
wants to merge
11
commits into
openshift:main
Choose a base branch
from
vanhalenar:gitops
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.
+67
−0
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
096f9c0
Basic GitOps test and scenario
vanhalenar 8c063fd
Add templates
vanhalenar 7dfd779
Working workload test
vanhalenar 352e476
Address comments, clean up test
vanhalenar c90eaf9
Update syntax to match RF 7
vanhalenar ae83269
Fix typo
vanhalenar d9a618f
Address comment
vanhalenar f5d16b3
Fix linter
vanhalenar 189a0ae
Increase timeout limit
vanhalenar 1b8b600
Merge branch 'gitops' of github.com:vanhalenar/microshift into gitops
vanhalenar 0bf3ec6
Use different namespace, address comments
vanhalenar 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
11 changes: 11 additions & 0 deletions
11
test/image-blueprints-bootc/layer3-periodic/group2/rhel96-bootc-source-gitops.containerfile
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,11 @@ | ||
FROM localhost/rhel96-bootc-source:latest | ||
|
||
# Copy repository configuration | ||
COPY ./bootc-images/microshift-gitops.repo \ | ||
/etc/yum.repos.d/ | ||
|
||
# Print repository configuration contents. | ||
# Install MicroShift and cleanup. | ||
RUN dnf install -y microshift-gitops && \ | ||
rm -vf /etc/yum.repos.d/microshift-*.repo && \ | ||
dnf clean all |
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,10 @@ | ||
[microshift-gitops] | ||
name = Red Hat OpenShift GitOps {{ .Env.GITOPS_VERSION }} for RHEL 9 {{ .Env.UNAME_M }} (RPMs) | ||
baseurl = https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/gitops/{{ .Env.GITOPS_VERSION }}/os | ||
enabled = 1 | ||
gpgcheck = 1 | ||
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release | ||
sslverify = 1 | ||
sslcacert = /etc/rhsm/ca/redhat-uep.pem | ||
sslclientkey = {{ .Env.SSL_CLIENT_KEY_FILE }} | ||
sslclientcert = {{ .Env.SSL_CLIENT_CERT_FILE }} |
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,17 @@ | ||
#!/bin/bash | ||
|
||
# Sourced from scenario.sh and uses functions defined there. | ||
|
||
scenario_create_vms() { | ||
prepare_kickstart host1 kickstart-bootc.ks.template rhel96-bootc-source-gitops | ||
launch_vm --boot_blueprint rhel96-bootc | ||
} | ||
|
||
scenario_remove_vms() { | ||
remove_vm host1 | ||
} | ||
|
||
scenario_run_tests() { | ||
run_tests host1 \ | ||
suites/gitops/ | ||
} |
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,26 @@ | ||
*** Settings *** | ||
Documentation MicroShift GitOps tests | ||
|
||
Resource ../../resources/microshift-process.resource | ||
|
||
Suite Setup Setup Suite With Namespace | ||
Suite Teardown Teardown Suite With Namespace | ||
|
||
|
||
*** Variables *** | ||
${WORKLOAD_URL} https://raw.githubusercontent.com/argoproj/argocd-example-apps/refs/heads/master/guestbook/guestbook-ui-deployment.yaml | ||
|
||
|
||
*** Test Cases *** | ||
Verify GitOps Pods Start Correctly | ||
[Documentation] Waits for pods to enter a running state | ||
|
||
Wait Until Keyword Succeeds 2min 10s | ||
... All Pods Should Be Running openshift-gitops | ||
|
||
Verify Workload Deployed Correctly | ||
[Documentation] Deploys workload and waits for ready status | ||
|
||
Oc Apply -f ${WORKLOAD_URL} -n ${NAMESPACE} | ||
Wait Until Keyword Succeeds 5min 10s | ||
... Named Deployment Should Be Available guestbook-ui |
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.