blob: d0ad2eb386af9bbe3b6c49dc70c169321ab97c00 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This test case verifies that the DUT clears its IP configuration after
# disconnecting from the router.
{ "name":"DisconnectIP",
"steps":[
# Start up an AP.
[ "create", { "type":"hostap" } ],
[ "config", { "channel":"2412", "mode":"11g" } ],
# Connect to the AP.
[ "connect", { "security":"none" } ],
# Assert that the client has an IP address (this already happened at
# the end of the "connect" step, but let's be explicit).
[ "client_test_ipaddr" ],
# Disconnect from the AP.
[ "disconnect" ],
# Assert that we no longer have an IP address.
[ "!client_test_ipaddr" ],
[ "destroy" ],
],
}