MCPcopy Create free account
hub / github.com/apache/impala / teardown_method

Method teardown_method

tests/metadata/test_hdfs_encryption.py:83–89  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

81 assert rc == 0, 'Error re-creating trash: %s %s' % (stdout, stderr)
82
83 def teardown_method(self, method):
84 self.__cleanup()
85 # Clean up trash directory so that further tests aren't affected
86 rc, stdout, stderr = exec_process(
87 "hadoop fs -rmr /user/{0}/.Trash/".format(getpass.getuser()))
88 assert rc == 0, 'Error deleting Trash: %s %s' % (stdout, stderr)
89 super().teardown_method(method)
90
91 def create_encryption_zone(self, key, path):
92 """Creates an encryption zone using key 'key' on path 'path'"""

Callers

nothing calls this directly

Calls 3

__cleanupMethod · 0.95
exec_processFunction · 0.90
formatMethod · 0.45

Tested by

no test coverage detected