Skip to content
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

feat: Add HTTPS support to REST #986

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Conversation

Yangsta911
Copy link
Contributor

add HTTPS support to REST

Closes edgexfoundry/edgex-go#5099

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-core-contracts/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

Scheme should be enough to represent tcp, tcps, http, https

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 42.95%. Comparing base (583c141) to head (9867e02).

Files with missing lines Patch % Lines
dtos/address.go 0.00% 6 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #986      +/-   ##
==========================================
- Coverage   42.95%   42.95%   -0.01%     
==========================================
  Files         119      119              
  Lines        7205     7206       +1     
==========================================
  Hits         3095     3095              
- Misses       3767     3768       +1     
  Partials      343      343              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

please sign-off your commit to resolve DCO

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

@cloudxxx8 cloudxxx8 merged commit 5796f01 into edgexfoundry:main Mar 5, 2025
3 checks passed
judehung added a commit to judehung/go-mod-core-contracts that referenced this pull request Mar 10, 2025
The PR edgexfoundry#986 set the scheme
configurable in NewRESTAddress, but didn't consider a default value when
scheme is empty string.

This commit will set http as the default value when scheme is an empty string.

Signed-off-by: Jude Hung <[email protected]>
judehung added a commit to judehung/go-mod-core-contracts that referenced this pull request Mar 10, 2025
fixes edgexfoundry#990

The PR edgexfoundry#986 set the scheme
configurable in NewRESTAddress, but didn't consider a default value when
scheme is empty string.

This commit will set http as the default value when scheme is an empty string.

Signed-off-by: Jude Hung <[email protected]>
judehung added a commit to judehung/go-mod-core-contracts that referenced this pull request Mar 10, 2025
fixes edgexfoundry#990

The PR edgexfoundry#986 set the scheme
configurable in NewRESTAddress, but didn't consider a default value when
scheme is empty string.

This commit will set http as the default value when scheme is an empty string.

Signed-off-by: Jude Hung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable HTTPS support for support notifications
3 participants