From Fedora Project Wiki

(Rework role testing to match 0.4.0/F23+ style)
(Fix incorrect method for disabling updates-testing)
Line 8: Line 8:
# If this is a VM, be aware of this [https://fedoraproject.org/wiki/Common_F21_bugs#Rolekit_fails_to_deploy_a_Domain_Controller_on_a_VM.2C_returning_error_256 Common Bug] about available entropy.
# If this is a VM, be aware of this [https://fedoraproject.org/wiki/Common_F21_bugs#Rolekit_fails_to_deploy_a_Domain_Controller_on_a_VM.2C_returning_error_256 Common Bug] about available entropy.
# Disable the updates-testing repository for this test, as rolekit always performs an update and may get unsafe packages from that repository. We need to test the stable repo only.
# Disable the updates-testing repository for this test, as rolekit always performs an update and may get unsafe packages from that repository. We need to test the stable repo only.
#* {{command|dnf config-manager --disable updates-testing }}
#* {{command|dnf config-manager --set-disabled updates-testing }}
|actions=
|actions=
# Deploy the role with {{command|rolectl deploy (rolename) --name<nowiki>=</nowiki>instancename}}
# Deploy the role with {{command|rolectl deploy (rolename) --name<nowiki>=</nowiki>instancename}}

Revision as of 14:18, 16 September 2015

Note.png
Associated release criterion
This test case is associated with the Fedora_40_Beta_Release_Criteria#roles release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

This test case checks that a Rolekit role can be successfully enabled, started and queried after a Fedora Server installation, as required in the Server/Technical_Specification.

Setup

  1. Install the Fedora Server release you wish to test, in graphical or text mode, making as few choices as possible and making the most simple and obvious choices where a choice is required.
    1. Note: disable updates-testing in anaconda
  2. If this is a VM, be aware of this Common Bug about available entropy.
  3. Disable the updates-testing repository for this test, as rolekit always performs an update and may get unsafe packages from that repository. We need to test the stable repo only.
    • dnf config-manager --set-disabled updates-testing

How to test

  1. Deploy the role with rolectl deploy (rolename) --name=instancename
  2. Query the role with rolectl status (instancename) and rolectl settings (instancename)
  3. Run rolectl sanitize (instancename) and then rolectl settings (instancename) to verify that passwords have been removed.
  4. If possible, attempt to interact with the role in expected ways - for example, if it is a database server, attempt to connect to it and create a database
  5. Stop the role with rolectl stop (instancename)
  6. Decommission the role with rolectl decommission (instancename)

Expected Results

  1. Role deployment must complete successfully
  2. The deployed role must start successfully
  3. Typical basic interaction with the deployed role must work correctly
  4. The deployed role must report its status and configuration settings correctly
  5. The deployed role must not report password data in settings after being sanitized
  6. The deployed role must stop correctly
  7. The deployed role must decommission correctly and not leave anything behind that prevents a new deployment.