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 Integration Tests for Kopia RepositoryServer based kando Blueprint for MySQL #2026

Open
wants to merge 99 commits into
base: master
Choose a base branch
from

Conversation

r4rajat
Copy link
Contributor

@r4rajat r4rajat commented Apr 18, 2023

Change Overview

Add Integration Tests for Kopia RepositoryServer based kando blueprint for MySQL

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Manual Testing

1) Deploy Kanister

helm install kanister ./helm/kanister-operator \
--namespace kanister \
--set image.repository=r4rajat/controller \
--set image.tag=v69 \
--set repositoryServerControllerImage.registry=r4rajat \
--set repositoryServerControllerImage.name=repo-server-controller \
--set repositoryServerControllerImage.tag=v69 \
--set controller.parallelism=10 \
--create-namespace

2) Change target of integration-test in makefile

integration-test: build-dirs
	@$(MAKE) run CMD='-c "./build/integration-test.sh kopia"'

3) Install minio

make install-minio

4) Run Integration Tests

make integration-test

@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@r4rajat r4rajat changed the base branch from master to mysql-blueprint-kopia-repository-server April 21, 2023 07:39
@r4rajat r4rajat changed the base branch from mysql-blueprint-kopia-repository-server to master April 21, 2023 07:39
@r4rajat r4rajat changed the title Add Integration Tests for Kopia RepositoryServer based functions Add Integration Tests for Kopia RepositoryServer based kando blueprint for MySQL Jun 6, 2023
@r4rajat r4rajat changed the title Add Integration Tests for Kopia RepositoryServer based kando blueprint for MySQL Add Integration Tests for Kopia RepositoryServer based kando Blueprint for MySQL Jun 6, 2023
r4rajat and others added 2 commits August 8, 2023 15:18
…pia-repo-server-functions

# Conflicts:
#	pkg/kopia/command/storage/storage_args.go
#	pkg/secrets/repositoryserver/const.go
#	pkg/testing/integration_register.go
}

func (mdb *KopiaRepositoryServerMysqlDB) Chart() *helm.ChartInfo {
return &mdb.chart
Copy link
Contributor

Choose a reason for hiding this comment

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

Is retiring a pointer to the internal field desired? This might lead to external changes that could be potentially undesired here. WDYT?

Copy link
Contributor

@kale-amruta kale-amruta left a comment

Choose a reason for hiding this comment

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

Added few comments

// DefaultKopiaRepositoryServerAdminPassword is the default password for the kopia repository server admin user.
DefaultKopiaRepositoryServerAdminPassword = "admin1234"
)

Copy link
Contributor

Choose a reason for hiding this comment

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

@r4rajat this file contains lot of redundant code that pkg/testutil/testutil.go has. Should we reuse the functions in that file wherever possible?

s.kopiaRepositoryServer.repositoryServer.Spec.Server.TLSSecretRef = corev1.SecretReference{
Name: tls.GetName(),
Namespace: tls.GetNamespace(),
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move creation of secrets to another function? We are currently using s3 as a profile, but we have to write integration tests for other profiles such as filestore as well. In that case if creation of secrets is made generic, that would be useful

Copy link
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it.

@github-actions github-actions bot added the stale label Dec 15, 2023
@viveksinghggits
Copy link
Contributor

@r4rajat

@github-actions github-actions bot removed the stale label Dec 16, 2023
Copy link
Contributor

This PR is marked as stale due to inactivity. Add a new comment to reactivate it.

@github-actions github-actions bot added the stale label Mar 15, 2024
@pavannd1 pavannd1 added frozen and removed stale labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants