Skip to content

Add Integration Tests for Kopia RepositoryServer based kando Blueprint for MySQL#2026

Open
r4rajat wants to merge 99 commits intomasterfrom
integration-test-kopia-repo-server-functions
Open

Add Integration Tests for Kopia RepositoryServer based kando Blueprint for MySQL#2026
r4rajat wants to merge 99 commits intomasterfrom
integration-test-kopia-repo-server-functions

Conversation

@r4rajat
Copy link
Copy Markdown
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

r4rajat and others added 11 commits March 31, 2023 20:18
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
@github-actions
Copy link
Copy Markdown
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 and others added 3 commits April 21, 2023 13:09
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Comment thread pkg/app/kopia_repository_server_mysql.go Outdated
@r4rajat r4rajat requested a review from denisvmedia April 24, 2023 07:05
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
@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
@pavannd1 pavannd1 requested review from viveksinghggits and removed request for PrasadG193 and viveksinghggits June 13, 2023 06:57
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@github-actions
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@r4rajat

@github-actions github-actions bot removed the stale label Dec 16, 2023
@github-actions
Copy link
Copy Markdown
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.

7 participants