Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-11120] move legacy world to the last user
Attempts to remove the legacy world have not been successful due to pending work. Relocate the code to the remaining test package and defer the removal. Change-Id: I063dcd8c4422cf4dbe0f4f95aaa4e0982b4e2c61 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
- Loading branch information
Showing
35 changed files
with
89 additions
and
2,302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
Copyright IBM Corp All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package helpers | ||
|
||
import ( | ||
"encoding/base32" | ||
"fmt" | ||
"strings" | ||
|
||
"github.com/hyperledger/fabric/common/util" | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
|
||
docker "github.com/fsouza/go-dockerclient" | ||
) | ||
|
||
func AssertImagesExist(imageNames ...string) { | ||
dockerClient, err := docker.NewClientFromEnv() | ||
Expect(err).NotTo(HaveOccurred()) | ||
|
||
for _, imageName := range imageNames { | ||
images, err := dockerClient.ListImages(docker.ListImagesOptions{ | ||
Filter: imageName, | ||
}) | ||
ExpectWithOffset(1, err).NotTo(HaveOccurred()) | ||
|
||
if len(images) != 1 { | ||
Fail(fmt.Sprintf("missing required image: %s", imageName), 1) | ||
} | ||
} | ||
} | ||
|
||
// UniqueName generates base-32 enocded UUIDs for container names. | ||
func UniqueName() string { | ||
name := base32.StdEncoding.WithPadding(base32.NoPadding).EncodeToString(util.GenerateBytesUUID()) | ||
return strings.ToLower(name) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.