Skip to content

USHIFT-5572: Add HTTP01 ACME test for cert-manager#5320

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
kasturinarra:cert-manager-http01-test
Sep 29, 2025
Merged

USHIFT-5572: Add HTTP01 ACME test for cert-manager#5320
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
kasturinarra:cert-manager-http01-test

Conversation

@kasturinarra
Copy link
Contributor

  • Add new test case for cert-manager with local ACME server (Pebble) using HTTP01 challenge
  • Include Pebble server deployment configuration
  • Add keywords for DNS name retrieval, certificate verification, and cleanup

🤖 Generated with Claude Code

Which issue(s) this PR addresses: Creating a local acme server to t

Closes #

@openshift-ci openshift-ci bot requested review from copejon and jerpeter1 August 13, 2025 10:23
@kasturinarra
Copy link
Contributor Author

kasturinarra commented Aug 13, 2025

@eslutsky could you please help review ? thanks !!
I have tried to add /etc/hosts entry but that kind of does not work here, and since QE vms have dns resolvable name i used that for now. May be we could discucss once you are back.

@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch 7 times, most recently from e9b49cb to 52f744f Compare August 18, 2025 07:43
Comment on lines +188 to +196
${subject_alt_names_line}= Get Lines Containing String ${config_content} subjectAltNames:
${first_line}= Get Line ${subject_alt_names_line} 0
${alt_names_content}= Get Regexp Matches ${first_line} \\[(.+?)\\] 1
VAR ${alt_names_list}= ${alt_names_content}[0]
# Get the first DNS name (before the first comma)
${first_dns_name}= Split String ${alt_names_list} , 1
${dns_name}= Strip String ${first_dns_name}[0]
Should Not Be Empty ${dns_name} msg=Failed to retrieve DNS name from MicroShift config
RETURN ${dns_name}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
${subject_alt_names_line}= Get Lines Containing String ${config_content} subjectAltNames:
${first_line}= Get Line ${subject_alt_names_line} 0
${alt_names_content}= Get Regexp Matches ${first_line} \\[(.+?)\\] 1
VAR ${alt_names_list}= ${alt_names_content}[0]
# Get the first DNS name (before the first comma)
${first_dns_name}= Split String ${alt_names_list} , 1
${dns_name}= Strip String ${first_dns_name}[0]
Should Not Be Empty ${dns_name} msg=Failed to retrieve DNS name from MicroShift config
RETURN ${dns_name}
${config_yaml}= Evaluate yaml.safe_load('''${config_content}''') modules=yaml
${first_dns_name}= Get From List ${config_yaml['apiServer']['subjectAltNames']} 0
Should Not Be Empty ${first_dns_name} msg=Failed to retrieve DNS name from MicroShift config
RETURN ${first_dns_name}

you can evalulate the config as yaml file and get the first item from subjectAltNames .

@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch 5 times, most recently from e017908 to f686a50 Compare August 20, 2025 11:23
@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch from f686a50 to bfeef46 Compare September 3, 2025 11:27
@kasturinarra
Copy link
Contributor Author

/test security

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-arm

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc-arm

@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch 2 times, most recently from 345336c to 1172447 Compare September 5, 2025 11:35
@kasturinarra kasturinarra marked this pull request as draft September 5, 2025 11:52
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2025
@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch from 1172447 to 4f7de9b Compare September 5, 2025 15:58
@kasturinarra kasturinarra marked this pull request as ready for review September 5, 2025 16:06
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2025
@openshift-ci openshift-ci bot requested a review from pmtk September 5, 2025 16:07
@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch from 4f7de9b to 88ab792 Compare September 5, 2025 17:29
@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch from 90f2e06 to 5bff3a4 Compare September 17, 2025 11:07
@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc

2 similar comments
@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc-arm

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc

@kasturinarra kasturinarra force-pushed the cert-manager-http01-test branch from 5bff3a4 to 05a632f Compare September 26, 2025 18:19
@kasturinarra
Copy link
Contributor Author

@eslutsky addressed all your comments, can you please help review again ? thanks !!

@kasturinarra
Copy link
Contributor Author

/test e2e-aws-tests-bootc-arm

@eslutsky
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eslutsky, kasturinarra

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:
  • OWNERS [eslutsky,kasturinarra]

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

@eslutsky
Copy link
Contributor

/verified by ci

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Sep 29, 2025
@openshift-ci-robot
Copy link

@eslutsky: This PR has been marked as verified by ci.

Details

In response to this:

/verified by ci

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 openshift-eng/jira-lifecycle-plugin repository.

@kasturinarra kasturinarra changed the title Add HTTP01 ACME test for cert-manager [USHIFT-5572] Add HTTP01 ACME test for cert-manager Sep 29, 2025
@kasturinarra kasturinarra changed the title [USHIFT-5572] Add HTTP01 ACME test for cert-manager USHIFT-5572 Add HTTP01 ACME test for cert-manager Sep 29, 2025
@kasturinarra kasturinarra changed the title USHIFT-5572 Add HTTP01 ACME test for cert-manager USHIFT-5572: Add HTTP01 ACME test for cert-manager Sep 29, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 29, 2025

@kasturinarra: This pull request references USHIFT-5572 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

Details

In response to this:

  • Add new test case for cert-manager with local ACME server (Pebble) using HTTP01 challenge
  • Include Pebble server deployment configuration
  • Add keywords for DNS name retrieval, certificate verification, and cleanup

🤖 Generated with Claude Code

Which issue(s) this PR addresses: Creating a local acme server to t

Closes #

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 29, 2025
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD ec5a8e2 and 2 for PR HEAD 05a632f in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2025

@kasturinarra: all tests passed!

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 152df35 into openshift:main Sep 29, 2025
9 checks passed
@kasturinarra
Copy link
Contributor Author

/cherry-pick release-4.20

@openshift-cherrypick-robot

@kasturinarra: new pull request created: #5540

Details

In response to this:

/cherry-pick release-4.20

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-sigs/prow repository.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants