Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Tests for plugins #25

Closed
wants to merge 11 commits into from
4 changes: 2 additions & 2 deletions plugins/logs/dao_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var getTotalNodesTest = []struct {
{
&ServerSetup{
Method: "GET",
Path: "/_nodes/_all/_all%2Cnodes",
Path: "/_nodes/_all/nodes",
Body: "",
Response: `{"cluster_name": "elasticsearch","nodes":{"kxyUith0T3yui4gn6PBbJQ":{"name": "kxyUith","transport_address": "127.0.0.1:9300","host": "127.0.0.1","ip": "127.0.0.1","version": "6.2.4","build_hash": "ccec39f","roles":["master","data","ingest"]}}}`,
},
Expand All @@ -31,7 +31,7 @@ var getTotalNodesTest = []struct {
{
&ServerSetup{
Method: "GET",
Path: "/_nodes/_all/_all%2Cnodes",
Path: "/_nodes/_all/nodes",
Body: "",
Response: `{"cluster_name": "elasticsearch","nodes:{"kxyUith0T3yui4gn6PBbJQ":{"name": "kxyUith","transport_address": "127.0.0.1:9300","host": "127.0.0.1","ip": "127.0.0.1","version": "6.2.4","build_hash": "ccec39f","roles":["master","data","ingest"]}}}`,
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/permissions/dao_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var getTotalNodesTest = []struct {
{
&ServerSetup{
Method: "GET",
Path: "/_nodes/_all/_all%2Cnodes",
Path: "/_nodes/_all/nodes",
Body: "",
Response: `{"cluster_name": "elasticsearch","nodes":{"kxyUith0T3yui4gn6PBbJQ":{"name": "kxyUith","transport_address": "127.0.0.1:9300","host": "127.0.0.1","ip": "127.0.0.1","version": "6.2.4","build_hash": "ccec39f","roles":["master","data","ingest"]}}}`,
},
Expand All @@ -34,7 +34,7 @@ var getTotalNodesTest = []struct {
{
&ServerSetup{
Method: "GET",
Path: "/_nodes/_all/_all%2Cnodes",
Path: "/_nodes/_all/nodes",
Body: "",
Response: `{cluster_name": "elasticsearch","nodes":{"kxyUith0T3yui4gn6PBbJQ":{"name": "kxyUith","transport_address": "127.0.0.1:9300","host": "127.0.0.1","ip": "127.0.0.1","version": "6.2.4","build_hash": "ccec39f","roles":["master","data","ingest"]}}}`,
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/users/dao_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var getTotalNodesTest = []struct {
{
&ServerSetup{
Method: "GET",
Path: "/_nodes/_all/_all%2Cnodes",
Path: "/_nodes/_all/nodes",
Body: "",
Response: `{"cluster_name": "elasticsearch","nodes":{"kxyUith0T3yui4gn6PBbJQ":{"name": "kxyUith","transport_address": "127.0.0.1:9300","host": "127.0.0.1","ip": "127.0.0.1","version": "6.2.4","build_hash": "ccec39f","roles":["master","data","ingest"]}}}`,
},
Expand Down