docstr: method:
  1. create rgs at a max number (max=1024)
  2. list rgs
  3. create one more rg
  4. list rgs
  verify: create successfully at a max number and fail when create one more
docstr_tok: ["method",":","1.","create","rgs","at","a","max","number","(","max=1024",")","2.","list","rgs","3.","create","one","more","rg","4.","list","rgs","verify",":","create","successfully","at","a","max","number","and","fail","when","create","one","more"]
code: def test_create_max_number_rgs(self):
      """
      method:
      1. create rgs at a max number (max=1024)
      2. list rgs
      3. create one more rg
      4. list rgs
      verify: create successfully at a max number and fail when create one more
      """
      from pymilvus.exceptions import MilvusException
  
      max_rg_num = 1024  # including default rg
      try:
          for i in range(max_rg_num):
              rg_name = cf.gen_unique_str(f"rg_{i}")
              self.init_resource_group(
                  rg_name, check_task=CheckTasks.check_nothing
              )
      except MilvusException:
          pass
  
      rgs = self.utility_wrap.list_resource_groups()[0]
      assert len(rgs) == max_rg_num
      error = {
          ct.err_code: 999,
          ct.err_msg: "resource group num reach limit",
      }
      self.init_resource_group(
          name=cf.gen_unique_str("rg"),
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
imports: import pytest
  from base.client_base import TestcaseBase
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from utils.util_pymilvus import *
label_desc: Use image node_id 9 for calling the TestResourceGroupParams obj's underlying member method code with example usage: obj.test_create_max_number_rgs() without return types