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)
	}
}
TestConfigMapSuccessCheck checks status of ready ConfigMap
package resources
import (
	"testing"
	"github.com/Mirantis/k8s-AppController/pkg/interfaces"
	"github.com/Mirantis/k8s-AppController/pkg/mocks"
)