Spdk/test
Shuhei Matsumoto c2f38258f9 iscsi: Remove redundant repetition from ACL
The results of access control procedure for login in the
spdk_iscsi_tgt_node_access() is defined in the following table:

   +------------------------------+
   |iscsi name |netmask  |result  |
   +------------------------------+
   +------------------------------+
   |denied     |-        |denied  |
   +------------------------------+
   |allowed    |allowed  |allowed |
   +------------------------------+
   |allowed    |denied   |next IG |
   +------------------------------+
   |not found  |-        |next IG |
   +------------------------------+

However current implementation have redundant repetition in the
spdk_iscsi_tgt_node_access() and the above definition is not
visible. Hence refactor spdk_iscsi_tgt_node_access().

Besides refactor spdk_iscsi_tgt_node_allow_iscsi_name() because
it has redundant repetition too.

Add UT code for these changes.

Change-Id: If06d87c1246c85439ee0482149bd887a7b53b169
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/379935
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-12-04 11:28:52 -05:00
..
app bdev_svc: convert to spdk_app_parse_args() 2017-12-01 11:49:23 -05:00
blobfs/rocksdb test/blobfs: add timing for rocksdb benchmarks 2017-09-20 19:33:50 -04:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt iscsi: Replace "ALL" by "ANY" for access control 2017-12-04 11:28:52 -05:00
lib test/nvme: disable AER in nightly tests 2017-12-01 17:00:54 -05:00
lvol test/lvol: Check if lvol store exists after vhost reboot 2017-12-01 17:08:35 -05:00
nvmf test/nvme: disable AER in nightly tests 2017-12-01 17:00:54 -05:00
pmem rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
unit iscsi: Remove redundant repetition from ACL 2017-12-04 11:28:52 -05:00
vhost test/vhost: Remove ip address from rpc command 2017-12-01 12:55:35 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00