os
The os resource is used to test the operating system of the machine. There are two parameters:
distributionID - This parameter expects the distributor ID of the operating system you are expecting the machine to have. Not case sensitive.
version (optional) - This parameter will be used to check the version of the operating system to this specified version. Not case sensitive.
#
ExamplesWithout version:
This test will pass with any operating system with the distribution ID of Ubuntu
With version:
This test will pass only with the operating system Ubuntu version 20.04.