ref(pkg/releasetesting): ref environment tests

* take out interfaces since no longer needed
pull/1939/head
Michelle Noorali 9 years ago
parent feff878790
commit 2343050eb0

@ -93,7 +93,7 @@ type getFailingKubeClient struct {
}
func (p *getFailingKubeClient) Get(ns string, r io.Reader) (string, error) {
return "", errors.New("In the end, they did not find Nemo.")
return "", errors.New("Get failed")
}
func newDeleteFailingKubeClient() *deleteFailingKubeClient {

@ -1,27 +0,0 @@
/*
Copyright 2017 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package releasetesting
// Streamer is an interface that supports streaming information
type Streamer interface {
streamRunning(name string) error
streamError(info string) error
streamFailed(name, namespace string) error
streamSuccess(name string) error
streamUnknown(name, info string) error
streamMessage(msg string) error
}

@ -64,7 +64,6 @@ func NewTestSuite(rel *release.Release) (*TestSuite, error) {
// Run executes tests in a test suite and stores a result within the context of a given environment
func (t *TestSuite) Run(env *Environment) error {
t.StartedAt = timeconv.Now()
streamer := EnvironmentStreamer{Env: env}
for _, testManifest := range t.TestManifests {
test, err := newTest(testManifest)

Loading…
Cancel
Save