Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

[dev-main fix] Fix cert based tests #3824

Merged
merged 4 commits into from
Apr 20, 2024
Merged

[dev-main fix] Fix cert based tests #3824

merged 4 commits into from
Apr 20, 2024

Conversation

alextargov
Copy link
Contributor

@alextargov alextargov commented Apr 19, 2024

Description

Changes proposed in this pull request:

  • Some tests were using the productive certificate service instance for issuing certs. However, in the e2e tests we should you the testing cert service

Related issue(s)

  • ...

Pull Request status

  • Implementation
  • Unit tests
  • Integration tests
  • chart/compass/values.yaml is updated
  • Mocks are regenerated, using the automated script

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2024
@kyma-bot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added 🦖 team-raptor Team Raptor Label cla: yes Indicates the PR's author has signed the CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 19, 2024
@alextargov alextargov marked this pull request as ready for review April 19, 2024 07:47
@alextargov alextargov requested review from a team as code owners April 19, 2024 07:47
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2024
@alextargov alextargov added the 👋 request review Review required label Apr 19, 2024
@alextargov alextargov changed the title Fix cert based tests [dev-main fix] Fix cert based tests Apr 19, 2024
@@ -819,7 +819,7 @@ func TestORDServiceSystemDiscoveryByApplicationTenantID(t *testing.T) {
certSubject := strings.Replace(conf.ExternalCertProviderConfig.TestExternalCertSubject, conf.ExternalCertProviderConfig.TestExternalCertCN, "ord-svc-system-discovery", -1)

// We need an externally issued cert with a subject that is not part of the access level mappings
externalCertProviderConfig := createExternalConfigProvider(certSubject)
externalCertProviderConfig := createExternalConfigProvider(certSubject, conf.CertSvcInstanceTestSecretName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have some questions/concerns about those two tests - TestORDServiceSystemDiscoveryByApplicationTenantID and TestORDServiceSystemDiscoveryByApplicationTenantIDUsingProviderCSM but for now I'll approve the PR so we can proceed with the next steps. After that, we can follow up on that

@kyma-bot kyma-bot added the lgtm Looks good to me! label Apr 19, 2024
@kyma-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PetarTodorovv

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

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

@kyma-bot kyma-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 19, 2024
@kyma-bot
Copy link

kyma-bot commented Apr 19, 2024

@alextargov: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pre-main-compass-gke-benchmark bf87541 link false /test pre-main-compass-gke-benchmark

Full PR test history. Your PR dashboard.

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

@alextargov
Copy link
Contributor Author

/retest

@kyma-bot kyma-bot merged commit 3d0ce58 into main Apr 20, 2024
4 of 6 checks passed
@PetarTodorovv PetarTodorovv mentioned this pull request Apr 25, 2024
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/S Denotes a PR that changes 10-29 lines, ignoring generated files. 🦖 team-raptor Team Raptor Label 👋 request review Review required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants