Change to share access list API

When we do manila access-list, the 'created_at' and 'updated_at' time
should be shown to the user. And then the user could determine which
is the recent access rule. As the design, the recent access-allow
rule caused the error access-status of share instance.

APIImpact
Closes-Bug: #1682795
Change-Id: Iad6070d60ec77b7de9cc9679cfa7478876084da1
diff --git a/manila_tempest_tests/config.py b/manila_tempest_tests/config.py
index ab50c34..7c5eeb2 100644
--- a/manila_tempest_tests/config.py
+++ b/manila_tempest_tests/config.py
@@ -30,7 +30,7 @@
                help="The minimum api microversion is configured to be the "
                     "value of the minimum microversion supported by Manila."),
     cfg.StrOpt("max_api_microversion",
-               default="2.32",
+               default="2.33",
                help="The maximum api microversion is configured to be the "
                     "value of the latest microversion supported by Manila."),
     cfg.StrOpt("region",
diff --git a/manila_tempest_tests/tests/api/test_rules.py b/manila_tempest_tests/tests/api/test_rules.py
index 1f227dd..0f16c51 100644
--- a/manila_tempest_tests/tests/api/test_rules.py
+++ b/manila_tempest_tests/tests/api/test_rules.py
@@ -494,6 +494,15 @@
             rule = self.shares_v2_client.create_access_rule(
                 self.share["id"], self.access_type, self.access_to,
                 version=version)
+
+        # verify added rule keys since 2.33 when create rule
+        if utils.is_microversion_ge(version, '2.33'):
+            self.assertIn('created_at', list(rule.keys()))
+            self.assertIn('updated_at', list(rule.keys()))
+        else:
+            self.assertNotIn('created_at', list(rule.keys()))
+            self.assertNotIn('updated_at', list(rule.keys()))
+
         # rules must start out in 'new' until 2.28 & 'queued_to_apply' after
         if utils.is_microversion_le(version, "2.27"):
             self.assertEqual("new", rule['state'])
@@ -522,6 +531,8 @@
         keys = ("id", "access_type", "access_to", "access_level")
         if utils.is_microversion_ge(version, '2.21'):
             keys += ("access_key", )
+        if utils.is_microversion_ge(version, '2.33'):
+            keys += ("created_at", "updated_at", )
         for key in keys:
             [self.assertIn(key, r.keys()) for r in rules]
         for key in ('deleted', 'deleted_at', 'instance_mappings'):