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

Add new integration tests for Azure OIDC for git repositories #791

Closed

Conversation

dipti-pai
Copy link
Member

@dipti-pai dipti-pai commented Jul 19, 2024

Changes include pkg changes in PR 789 and the following changes in tests/integration to add git tests

  • testapp is modified to accept category git and test cloning azure devops git repository using workload identity.
  • Azure terraform files are separated into oci and git. Azure terraform files for git require an organization and PAT and create ADO project and repository
  • suite_test.go is modified to add new git category and setup provider specific test configuration and permissions on git repository
  • azure_test.go has new functions to return test configuration based on the git terraform file output and API to give the workload identity access to the ADO repository.
  • repo_list_test.go has a new test to validate Azure OIDC for ADO repository.
  • util_test.go is a new utility with functions to get the gogit client to clone, commit and push changes to a git repository.

In a subsequent PR, we can consider moving oci//tests/integration/ out of oci package to a root directory tests/integration/

Depends on PR in test-infra #44

…r azure provider

Signed-off-by: Dipti Pai <diptipai89@outlook.com>
Signed-off-by: Dipti Pai <diptipai89@outlook.com>
Signed-off-by: Dipti Pai <diptipai89@outlook.com>
- testapp is modified to accept category git and test cloning azure devops git repository using workload identity.
- Azure terraform files are separated into oci and git. Azure terraform files for git require an organization and PAT and create ADO project and repository
- suite_test.go is modified to add new git category and setup provider specific test configuration and permissions on git repository
- azure_test.go has new functions to return test configuration based on the git terraform file output and API to give the workload identity access to the ADO repository.
- repo_list_test.go has a new test to validate Azure OIDC for ADO repository.
- util_test.go is a new utility with functions to get the gogit client to clone, commit and push changes to a git repository.

Signed-off-by: Dipti Pai <diptipai89@outlook.com>
Signed-off-by: Dipti Pai <diptipai89@outlook.com>
@dipti-pai dipti-pai requested review from stefanprodan and a team as code owners July 19, 2024 21:34
@dipti-pai dipti-pai closed this Jul 22, 2024
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.

1 participant