From Fedora Project Wiki

Revision as of 06:39, 5 May 2016 by Kushal (talk | contribs) (Adding the test to verify read only mounts in atomic images.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

In an Atomic instance different directories are supposed to be read only mounts. This test verifies the same.

Setup

You should have an Atomic instance running in Cloud/vagrant or in bare metal.

How to test

Be as specific as required for the target audience.

  1. Login to the Atomic instances, if cloud/vagrant then ssh into it.
  2. Next we will try to create files in different directories.
$ sudo touch /bin/hello.txt
$ sudo touch /sbin/hello.txt
$ sudo touch /usr/hello.txt

Expected Results

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

  1. Step #1 completes without error
  2. All 3 touch commands are supposed to fail to create the hello.txt file. Excepted output like
$ sudo touch /bin/hello.txt
touch: cannot touch ‘/bin/hello.txt’: Read-only file system
$ sudo touch /sbin/hello.txt
touch: cannot touch ‘/sbin/hello.txt’: Read-only file system
$ sudo touch /usr/hello.txt
touch: cannot touch ‘/usr/hello.txt’: Read-only file system
  1. Each of those commands completes with exit code 1

Optional

Optionally provide hints for exploratory testing.