22207: made progressbar display differently if title is present
[arvados.git] / lib / diagnostics / docker_image_test.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package diagnostics
6
7 import (
8         "testing"
9
10         . "gopkg.in/check.v1"
11 )
12
13 func Test(t *testing.T) {
14         TestingT(t)
15 }
16
17 var _ = Suite(&suite{})
18
19 type suite struct{}
20
21 func (*suite) TestGetSHA2FromImageData(c *C) {
22         imageSHA2, err := getSHA2FromImageData(HelloWorldDockerImage)
23         c.Check(err, IsNil)
24         c.Check(imageSHA2, Matches, `[0-9a-f]{64}`)
25 }