Commit 5b4e69ae authored by Ankit Kumar's avatar Ankit Kumar Committed by Jim Harris
Browse files

test/nvmf: add new tests for active-passive



Add 2 new tests for active/passive mode
1. For optimized optimized state verify that only first path is current.
2. For non-optimized non-optimized state verify that the first path is
   current.

Change-Id: I95e67cfc44a6b7bc7790c85b5fd619049e541294
Signed-off-by: default avatarAnkit Kumar <ankit.kumar@samsung.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23050


Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 20f78694
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -86,10 +86,21 @@ sleep 2
# 6: "accessible" for port 2

# Set ANA state to each listener
# For active/passive, only the first available path should be current
set_ANA_state optimized optimized
sleep 1
check_status true false true true true true

set_ANA_state non_optimized optimized
sleep 1
check_status false true true true true true

# For active/passive, if all paths are non_optimized the first available
# path should be current
set_ANA_state non_optimized non_optimized
sleep 1
check_status true false true true true true

set_ANA_state non_optimized inaccessible
sleep 1
check_status true false true true true false