File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ import (
1919)
2020
2121func TestCreateIssuer (t * testing.T ) {
22- ctx := context .Background ()
23-
2422 customIssuerName := "issuer-conf-name"
2523
2624 cr := & api.PerconaServerMongoDB {
@@ -30,6 +28,7 @@ func TestCreateIssuer(t *testing.T) {
3028 TLS : & api.TLSSpec {
3129 IssuerConf : api.IssuerConfReference {
3230 Name : customIssuerName ,
31+ Kind : cm .IssuerKind ,
3332 },
3433 },
3534 },
@@ -40,6 +39,7 @@ func TestCreateIssuer(t *testing.T) {
4039 issuer := & cm.Issuer {}
4140
4241 t .Run ("Create issuer with custom name" , func (t * testing.T ) {
42+ ctx := t .Context ()
4343 if _ , err := r .ApplyIssuer (ctx , cr ); err != nil {
4444 t .Fatal (err )
4545 }
@@ -55,6 +55,7 @@ func TestCreateIssuer(t *testing.T) {
5555 })
5656
5757 t .Run ("Create issuer with default name" , func (t * testing.T ) {
58+ ctx := t .Context ()
5859 cr .Spec .CRVersion = "1.15.0"
5960 if _ , err := r .ApplyIssuer (ctx , cr ); err != nil {
6061 t .Fatal (err )
You can’t perform that action at this time.
0 commit comments