-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust to core changes (addon.xml) #444
Conversation
Can't set status; build failed. |
Signed-off-by: Jan N. Klug <github@klug.nrw>
I think now that we have addon.xml for every add-on it would be good to have a check if that is present. Unfortunately I did not find out how to declare exceptions based on the module name, which is necessary e.g. for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
There could be a small improvement:
@@ -162,7 +162,7 @@ public void testInvalidBinding() throws Exception { | |||
|
|||
int lineNumber = 7; | |||
String[] expectedMessages = generateExpectedMessages(lineNumber, | |||
"The content of element binding:binding is not complete. One of {name} is expected."); | |||
"The content of element addon:addon is not complete. One of {type} is expected."); | |||
verifyWithPath("invalidBinding", RELATIVE_PATH_TO_BINDING, expectedMessages); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about also renaming the test to testInvalidAddon
and:
verifyWithPath("invalidBinding", RELATIVE_PATH_TO_BINDING, expectedMessages); | |
verifyWithPath("invalidAddon", RELATIVE_PATH_TO_ADDON, expectedMessages); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Related to openhab/openhab-core#3050