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

test: e2e test #143

Merged
merged 44 commits into from
Dec 22, 2023
Merged

test: e2e test #143

merged 44 commits into from
Dec 22, 2023

Conversation

JeyJeyGao
Copy link
Collaborator

@JeyJeyGao JeyJeyGao commented Dec 20, 2023

Test:

  • added e2e test for Linux, windows and macOS
  • includes 14 test cases: imported pem/pfx certs chain, unordered pem/pfx certs chain, azure key vault csr pem/pfx certs chain, self-signed pem/pfx certs, partial pem/pfx certs chain with local cert bundle and corresponding invalid cases.
  • the E2E automatically run for PRs from Azure/notation-azure-kv repo and will be skipped for folked repo

Additional files:

  • dockerfile for build distribution registry on windows
  • zot configuration for local registry on macOS
  • generate-certs.sh script for create certificate on azure key vault for future re-generating certificates.

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8884168) 95.09% compared to head (db7088c) 91.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #143      +/-   ##
==========================================
- Coverage   95.09%   91.65%   -3.45%     
==========================================
  Files          16       16              
  Lines         551      551              
  Branches        0       67      +67     
==========================================
- Hits          524      505      -19     
- Misses         27       33       +6     
- Partials        0       13      +13     

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

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
@JeyJeyGao JeyJeyGao self-assigned this Dec 20, 2023
Copy link
Member

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

Should .github/e2e/ be put at tests/e2e/?

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
@JeyJeyGao
Copy link
Collaborator Author

Should .github/e2e/ be put at tests/e2e/

@shizhMSFT Updated.

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Copy link
Member

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@JeyJeyGao JeyJeyGao merged commit e3fce3d into main Dec 22, 2023
12 checks passed
@JeyJeyGao JeyJeyGao deleted the test/e2e branch December 22, 2023 04:11
JeyJeyGao added a commit that referenced this pull request Dec 25, 2023
commit e3fce3d
Author: Junjie Gao <junjiegao@microsoft.com>
Date:   Fri Dec 22 12:11:33 2023 +0800

    test: e2e test (#143)

    Test:
    - added e2e test for Linux, windows and macOS
    - includes 14 test cases: imported pem/pfx certs chain, unordered
    pem/pfx certs chain, azure key vault csr pem/pfx certs chain,
    self-signed pem/pfx certs, partial pem/pfx certs chain with local cert
    bundle and corresponding invalid cases.
    - the E2E automatically run for PRs from `Azure/notation-azure-kv` repo
    and will be skipped for folked repo

    Additional files:
    - dockerfile for build distribution registry on windows
    - zot configuration for local registry on macOS
    - generate-certs.sh script for create certificate on azure key vault for
    future re-generating certificates.

    ---------

    Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
JeyJeyGao added a commit that referenced this pull request Dec 25, 2023
commit e3fce3d
Author: Junjie Gao <junjiegao@microsoft.com>
Date:   Fri Dec 22 12:11:33 2023 +0800

    test: e2e test (#143)

    Test:
    - added e2e test for Linux, windows and macOS
    - includes 14 test cases: imported pem/pfx certs chain, unordered
    pem/pfx certs chain, azure key vault csr pem/pfx certs chain,
    self-signed pem/pfx certs, partial pem/pfx certs chain with local cert
    bundle and corresponding invalid cases.
    - the E2E automatically run for PRs from `Azure/notation-azure-kv` repo
    and will be skipped for folked repo

    Additional files:
    - dockerfile for build distribution registry on windows
    - zot configuration for local registry on macOS
    - generate-certs.sh script for create certificate on azure key vault for
    future re-generating certificates.

    ---------

    Signed-off-by: Junjie Gao <junjiegao@microsoft.com>

Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
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.

None yet

2 participants