Organize test files by type and namespace

This commit is contained in:
divolgin
2021-12-17 19:22:39 +00:00
parent 46cfa14598
commit 3cedbe16a7
6 changed files with 13 additions and 13 deletions

View File

@@ -4,14 +4,14 @@ import (
_ "embed"
)
//go:embed files/deployments.json
var collectedDeployments string
//go:embed files/deployments/default.json
var defaultDeployments string
//go:embed files/nodes.json
var collectedNodes string
//go:embed files/jobs.json
var collectedJobs string
//go:embed files/jobs/test.json
var testJobs string
//go:embed files/replicasets.json
var collectedReplicaSets string
//go:embed files/replicasets/rook-ceph.json
var rookCephReplicaSets string

View File

@@ -46,7 +46,7 @@ func Test_deploymentStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
},
},
{
@@ -80,7 +80,7 @@ func Test_deploymentStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
},
},
{
@@ -120,7 +120,7 @@ func Test_deploymentStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
},
},
}

View File

@@ -46,7 +46,7 @@ func Test_JobStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/jobs/test.json": []byte(collectedJobs),
"cluster-resources/jobs/test.json": []byte(testJobs),
},
},
{
@@ -80,7 +80,7 @@ func Test_JobStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/jobs/test.json": []byte(collectedJobs),
"cluster-resources/jobs/test.json": []byte(testJobs),
},
},
{
@@ -120,7 +120,7 @@ func Test_JobStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/jobs/test.json": []byte(collectedJobs),
"cluster-resources/jobs/test.json": []byte(testJobs),
},
},
{
@@ -138,7 +138,7 @@ func Test_JobStatus(t *testing.T) {
},
},
files: map[string][]byte{
"cluster-resources/jobs/test.json": []byte(collectedJobs),
"cluster-resources/jobs/test.json": []byte(testJobs),
},
},
}