Skip to content

Commit 0b51991

Browse files
Merge pull request #9680 from bfournie/ibi-unit-test-fix
no-jira: IBI nmstate unit test fix
2 parents 199df64 + f01be21 commit 0b51991

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/asset/imagebased/configimage/imagebased_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ networkConfig:
9595
state: invalid`,
9696

9797
expectedFound: false,
98-
expectedError: "networkConfig: Invalid value: interfaces:\n- name: eth0\n state: invalid\n type: ethernet\n: failed to execute 'nmstatectl gc', error: InvalidArgument: Invalid YAML string: interfaces: unknown variant `invalid`",
98+
expectedError: "interfaces: unknown variant `invalid`",
9999
},
100100
{
101101
name: "invalid-additional-ntp-sources",

pkg/asset/imagebased/image/imagebased_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ networkConfig:
216216
`,
217217

218218
expectedFound: false,
219-
expectedError: "networkConfig: Invalid value: invalid: config\n: failed to execute 'nmstatectl gc', error: InvalidArgument: Invalid YAML string: unknown field `invalid`",
219+
expectedError: "unknown field `invalid`",
220220
},
221221
{
222222
name: "empty networkConfig",

0 commit comments

Comments
 (0)