-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be5c567
commit 975274e
Showing
5 changed files
with
154 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package test | ||
|
||
import ( | ||
goctx "context" | ||
|
||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
|
||
"github.com/aerospike/aerospike-kubernetes-operator/controllers/common" | ||
) | ||
|
||
var _ = Describe( | ||
"Backup Service Test", func() { | ||
|
||
It("Should setup user RBAC", func() { | ||
// Create SA for aerospike backup service | ||
err := createServiceAccount(k8sClient, goctx.TODO(), common.AerospikeBackupService, namespace) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
// Setup by user function | ||
// test creating resource | ||
// IN operator namespace | ||
// Create aerospike-secret | ||
// Create auth-secret (admin) | ||
// Create auth-update (admin123) | ||
|
||
// For test1 | ||
// Create aerospike-secret | ||
// Create auth-secret (admin) | ||
|
||
// For test2 | ||
// Create aerospike-secret | ||
// Create auth-secret (admin) | ||
|
||
// For aerospike | ||
// Create aerospike-secret | ||
// Create auth-secret (admin) | ||
|
||
// For common | ||
// Create namespace test1, test2, aerospike | ||
// ServiceAccount: aerospike-cluster (operatorNs, test1, test2, aerospike) | ||
// ClusterRole: aerospike-cluster | ||
// ClusterRoleBinding: aerospike-cluster | ||
|
||
err = setupByUser(k8sClient, goctx.TODO()) | ||
Expect(err).ToNot(HaveOccurred()) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters