Skip to content

tsubasaogawa/test-for-container-structure-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-for-container-structure-test

Overview

  • Test repository for container-structure-test which validates a container image.
  • It also contains a sample configuration file for CircleCI.

Try

Build test container

docker build -t tsubasaogawa/test-for-cst:0.1 .

Install container-structure-test

curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \
  && chmod +x container-structure-test-linux-amd64 \
  && sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test

Run test

container-structure-test test \
  --image tsubasaogawa/test-for-cst:0.1 \
  --config .container-structure-test/config.yaml

It will output the following results:

====================================
====== Test file: config.yaml ======
====================================
=== RUN: Command Test: it says hello
--- PASS
stdout: hello

=== RUN: File Existence Test: date file exists
--- PASS

=== RUN: Metadata Test
--- PASS


=============================================================
========================== RESULTS ==========================
=============================================================
Passes:      3
Failures:    0
Total tests: 3

PASS

About

Test repository for container-structure-test

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors