Skip to content

Commit

Permalink
Cover dconf and non dconf disabled key in colorize tests
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
  • Loading branch information
didrocks and jibel committed Dec 2, 2021
1 parent ee4c3f2 commit b85d26d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/adsysd/client/policy_test.go
Expand Up @@ -14,6 +14,7 @@ func TestColorizePolicies(t *testing.T) {
** dconf:
*** path/to/key1: ValueOfKey1
*** path/to/key2: ValueOfKey2
***+ path/to/systemdefault
** scripts:
***+ path/to/key3
* GPOName2 ({GPOId2})
Expand Down
5 changes: 3 additions & 2 deletions cmd/adsysd/client/testdata/golden/colorize.golden
Expand Up @@ -3,8 +3,9 @@
- dconf:
- path/to/key1: ValueOfKey1
- path/to/key2: ValueOfKey2
- path/to/systemdefault: Locked to system default
- scripts:
- path/to/key3: Locked to system default
- path/to/key3: Disabled
- GPOName2 ({GPOId2})
- dconf:
- path/to/keyGpo2-1: ValueOfKeyGpo2-1
Expand All @@ -15,4 +16,4 @@
 - path/to/key1: ValueOfKey1\nOn\nMultilines
 - path/to/key2: ValueOfKey2
- scripts:
 - path/to/key3: Locked to system default
 - path/to/key3: Disabled

0 comments on commit b85d26d

Please sign in to comment.