Exemplo n.º 1
0
				Prefix:    "drippy/",
				Delimiter: "/",
				Contents: []s3.Key{
					s3.Key{Key: "drippy/bits.tgz"},
					s3.Key{Key: "drippy/droplet.tgz"},
					s3.Key{Key: "drippy/result.json"},
				},
			}
			fakeBlobBucket.ListReturns(dropletContents, nil)

			fakeBlobBucket.DelStub = func(path string) error {
				switch path {
				case "drippy/bits.tgz":
					return nil
				case "drippy/droplet.tgz":
					return nil
				case "drippy/result.json":
					return nil
				default:
					return errors.New("bad arg to bucket.Del(): " + path)
				}
			}

			appInfos := []app_examiner.AppInfo{
				{
					Annotation: "",
				},
				{
					Annotation: `{
						"droplet_source": {
							"host": "other-blob-host",
							"port": 7474,