In an Atomic instance different directories are supposed to be read only mounts. This test verifies the same.
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.
- Login to the Atomic instances, if cloud/vagrant then ssh into it.
- 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
The following must be true to consider this a successful test run. Be brief ... but explicit.
- Step #1 completes without error
- 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
- Each of those commands completes with exit code 1
Optionally provide hints for exploratory testing.