From Fedora Project Wiki
Description
This test case validates that the dconf
package is functioning as expected by setting, reading, and resetting a configuration key.
Setup
Ensure that the dconf
package is installed by executing the following command:
- sudo dnf install dconf
How to test
- Write a value to a dconf key:
- $ dconf write /org/gnome/desktop/background/picture-uri "'file:///usr/share/backgrounds/gnome/Adwaita-night.jpg'"
- Read the value of the dconf key:
- $ dconf read /org/gnome/desktop/background/picture-uri
- Reset the dconf key to its default value:
- dconf reset /org/gnome/desktop/background/picture-uri
Expected Results
- After writing the value, reading the dconf key should output:
- 'file:///usr/share/backgrounds/gnome/Adwaita-night.jpg'
- After resetting the key, reading the dconf key again should output nothing or the default value.
Optional
For exploratory testing:
- Try setting, reading, and resetting keys in different dconf schemas.
- Experiment with different types of values (strings, integers, booleans, etc.) when setting keys.
- Use the
dconf dump
anddconf load
commands to backup and restore a dconf profile.