From Fedora Project Wiki

Revision as of 06:42, 5 May 2016 by Trishnag (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case is to make sure if Docker is installed. It first checks the image. If the image is Base image it installs Docker. If the image is At...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case is to make sure if Docker is installed. It first checks the image. If the image is Base image it installs Docker. If the image is Atomic image it checks whether Docker is installed there or not.

Setup

Test this on both Base and Atomic image.

How to test

Be as specific as required for the target audience.

  1. ssh into an instance.
  2. Next check whether the image is Base or Atomic.
  3. If Base image install Docker.
  4. If Atomic image check for Docker.

To check whether image is Base or Atomic:

 $ stat /run/ostree-booted
 $ echo $?
 

For Base image:

 $ dnf -y install docker
 $ rpm -q docker

For Atomic image:

 $ rpm -q docker

Expected Results

The following must be true to consider this a successful test run. Be brief ... but explicit.

  1. Step #1 You should be able to login to the instance.
  2. Step #2 You will be able to see whether the image is Base or Atomic.
 $ stat /run/ostree-booted
 $ echo $?
 1

This means the image is Base image.

Step #3 should install Docker.

If Step #2 returns Atomic image, Like:

 $ stat /run/ostree-booted
 $ echo $?
 0

This means the image is Atomic.

Step #4 will return the Docker build.

Optional

Check for Docker info.

 $ docker info