-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Add detailed network info to the device information endpoint #265
Conversation
@@ -38,6 +45,51 @@ public GetDeviceInfo(String mappedUri) { | |||
super(mappedUri); | |||
} | |||
|
|||
private static JSONArray networksInfoToJSON(DeviceInfoHelper deviceInfoHelper, |
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.
I don't think the s
is needed. networkInfoToJSON
would be better.
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.
changed
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.
Looks good. Just one minor comment.
} | ||
resultItem.put("capabilities", formatNull(networkCaps == null ? null : caps)); | ||
|
||
if (networkCaps != null || networkInfo != null) { |
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.
Could we check that resultItem
is not empty?
if (resultItem.length() > 0) { ... }
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.
changed
I'd like to add a test for this in |
I've added an integration test for getInfo endpoint for this module |
Addresses appium/appium#12502