class_docstr: Test cases of alias interface operations
class_docstr_tok: ["Test","cases","of","alias","interface","operations"]
docstr: target: test collection dropping alias
  method: 
          1.create a collection with 10 partitions
          2.collection create an alias
          3.collection drop the alias
  expected: 
          after step 2, collection is equal to alias
          after step 3, collection with alias name is not exist
docstr_tok: ["target",":","test","collection","dropping","alias","method",":","1.create","a","collection","with","10","partitions","2.collection","create","an","alias","3.collection","drop","the","alias","expected",":","after","step","2",",","collection","is","equal","to","alias","after","step","3",",","collection","with","alias","name","is","not","exist"]
code: def test_alias_drop_operation_default(self):
      """
      target: test collection dropping alias
      method:
              1.create a collection with 10 partitions
              2.collection create an alias
              3.collection drop the alias
      expected:
              after step 2, collection is equal to alias
              after step 3, collection with alias name is not exist
      """
      self._connect()
      c_name = cf.gen_unique_str("collection")
      collection_w = self.init_collection_wrap(
          name=c_name,
          schema=default_schema,
          check_task=CheckTasks.check_collection_property,
          check_items={exp_name: c_name, exp_schema: default_schema},
      )
      for _ in range(10):
          partition_name = cf.gen_unique_str("partition")
          # create partition with different names and check the partition exists
          self.init_partition_wrap(collection_w, partition_name)
          assert collection_w.has_partition(partition_name)[0]
  
      alias_name = cf.gen_unique_str(prefix)
      self.utility_wrap.create_alias(collection_w.name, alias_name)
      # collection_w.create_alias(alias_name)
      collection_alias, _ = self.collection_wrap.init_collection(
          name=alias_name,
          check_task=CheckTasks.check_collection_property,
          check_items={
              exp_name: alias_name,
              exp_schema: default_schema,
          },
      )
      # assert collection is equal to alias according to partitions
      assert [p.name for p in collection_w.partitions] == [
          p.name for p in collection_alias.partitions
      ]
      self.utility_wrap.drop_alias(alias_name)
      error = {
          ct.err_code: 0,
          ct.err_msg: f"Collection '{alias_name}' not exist, or you can pass in schema to create one",
      }
      collection_alias, _ = self.collection_wrap.init_collection(
          name=alias_name,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
imports: import pytest
  import random
  from base.client_base import TestcaseBase
  from utils.util_log import test_log
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
label_desc: Use image node_id 3 for calling the TestAliasOperation obj's underlying member method code with example usage: obj.test_alias_drop_operation_default() without return types