Closed Bug 1158351 Opened 9 years ago Closed 9 years ago

Add unit tests for WifiHelper.isValidInput method

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfoster, Assigned: aron.bordin, Mentored)

Details

Attachments

(1 file)

We have no unit test coverage for WifiHelper's isValidInput method, which validates a password for the different network security types. Just checking the return value with some sample good and bad inputs would help make this slightly less opaque
Hi Sam,

This bug looks to be simple. Can I be assigned to work with it?
(In reply to Aron Barreira Bordin from comment #1)
> Hi Sam,
> 
> This bug looks to be simple. Can I be assigned to work with it?

Go ahead Aron. I've assigned myself as mentor but we'll need to find another reviewer - perhaps :arthurcc or :ehung.
Assignee: nobody → aron.bordin
Mentor: sfoster
Hi Sam. Do you know who can review my PR?
Flags: needinfo?(sfoster)
(In reply to Aron Barreira Bordin from comment #4)
> Hi Sam. Do you know who can review my PR?

Lets try ehung@mozilla.com? Left a couple nits in the PR you could address in the meantime.
Flags: needinfo?(sfoster)
Attachment #8600692 - Flags: review?(ehung)
Comment on attachment 8600692 [details] [review]
[gaia] aron-bordin:wifi_helper_is_valid_input_tests > mozilla-b2g:master

redirect to Arthur, he should be more familiar with wifi helper than me.
Attachment #8600692 - Flags: review?(ehung) → review?(arthur.chen)
Comment on attachment 8600692 [details] [review]
[gaia] aron-bordin:wifi_helper_is_valid_input_tests > mozilla-b2g:master

EJ, could you help review this patch? Thanks.
Attachment #8600692 - Flags: review?(arthur.chen) → review?(ejchen)
Comment on attachment 8600692 [details] [review]
[gaia] aron-bordin:wifi_helper_is_valid_input_tests > mozilla-b2g:master

Thanks Aron, I left some comments there and please check them ! Feel free to set r? on me when you have time, thanks ;)
Attachment #8600692 - Flags: review?(ejchen)
Hi EJ,

I'm a little confused about a note in my PR. I left you a message there, please, can you take a look?

Thx
Flags: needinfo?(ejchen)
Thanks for asking Aron, I did leave more details in GitHub and please go check it when you have time ! I think this patch is almost done and after related comments are addressed, we are ready to let it merged :)

Thanks Aron !
Flags: needinfo?(ejchen)
Comment on attachment 8600692 [details] [review]
[gaia] aron-bordin:wifi_helper_is_valid_input_tests > mozilla-b2g:master

Hi!

Please, when possible, take a look in my new patch.

Thx!
Attachment #8600692 - Flags: review?(ejchen)
Comment on attachment 8600692 [details] [review]
[gaia] aron-bordin:wifi_helper_is_valid_input_tests > mozilla-b2g:master

Thanks for the efforts, Aron ! r++
Attachment #8600692 - Flags: review?(ejchen) → review+
Autolander could not locate a review from a user within the suggested reviewer list. Either the patch author or the reviewer should be in the suggested reviewer list.
Moved to Gaia:Settings to make sure Autoloader works.
Component: Gaia::Shared → Gaia::Settings
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: