Add a prefix option to e2e for use with resources

This is helpful when cleaning manually up after a failed test in
shared a gce environment.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
This commit is contained in:
Sami Wagiaalla
2015-06-05 16:43:43 -04:00
parent b68e08f55f
commit 899cf360ba
4 changed files with 4 additions and 1 deletions

View File

@@ -189,7 +189,7 @@ var _ = Describe("Pod Disks", func() {
func createPD() (string, error) {
if testContext.Provider == "gce" {
pdName := fmt.Sprintf("e2e-%s", string(util.NewUUID()))
pdName := fmt.Sprintf("%s-%s", testContext.prefix, string(util.NewUUID()))
zone := testContext.CloudConfig.Zone
// TODO: make this hit the compute API directly instread of shelling out to gcloud.