From Fedora Project Wiki
Description
This test case verifies the installation and basic functionality of the Cockpit server management platform and its supporting packages.
Setup
- Install a fresh version of Fedora/ ensure nothing is running on localhost:9090.
- Install the required Cockpit packages:
sudo dnf install cockpit cockpit-bridge cockpit-system cockpit-ws
.
How to test
- Start the Cockpit service:
sudo systemctl start cockpit
. - Enable Cockpit to start on boot:
sudo systemctl enable cockpit
. - Access the Cockpit web interface by opening a web browser and navigating to
https://localhost:9090
. Replacelocalhost
with your server's IP address if you're accessing it from a different machine. - Log in using your system credentials.
- Explore the Cockpit dashboard, system information, logs, and other functionalities.
- Perform a basic task, such as restarting the system, using the Cockpit interface.
Expected Results
- The Cockpit service should start without errors.
- The Cockpit web interface should be accessible via a web browser on port 9090.
- The login using system credentials should be successful.
- The Cockpit dashboard should display system information accurately (e.g., CPU, memory usage).
- System logs and other functionalities in the Cockpit interface should be functional and show real-time data.
- Actions performed via the Cockpit interface (like a system restart) should execute successfully.
Optional
For extended testing:
- Try accessing Cockpit from a different machine on the same network using the server's IP address.
- Install additional Cockpit plugins and ensure they are visible and functional in the Cockpit interface.
- Verify the interaction between
cockpit-bridge
and system APIs by monitoring system API calls. - Test out the functionalities provided by the
cockpit-system
andcockpit-ws
packages specifically, ensuring all components work harmoniously.