special_images.go 945 B

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