test: mark unit test secrets as not secret
There are 2 cases of randomly generated secrets copied into Rook's unit test code that have been flagged by Gitleaks. Add a comment to both cases to help the tool understand that these aren't real production secrets -- just unit test stand-ins. Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -348,7 +348,7 @@ var mockMultisiteAdminOpsCtxFunc = func(objContext *Context, spec *cephv1.Object
|
||||
return &AdminOpsContext{
|
||||
Context: *context,
|
||||
AdminOpsUserAccessKey: "EOE7FYCNOBZJ5VFV909G",
|
||||
AdminOpsUserSecretKey: "qmIqpWm8HxCzmynCrD6U6vKWi4hnDBndOnmxXNsV",
|
||||
AdminOpsUserSecretKey: "qmIqpWm8HxCzmynCrD6U6vKWi4hnDBndOnmxXNsV", // notsecret
|
||||
AdminOpsClient: adminClient,
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ func TestCephObjectStoreUserController(t *testing.T) {
|
||||
return &cephobject.AdminOpsContext{
|
||||
Context: *context,
|
||||
AdminOpsUserAccessKey: "53S6B9S809NUP19IJ2K3",
|
||||
AdminOpsUserSecretKey: "1bXPegzsGClvoGAiJdHQD1uOW2sQBLAZM9j9VtXR",
|
||||
AdminOpsUserSecretKey: "1bXPegzsGClvoGAiJdHQD1uOW2sQBLAZM9j9VtXR", // notsecret
|
||||
AdminOpsClient: adminClient,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user