Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
LK4D4 authored on 2014/05/26 03:26:50... | ... |
@@ -446,6 +446,20 @@ func TestBuildWithVolume(t *testing.T) { |
446 | 446 |
logDone("build - with volume") |
447 | 447 |
} |
448 | 448 |
|
449 |
+func TestBuildMaintainer(t *testing.T) { |
|
450 |
+ checkSimpleBuild(t, |
|
451 |
+ ` |
|
452 |
+ FROM scratch |
|
453 |
+ MAINTAINER dockerio |
|
454 |
+ `, |
|
455 |
+ "testbuildimg", |
|
456 |
+ "{{json .author}}", |
|
457 |
+ `"dockerio"`) |
|
458 |
+ |
|
459 |
+ deleteImages("testbuildimg") |
|
460 |
+ logDone("build - maintainer") |
|
461 |
+} |
|
462 |
+ |
|
449 | 463 |
// TODO: TestCaching |
450 | 464 |
|
451 | 465 |
// TODO: TestADDCacheInvalidation |
... | ... |
@@ -414,20 +414,6 @@ func buildImage(context testContextTemplate, t *testing.T, eng *engine.Engine, u |
414 | 414 |
return image, err |
415 | 415 |
} |
416 | 416 |
|
417 |
-func TestBuildMaintainer(t *testing.T) { |
|
418 |
- img, err := buildImage(testContextTemplate{` |
|
419 |
- from {IMAGE} |
|
420 |
- maintainer dockerio |
|
421 |
- `, nil, nil}, t, nil, true) |
|
422 |
- if err != nil { |
|
423 |
- t.Fatal(err) |
|
424 |
- } |
|
425 |
- |
|
426 |
- if img.Author != "dockerio" { |
|
427 |
- t.Fail() |
|
428 |
- } |
|
429 |
-} |
|
430 |
- |
|
431 | 417 |
func TestBuildUser(t *testing.T) { |
432 | 418 |
img, err := buildImage(testContextTemplate{` |
433 | 419 |
from {IMAGE} |