mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Organize test files by type and namespace
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user