Skip to content

Commit 3cedbe1

Browse files
committed
Organize test files by type and namespace
1 parent 46cfa14 commit 3cedbe1

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

pkg/analyze/data_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import (
44
_ "embed"
55
)
66

7-
//go:embed files/deployments.json
8-
var collectedDeployments string
7+
//go:embed files/deployments/default.json
8+
var defaultDeployments string
99

1010
//go:embed files/nodes.json
1111
var collectedNodes string
1212

13-
//go:embed files/jobs.json
14-
var collectedJobs string
13+
//go:embed files/jobs/test.json
14+
var testJobs string
1515

16-
//go:embed files/replicasets.json
17-
var collectedReplicaSets string
16+
//go:embed files/replicasets/rook-ceph.json
17+
var rookCephReplicaSets string

pkg/analyze/deployment_status_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Test_deploymentStatus(t *testing.T) {
4646
},
4747
},
4848
files: map[string][]byte{
49-
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
49+
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
5050
},
5151
},
5252
{
@@ -80,7 +80,7 @@ func Test_deploymentStatus(t *testing.T) {
8080
},
8181
},
8282
files: map[string][]byte{
83-
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
83+
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
8484
},
8585
},
8686
{
@@ -120,7 +120,7 @@ func Test_deploymentStatus(t *testing.T) {
120120
},
121121
},
122122
files: map[string][]byte{
123-
"cluster-resources/deployments/default.json": []byte(collectedDeployments),
123+
"cluster-resources/deployments/default.json": []byte(defaultDeployments),
124124
},
125125
},
126126
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/analyze/job_status_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Test_JobStatus(t *testing.T) {
4646
},
4747
},
4848
files: map[string][]byte{
49-
"cluster-resources/jobs/test.json": []byte(collectedJobs),
49+
"cluster-resources/jobs/test.json": []byte(testJobs),
5050
},
5151
},
5252
{
@@ -80,7 +80,7 @@ func Test_JobStatus(t *testing.T) {
8080
},
8181
},
8282
files: map[string][]byte{
83-
"cluster-resources/jobs/test.json": []byte(collectedJobs),
83+
"cluster-resources/jobs/test.json": []byte(testJobs),
8484
},
8585
},
8686
{
@@ -120,7 +120,7 @@ func Test_JobStatus(t *testing.T) {
120120
},
121121
},
122122
files: map[string][]byte{
123-
"cluster-resources/jobs/test.json": []byte(collectedJobs),
123+
"cluster-resources/jobs/test.json": []byte(testJobs),
124124
},
125125
},
126126
{
@@ -138,7 +138,7 @@ func Test_JobStatus(t *testing.T) {
138138
},
139139
},
140140
files: map[string][]byte{
141-
"cluster-resources/jobs/test.json": []byte(collectedJobs),
141+
"cluster-resources/jobs/test.json": []byte(testJobs),
142142
},
143143
},
144144
}

0 commit comments

Comments
 (0)