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

Scaling new #277

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed import from scaling_test.
naredula-jana committed Jan 24, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit aa24498678d0d826c88b5e436c14e36fb2e7d81b
8 changes: 4 additions & 4 deletions pkg/k8sutil/scaling_test.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package k8sutil

import (
"testing"
"github.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil"

)


@@ -16,21 +16,21 @@ const (
incase if testing function does not return the error then the unit test should fail.
*/
func Test_scaling_change_setting(t *testing.T) {
err := k8sutil.ES_change_settings(NonExistingIP, "1m", "request");
err := ES_change_settings(NonExistingIP, "1m", "request");
if (err == nil){
t.Errorf("Scaling unittest change setting failed");
}
}

func Test_check_for_green(t *testing.T) {
err := k8sutil.ES_checkForGreen(NonExistingIP);
err := ES_checkForGreen(NonExistingIP);
if (err == nil){
t.Errorf("Scaling unittest check_for_green failed");
}
}

func Test_check_for_nodeUp(t *testing.T) {
err := k8sutil.ES_checkForNodeUp(NonExistingIP, NonExistingPOD, 5);
err := ES_checkForNodeUp(NonExistingIP, NonExistingPOD, 5);
if (err == nil){
t.Errorf("Scaling unittest check_for_nodeUp failed");
}