Jump to: navigation, search

V4/DNS Location Mechanism/Test Plan

Name: V4/DNS Location Mechanism/Test Plan
Target version: 4.4.0
Design: V4/DNS_Location_Mechanism
Reviewer: Incomplete.png missing
Last updated: 2016-06-7 by Alich

Overview

This page describes test scenarios and test cases of DNS Location Mechanism. It focuses on general scenarios like default setting and simple custom settings. You can find more details about this feature in Design document

Test Plan

DNS Location

Test case: Location setup

Autotest

{{{autotest}}}

Setup

Actions

1. Delete the DNS location that doesn't exist.
$ command
2. Create a DNS location and don't add any server there.
$ command
3. Try to create the same location.
$ command
4. Add a server to the location.
$ command
5. Try to add the same server to the location.
$ command
6. Remove the existing server from DNS location.
$ command

Expected results

1. Non-existent DNS location not deleted.

Output

2. DNS location has been created but it is still not visible for clients.

Output

3. The same DNS location is not created.

Output

4. Server is added to the location.

Output

5. The server is not added again to the location.

Output

6. Server has been removed from the location and location becomes invisible for clients.

Output

Clients

Test case: Default setting

Autotest

{{{autotest}}}

Setup

Setup 2 servers, one near (A) to the client, the second (B) far from it.

Actions

1. Check that client prefers to use "cheaper" server (the near one).
$ command
2. Bring down the far server (B) and check the client still use the A server.
$ command
3. Bring up B server and down A server and check the client started to use B server.
$ command

Expected results

1. Result

Output

2. Result

Output

3. Result

Output

Test case: Override setting

Autotest

{{{autotest}}}

Setup

Setup 2 servers, one near (A) to the client, the second (B) far from it. Set the hard preference on client to use B server.

Actions

1. Check that client uses B server (the near one).
$ command
2. Bring down B server and check the client uses A server.
$ command
3. Bring up B and check the client started to use B server again.
$ command

Expected results

1. Result

Output

2. Result

Output

3. Result

Output

Test case: DNS Location mod

Autotest

{{{autotest}}}

Setup

Create DNS Location (add 1 server) and setup clients to use the location.

Actions

1. Check that client uses server from the location.
$ command
2. Remove the server from DNS location.
$ command
3. Add the server to DNS location again.
$ command
4. Remove the DNS location.
$ command

Expected results

1. Client uses the server from DNS location.

Output

2. Server is removed and DNS location will becomes invisible for clients. Client should use default server in that time.

Output

3. Client again uses the server from DNS location.

Output

4. DNS location removed, it becomes unavailable. Client should use default server in that time.

Output

TBD