Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: server/site_tests/network_WiFiMatFunc/090_SSID_Length_Limit

Issue 6484016: Add test for SSID that is too long (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | server/site_tests/network_WiFiSecMat/021CheckWPA_BadPassphraseLength » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Purpose: This test case verifies that the DUT aheres to the 5 # Purpose: This test case verifies that the DUT aheres to the
6 # maximum and minimum SSID length requirements. 6 # maximum and minimum SSID length requirements.
7 { "name":"Limits_Length_SSID", 7 { "name":"Limits_Length_SSID",
8 "steps":[ 8 "steps":[
9 [ "create", { "type":"hostap" } ], 9 [ "create", { "type":"hostap" } ],
10 [ "config", { "channel":"2412", "mode":"11g" } ], 10 [ "config", { "channel":"2412", "mode":"11g" } ],
11 11
12 # Test maximum SSID length 12 # Test maximum SSID length
13 [ "config", { "ssid":str("Max_Length_SSID"*8)[:32] } ], 13 [ "config", { "ssid":str("Max_Length_SSID"*8)[:32] } ],
14 [ "connect", { "ssid":str("Max_Length_SSID"*8)[:32], 14 [ "connect", { "ssid":str("Max_Length_SSID"*8)[:32],
15 "security":"none" } ], 15 "security":"none" } ],
16 [ "client_ping", { "count":"10" } ], 16 [ "client_ping", { "count":"10" } ],
17 [ "disconnect" ], 17 [ "disconnect" ],
18 [ "deconfig" ], 18 [ "deconfig" ],
19 19
20 # Test minimum SSID length 20 # Test minimum SSID length
21 [ "config", { "ssid": "a" } ], 21 [ "config", { "ssid": "a" } ],
22 [ "connect", { "ssid":"a", "security":"none" } ], 22 [ "connect", { "ssid":"a", "security":"none" } ],
23 [ "client_ping", { "count":"10" } ], 23 [ "client_ping", { "count":"10" } ],
24 [ "disconnect" ], 24 [ "disconnect" ],
25 [ "deconfig" ], 25 [ "deconfig" ],
26 26
27 # Test MAX+1 ssid length
28 [ "!connect", { "ssid":str("Max_Length_SSID"*8)[:33],
29 "security":"none", "hidden":True },
30 "org.chromium.flimflam.Error.InvalidNetworkName" ],
27 [ "destroy" ], 31 [ "destroy" ],
28 ], 32 ],
29 } 33 }
OLDNEW
« no previous file with comments | « no previous file | server/site_tests/network_WiFiSecMat/021CheckWPA_BadPassphraseLength » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698