mirror of
https://github.com/cristicalin/synology-csi.git
synced 2026-05-08 05:52:38 +00:00
Update to version 1.1.0
This commit is contained in:
12
test/sanity/sanity-test-secret-file-template.yaml
Normal file
12
test/sanity/sanity-test-secret-file-template.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
# CreateVolumeSecret:
|
||||
# DeleteVolumeSecret:
|
||||
# ControllerPublishVolumeSecret:
|
||||
# ControllerUnpublishVolumeSecret:
|
||||
# ControllerValidateVolumeCapabilitiesSecret:
|
||||
NodeStageVolumeSecret:
|
||||
username: "username"
|
||||
password: "password"
|
||||
# NodePublishVolumeSecret:
|
||||
# CreateSnapshotSecret:
|
||||
# DeleteSnapshotSecret:
|
||||
# ControllerExpandVolumeSecret:
|
||||
@@ -15,6 +15,7 @@ import (
|
||||
|
||||
const (
|
||||
ConfigPath = "./../../config/client-info.yml"
|
||||
SecretsFilePath = "./sanity-test-secret-file.yaml"
|
||||
)
|
||||
|
||||
func TestSanity(t *testing.T) {
|
||||
@@ -69,6 +70,15 @@ func TestSanity(t *testing.T) {
|
||||
testConfig.TargetPath = targetPath
|
||||
testConfig.StagingPath = stagingPath
|
||||
testConfig.Address = endpoint
|
||||
testConfig.SecretsFile = SecretsFilePath
|
||||
|
||||
// Set Input parameters for test
|
||||
testConfig.TestVolumeParameters = map[string]string{
|
||||
"protocol": "smb",
|
||||
}
|
||||
|
||||
// testConfig.TestVolumeAccessType = "block" // raw block
|
||||
|
||||
// Run test
|
||||
sanity.Test(t, testConfig)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user