neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame udisks-2.10.0-iscsi_test_02_lio_target_conf.patch

Tomas Bzatek 6c6835
commit 13a6a27eecdd1fb527b9151309366970b182a58d
Tomas Bzatek 6c6835
Author: Tomas Bzatek <tbzatek@redhat.com>
Tomas Bzatek 6c6835
Date:   Thu Oct 20 17:17:10 2022 +0200
Tomas Bzatek 6c6835
Tomas Bzatek 6c6835
    tests: Fix LIO target config auth
Tomas Bzatek 6c6835
    
Tomas Bzatek 6c6835
    Linux kernel 6.0 brought number of the LIO target changes related to authentication
Tomas Bzatek 6c6835
    that made our tests fail. Turned out our target config was incorrect, e.g.
Tomas Bzatek 6c6835
    not requiring auth for CHAP tests, etc. The kernel 6.0 looks to be more strict
Tomas Bzatek 6c6835
    in this regard.
Tomas Bzatek 6c6835
Tomas Bzatek 6c6835
diff --git a/src/tests/dbus-tests/targetcli_config.json b/src/tests/dbus-tests/targetcli_config.json
Tomas Bzatek 6c6835
index 25d506b6..3be9eac2 100644
Tomas Bzatek 6c6835
--- a/src/tests/dbus-tests/targetcli_config.json
Tomas Bzatek 6c6835
+++ b/src/tests/dbus-tests/targetcli_config.json
Tomas Bzatek 6c6835
@@ -385,7 +385,7 @@
Tomas Bzatek 6c6835
       "tpgs": [
Tomas Bzatek 6c6835
         {
Tomas Bzatek 6c6835
           "attributes": {
Tomas Bzatek 6c6835
-            "authentication": 0,
Tomas Bzatek 6c6835
+            "authentication": 1,
Tomas Bzatek 6c6835
             "cache_dynamic_acls": 0,
Tomas Bzatek 6c6835
             "default_cmdsn_depth": 64,
Tomas Bzatek 6c6835
             "default_erl": 0,
Tomas Bzatek 6c6835
@@ -432,7 +432,7 @@
Tomas Bzatek 6c6835
             }
Tomas Bzatek 6c6835
           ],
Tomas Bzatek 6c6835
           "parameters": {
Tomas Bzatek 6c6835
-            "AuthMethod": "CHAP,None",
Tomas Bzatek 6c6835
+            "AuthMethod": "CHAP",
Tomas Bzatek 6c6835
             "DataDigest": "CRC32C,None",
Tomas Bzatek 6c6835
             "DataPDUInOrder": "Yes",
Tomas Bzatek 6c6835
             "DataSequenceInOrder": "Yes",
Tomas Bzatek 6c6835
@@ -471,7 +471,7 @@
Tomas Bzatek 6c6835
       "tpgs": [
Tomas Bzatek 6c6835
         {
Tomas Bzatek 6c6835
           "attributes": {
Tomas Bzatek 6c6835
-            "authentication": 0,
Tomas Bzatek 6c6835
+            "authentication": 1,
Tomas Bzatek 6c6835
             "cache_dynamic_acls": 0,
Tomas Bzatek 6c6835
             "default_cmdsn_depth": 64,
Tomas Bzatek 6c6835
             "default_erl": 0,
Tomas Bzatek 6c6835
@@ -520,7 +520,7 @@
Tomas Bzatek 6c6835
             }
Tomas Bzatek 6c6835
           ],
Tomas Bzatek 6c6835
           "parameters": {
Tomas Bzatek 6c6835
-            "AuthMethod": "CHAP,None",
Tomas Bzatek 6c6835
+            "AuthMethod": "CHAP",
Tomas Bzatek 6c6835
             "DataDigest": "CRC32C,None",
Tomas Bzatek 6c6835
             "DataPDUInOrder": "Yes",
Tomas Bzatek 6c6835
             "DataSequenceInOrder": "Yes",