github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/testutil/environment/special_images.go (about)

     1  package environment
     2  
     3  // DanglingImageIdGraphDriver is the digest for dangling images used
     4  // in tests when the graph driver is used. The graph driver image store
     5  // identifies images by the ID of their config.
     6  const DanglingImageIdGraphDriver = "sha256:0df1207206e5288f4a989a2f13d1f5b3c4e70467702c1d5d21dfc9f002b7bd43" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
     7  
     8  // DanglingImageIdSnapshotter is the digest for dangling images used in
     9  // tests when the containerd image store is used. The container image
    10  // store identifies images by the ID of their manifest/manifest list..
    11  const DanglingImageIdSnapshotter = "sha256:16d365089e5c10e1673ee82ab5bba38ade9b763296ad918bd24b42a1156c5456" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
    12  
    13  func GetTestDanglingImageId(testEnv *Execution) string {
    14  	if testEnv.UsingSnapshotter() {
    15  		return DanglingImageIdSnapshotter
    16  	}
    17  	return DanglingImageIdGraphDriver
    18  }