-
Notifications
You must be signed in to change notification settings - Fork 22
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 tls settings for BackupPolicy #580
Conversation
eedf619
to
19bb6c6
Compare
19bb6c6
to
b497b25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we should run 2 minio instances, one with TLS enabled and another with disabled.
And run the tests for both.
Thank you for your comment. |
I just thought it was not enough. |
I wanted to add test cases a little more intelligently, but I added tests using two minio. |
@kmdkuk thank you! |
5633a2f
to
87da18d
Compare
There was conflict, so I resolve it. |
87da18d
to
affef6e
Compare
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
Co-authored-by: morimoto-cybozu <kenji_morimoto@cybozu.co.jp>
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
affef6e
to
3dbbdc0
Compare
This looks like a fundamental error.
Cc: @zoetrope |
No it's not. It's just due to a poor test code... type process struct {
ID uint64 `db:"ID"`
User string `db:"USER"`
Host string `db:"HOST"`
State string `db:"STATE"` // for debugging
}
var _ = Describe("kill", func() {
It("should kill non-system processes only", func() {
By("preparing a single node cluster")
cluster := &mocov1beta2.MySQLCluster{}
cluster.Namespace = "test"
cluster.Name = "kill"
cluster.Spec.Replicas = 1
passwd, err := password.NewMySQLPassword()
Expect(err).NotTo(HaveOccurred())
op, err := factory.New(context.Background(), cluster, passwd, 0)
Expect(err).NotTo(HaveOccurred())
By("creating a user and making a connection with the user")
_, err = op.(*operator).db.Exec("SET GLOBAL read_only=0")
Expect(err).NotTo(HaveOccurred())
_, err = op.(*operator).db.Exec("CREATE USER 'foo'@'%' IDENTIFIED BY 'bar'")
Expect(err).NotTo(HaveOccurred())
db, err := factory.(*testFactory).newConn(context.Background(), cluster, "foo", "bar", 0)
Expect(err).NotTo(HaveOccurred())
defer db.Close()
By("getting process list")
var procs []process
err = op.(*operator).db.Select(&procs, `SELECT ID, USER, HOST, STATE FROM information_schema.PROCESSLIST`)
Expect(err).NotTo(HaveOccurred()) |
@kmdkuk @zoetrope |
@masa213f |
Signed-off-by: kouki <kouworld0123@gmail.com>
Signed-off-by: kouki <kouworld0123@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It is just for debugging. I meant to delete the |
@masa213f Thank you for answering. So, are you going to remove it? |
ca-cert
flag to moco-backupcaCert
field to BackupPolicySigned-off-by: kouki kouworld0123@gmail.com