From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description= A simple validation test case for Fedora Atomic Hosts. |setup= # This testcase can be run locally with [http://github.com/Rorosha/testCloud testCl...")
 
m (add links to boot using virtualization clinet)
 
(6 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
A simple validation test case for Fedora Atomic Hosts.
 
A simple validation test case for Fedora Atomic Hosts.
 
|setup=
 
|setup=
# This testcase can be run locally with [http://github.com/Rorosha/testCloud testCloud] or on a cloud provider (Openstack or EC2).
+
# This testcase can be run locally with [[Local_Test_Cloud_Installation_Guide|testCloud]] or using a [http://www.projectatomic.io/docs/quickstart/ virtualization client like virt-manager or VirtualBox], or on a cloud provider (Openstack or EC2)
 
# Make sure that your security group allows for SSH (default tcp port 22)
 
# Make sure that your security group allows for SSH (default tcp port 22)
 
# The following User-data can be used:
 
# The following User-data can be used:
  #cloud-config
+
  <nowiki>
  password: passw0rd
+
#cloud-config
  chpasswd: { expire: False }
+
password: passw0rd
  ssh_pwauth: True
+
chpasswd: { expire: False }
  runcmd:
+
ssh_pwauth: True
    - [ sh, -c, 'echo -e "ROOT_SIZE=4G\nDATA_SIZE=10G" > /etc/sysconfig/docker-storage-setup']
+
</nowiki>
{{Admon/note|Disk Size|You might need to resize the image if you're running it locally. testCloud handles this for you just like Openstack or EC2.}}
 
 
|actions=
 
|actions=
 
# Boot image with proper user-data
 
# Boot image with proper user-data
 
# SSH into booted image
 
# SSH into booted image
 +
# Check if docker and podman are installed
 +
  rpm -q docker podman
 
|results=
 
|results=
 
# The image launches successfully
 
# The image launches successfully
 
# You can login to the instance over SSH as <code>fedora</code> and you have sudo access
 
# You can login to the instance over SSH as <code>fedora</code> and you have sudo access
# The instance doesn't crash or show any errors that aren't present in a bare-metal system
+
# docker and podman should be installed
 +
# The instance doesn't crash or show any errors
 
}}
 
}}

Latest revision as of 09:57, 1 October 2018

Description

A simple validation test case for Fedora Atomic Hosts.

Setup

  1. This testcase can be run locally with testCloud or using a virtualization client like virt-manager or VirtualBox, or on a cloud provider (Openstack or EC2)
  2. Make sure that your security group allows for SSH (default tcp port 22)
  3. The following User-data can be used:
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
 

How to test

  1. Boot image with proper user-data
  2. SSH into booted image
  3. Check if docker and podman are installed
 rpm -q docker podman

Expected Results

  1. The image launches successfully
  2. You can login to the instance over SSH as fedora and you have sudo access
  3. docker and podman should be installed
  4. The instance doesn't crash or show any errors