func TestConfigMapFailCheck(t *testing.T) {
	c := mocks.NewClient(mocks.ConfigMaps())
	status, err := configMapStatus(c.ConfigMaps(), "fail")
	if err == nil {
		t.Error("error not found, expected error")
	}
	if status != interfaces.ResourceError {
		t.Errorf("status should be `error`, is `%s` instead.", status)
	}
}
TestConfigMapFailCheck checks status of not existing ConfigMap
package resources
import (
	"testing"
	"github.com/Mirantis/k8s-AppController/pkg/interfaces"
	"github.com/Mirantis/k8s-AppController/pkg/mocks"
)
func TestConfigMapSuccessCheck(t *testing.T) {
	c := mocks.NewClient(mocks.ConfigMaps("notfail"))
	status, err := configMapStatus(c.ConfigMaps(), "notfail")
	if err != nil {
		t.Error(err)
	}
	if status != interfaces.ResourceReady {
		t.Errorf("status should be `ready`, is `%s` instead.", status)
	}
}