From 01c0462fe9a8c74b552c0f8f3397f2bc5cdffd88 Mon Sep 17 00:00:00 2001 From: siruiw4 <siruiw4@fa22-cs527-064.cs.illinois.edu> Date: Thu, 8 Dec 2022 00:15:50 -0600 Subject: [PATCH 1/5] modify for rocketmq --- core/add_project.sh | 11 +- core/ctest_const.py | 12 +- core/default_configs/rocketmq-acl-default.tsv | 9 + core/generate_ctest/inject.py | 37 ++ core/generate_ctest/program_input.py | 6 +- core/generate_value/value_generation.py | 3 + core/identify_param/add_project.sh | 8 + core/identify_param/identify_param.sh | 2 +- .../results/rocketmq-acl/conf_params.txt | 193 +++++++ .../rocketmq-acl/test_method_list.json | 1 + core/run_ctest/inject.py | 35 ++ .../opensource-rocketmq-acl.json | 489 ++++++++++++++++++ 12 files changed, 799 insertions(+), 7 deletions(-) create mode 100644 core/default_configs/rocketmq-acl-default.tsv create mode 100644 core/identify_param/results/rocketmq-acl/conf_params.txt create mode 100644 core/identify_param/results/rocketmq-acl/test_method_list.json create mode 100644 data/ctest_mapping/opensource-rocketmq-acl.json diff --git a/core/add_project.sh b/core/add_project.sh index e5640839..49a65026 100755 --- a/core/add_project.sh +++ b/core/add_project.sh @@ -48,6 +48,14 @@ function setup_alluxio() { mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true } +function setup_rocketmq() { + [ ! -d "app/ctest-rocketmq" ] && git clone https://github.com/Stranger3333/rocketmq.git app/ctest-rocketmq + cd app/ctest-rocketmq + git fetch && git checkout ctest-intercept + cd acl + mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true +} + function usage() { echo "Usage: add_project.sh <main project>" exit 1 @@ -64,7 +72,8 @@ function main() { hbase) setup_hbase ;; zookeeper) setup_zookeeper ;; alluxio) setup_alluxio ;; - *) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper and alluxio." ;; + rocketmq) setup_rocketmq ;; + *) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper alluxio, and rocketmq." ;; esac fi } diff --git a/core/ctest_const.py b/core/ctest_const.py index d0820f43..653dbcdb 100644 --- a/core/ctest_const.py +++ b/core/ctest_const.py @@ -12,18 +12,20 @@ HBASE = "hbase-server" ZOOKEEPER = "zookeeper-server" ALLUXIO = "alluxio-core" +ROCKETMQ = "rocketmq-acl" CTEST_HADOOP_DIR = os.path.join(APP_DIR, "ctest-hadoop") CTEST_HBASE_DIR = os.path.join(APP_DIR, "ctest-hbase") CTEST_ZK_DIR = os.path.join(APP_DIR, "ctest-zookeeper") CTEST_ALLUXIO_DIR = os.path.join(APP_DIR, "ctest-alluxio") - +CTEST_ROCKETMQ_DIR = os.path.join("../../", "rocketmq") PROJECT_DIR = { HCOMMON: CTEST_HADOOP_DIR, HDFS: CTEST_HADOOP_DIR, HBASE: CTEST_HBASE_DIR, ZOOKEEPER: CTEST_ZK_DIR, ALLUXIO: CTEST_ALLUXIO_DIR, + ROCKETMQ: CTEST_ROCKETMQ_DIR, } @@ -34,6 +36,7 @@ HBASE: "hbase-server", ZOOKEEPER: "zookeeper-server", ALLUXIO: "core", + ROCKETMQ: "acl", } @@ -58,6 +61,7 @@ os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/worker", SUREFIRE_SUBDIR), os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/master", SUREFIRE_SUBDIR), ], + ROCKETMQ: [os.path.join(CTEST_ROCKETMQ_DIR, MODULE_SUBDIR[ROCKETMQ], SUREFIRE_SUBDIR)] } # default or deprecate conf path @@ -74,7 +78,8 @@ HDFS: os.path.join(DEFAULT_CONF_DIR, HDFS + "-default.tsv"), HBASE: os.path.join(DEFAULT_CONF_DIR, HBASE + "-default.tsv"), ALLUXIO: os.path.join(DEFAULT_CONF_DIR, ALLUXIO + "-default.tsv"), - ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv") + ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv"), + ROCKETMQ: os.path.join(DEFAULT_CONF_DIR, ROCKETMQ + "-default.tsv") } @@ -96,6 +101,9 @@ ], ALLUXIO: [ os.path.join(CTEST_ALLUXIO_DIR, "core/alluxio-ctest.properties") + ], + ROCKETMQ: [ + os.path.join(CTEST_ROCKET_DIR, "acl/src/test/resources/conf/ctest.yml") ] } diff --git a/core/default_configs/rocketmq-acl-default.tsv b/core/default_configs/rocketmq-acl-default.tsv new file mode 100644 index 00000000..94352145 --- /dev/null +++ b/core/default_configs/rocketmq-acl-default.tsv @@ -0,0 +1,9 @@ +admin true +accessKey RocketMQ +secretKey 12345678 +whiteRemoteAddress 192.168.0.* +defaultTopicPerm DENY +defaultGroupPerm SUB +topicPerms topicA=DENY +groupPerms groupA=DENY +globalWhiteAddrs 10.10.103.* \ No newline at end of file diff --git a/core/generate_ctest/inject.py b/core/generate_ctest/inject.py index 75f5b443..9a1a8343 100644 --- a/core/generate_ctest/inject.py +++ b/core/generate_ctest/inject.py @@ -35,6 +35,38 @@ def inject_config(param_value_pairs): file.write(str.encode("<?xml version=\"1.0\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n")) file.write(ET.tostring(conf)) file.close() + elif project in [ROCKETMQ]: + for inject_path in INJECTION_PATH[project]: + print(">>>>[ctest_core] injecting into file: {}".format(inject_path)) + file = open(inject_path, "w") + # '10.10.104.*','192.168.0.*' + dict_global_addr = {'globalWhiteRemoteAddresses':[]} + # {"accessKey":"rocketmq2","secretKey":12345678,"whiteRemoteAddress":"192.168.1.*","admin":True} + dict_accounts = {'accounts':[{"accessKey":"rocketmq","secretKey":1234567,"whiteRemoteAddress":"192.168.0.*","admin":False}]} + + for p, v in param_value_pairs.items(): + if dict_accounts['accounts'][0].__contains__(p): + if v == 'true': + v = True + elif v == 'false': + v = False + dict_accounts['accounts'][0][p] = v + else: + if p in ['defaultTopicPerm', 'defaultGroupPerm']: + dict_accounts['accounts'][0][p] = v + elif p in ['topicPerms', 'groupPerms']: + dict_accounts['accounts'][0][p] = [] + dict_accounts['accounts'][0][p].append(v) + elif p == 'globalWhiteAddrs': + dict_global_addr['globalWhiteRemoteAddresses'].append(v) + + # dict_global_addr.append(acc) + # acc_cnt = acc_cnt + 1 + if not dict_global_addr['globalWhiteRemoteAddresses']: + dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] + yaml.dump(dict_global_addr, file) + yaml.dump(dict_accounts, file) + file.close() else: sys.exit(">>>>[ctest_core] value injection for {} is not supported yet".format(project)) @@ -53,5 +85,10 @@ def clean_conf_file(project): file.write(str.encode("<?xml version=\"1.0\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n")) file.write(ET.tostring(conf)) file.close() + elif project in [ROCKETMQ]: + for inject_path in INJECTION_PATH[project]: + file = open(inject_path, "w") + file.write("\n") + file.close() else: sys.exit(">>>>[ctest_core] value injection for {} is not supported yet".format(project)) diff --git a/core/generate_ctest/program_input.py b/core/generate_ctest/program_input.py index 9147868a..38b43428 100644 --- a/core/generate_ctest/program_input.py +++ b/core/generate_ctest/program_input.py @@ -4,11 +4,11 @@ # run mode "run_mode": "generate_ctest", # string # name of the project, i.e. hadoop-common, hadoop-hdfs, see constant.py - "project": "hadoop-common", # string + "project": "rocketmq-acl", # string # path to param -> tests json mapping - "mapping_path": "../../data/ctest_mapping/opensource-hadoop-common.json", # string + "mapping_path": "../../data/ctest_mapping/opensource-rocketmq-acl.json", # string # good values of params tests will be run against - "param_value_tsv": "sample-hadoop-common.tsv", # string + "param_value_tsv": "../default_configs/rocketmq-acl-default.tsv", # string # display the terminal output live, without saving any results "display_mode": False, # bool # whether to use mvn test or mvn surefire:test diff --git a/core/generate_value/value_generation.py b/core/generate_value/value_generation.py index 82a5bde8..9a17b494 100644 --- a/core/generate_value/value_generation.py +++ b/core/generate_value/value_generation.py @@ -25,6 +25,9 @@ def read_tsv(module): if module == "zookeeper-server": assert len(params) == 32 return 32 + elif module == "rocketmq-acl": + assert len(params) == 9 + return 9 else: assert len(params) == 90 return 90 diff --git a/core/identify_param/add_project.sh b/core/identify_param/add_project.sh index 954dbab8..63dd8f47 100755 --- a/core/identify_param/add_project.sh +++ b/core/identify_param/add_project.sh @@ -47,6 +47,14 @@ function setup_alluxio() { mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true } +function setup_rocketmq() { + [ ! -d "app/ctest-rocketmq" ] && git clone https://github.com/Stranger3333/rocketmq.git app/ctest-rocketmq + cd app/ctest-rocketmq + git fetch && git checkout ctest-intercept + cd acl + mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true +} + function usage() { echo "Usage: add_project.sh <main project>" exit 1 diff --git a/core/identify_param/identify_param.sh b/core/identify_param/identify_param.sh index 76963419..9e5e03c3 100755 --- a/core/identify_param/identify_param.sh +++ b/core/identify_param/identify_param.sh @@ -12,7 +12,7 @@ function main() { usage else case $project in - hadoop-common | hadoop-hdfs | hbase-server | zookeeper-server | alluxio-core) python3 runner.py $project; python3 collector.py $project ;; + hadoop-common | hadoop-hdfs | hbase-server | zookeeper-server | alluxio-core | rocketmq-acl) python3 runner.py $project; python3 collector.py $project ;; -h | --help) usage ;; *) echo "Unexpected project: $project - only support hadoop-common, hadoop-hdfs, hbase-server, zookeeper-server and alluxio-core." ;; esac diff --git a/core/identify_param/results/rocketmq-acl/conf_params.txt b/core/identify_param/results/rocketmq-acl/conf_params.txt new file mode 100644 index 00000000..08aab3f4 --- /dev/null +++ b/core/identify_param/results/rocketmq-acl/conf_params.txt @@ -0,0 +1,193 @@ +listenPort +brokerIP1 +brokerIP2 +brokerName +brokerClusterName +brokerPermission +brokerId +storePathRootDir +storePathCommitLog +mappedFileSizeCommitLog +deleteWhen +fileReservedTime +brokerRole +flushDiskType +defaultTopicQueueNums +autoCreateTopicEnable +clusterTopicEnable +brokerTopicEnable +autoCreateSubscriptionGroup +messageStorePlugIn +msgTraceTopicName +traceTopicEnable +sendMessageThreadPoolNums +putMessageFutureThreadPoolNums +pullMessageThreadPoolNums +litePullMessageThreadPoolNums +ackMessageThreadPoolNums +processReplyMessageThreadPoolNums +queryMessageThreadPoolNums +adminBrokerThreadPoolNums +clientManageThreadPoolNums +consumerManageThreadPoolNums +loadBalanceProcessorThreadPoolNums +heartbeatThreadPoolNums +endTransactionThreadPoolNums +flushConsumerOffsetInterval +flushConsumerOffsetHistoryInterval +rejectTransactionMessage +fetchNamesrvAddrByAddressServer +sendThreadPoolQueueCapacity +putThreadPoolQueueCapacity +pullThreadPoolQueueCapacity +litePullThreadPoolQueueCapacity +ackThreadPoolQueueCapacity +replyThreadPoolQueueCapacity +queryThreadPoolQueueCapacity +clientManagerThreadPoolQueueCapacity +consumerManagerThreadPoolQueueCapacity +heartbeatThreadPoolQueueCapacity +endTransactionPoolQueueCapacity +adminBrokerThreadPoolQueueCapacity +loadBalanceThreadPoolQueueCapacity +filterServerNums +longPollingEnable +shortPollingTimeMills +notifyConsumerIdsChangedEnable +highSpeedMode +commercialBaseCount +commercialSizePerMsg +accountStatsEnable +accountStatsPrintZeroValues +transferMsgByHeap +maxDelayTime +regionId +registerBrokerTimeoutMills +sendHeartbeatTimeoutMillis +slaveReadEnable +disableConsumeIfConsumerReadSlowly +consumerFallbehindThreshold +brokerFastFailureEnable +waitTimeMillsInSendQueue +waitTimeMillsInPullQueue +waitTimeMillsInLitePullQueue +waitTimeMillsInHeartbeatQueue +waitTimeMillsInTransactionQueue +waitTimeMillsInAckQueue +startAcceptSendRequestTimeStamp +traceOn +enableCalcFilterBitMap +rejectPullConsumerEnable +expectConsumerNumUseFilter +maxErrorRateOfBloomFilter +filterDataCleanTimeSpan +filterSupportRetry +enablePropertyFilter +compressedRegister +forceRegister +registerNameServerPeriod +brokerHeartbeatInterval +brokerNotActiveTimeoutMillis +enableNetWorkFlowControl +popPollingSize +popPollingMapSize +maxPopPollingSize +reviveQueueNum +reviveInterval +reviveMaxSlow +reviveScanTime +enablePopLog +enablePopBufferMerge +popCkStayBufferTime +popCkStayBufferTimeOut +popCkMaxBufferSize +popCkOffsetMaxQueueSize +realTimeNotifyConsumerChange +litePullMessageEnable +syncBrokerMemberGroupPeriod +loadBalancePollNameServerInterval +cleanOfflineBrokerInterval +serverLoadBalancerEnable +defaultMessageRequestMode +defaultPopShareQueueNum +transactionTimeOut +transactionCheckMax +transactionCheckInterval +aclEnable +storeReplyMessageEnable +enableDetailStat +autoDeleteUnusedStats +isolateLogEnable +forwardTimeout +enableSlaveActingMaster +enableSlaveActingMaster +enableRemoteEscape +skipPreOnline +asyncSendEnable +consumerOffsetUpdateVersionStep +delayOffsetUpdateVersionStep +lockInStrictMode +compatibleWithOldNameSrv +enableControllerMode +controllerAddr +syncBrokerMetadataPeriod +checkSyncStateSetPeriod +syncControllerMetadataPeriod +rocketmqHome +configStorePath +scanNotActiveBrokerInterval +controllerThreadPoolNums +controllerRequestThreadPoolQueueCapacity +controllerDLegerGroup +controllerDLegerPeers +controllerDLegerSelfId +mappedFileSize +controllerStorePath +enableElectUncleanMaster +isProcessReadEvent +notifyBrokerRoleChanged +topicName +readQueueNums +writeQueueNums +perm +topicFilterType +topicSysFlag +order +groupName +consumeEnable +consumeFromMinEnable +consumeBroadcastEnable +consumeMessageOrderly +retryQueueNums +retryMaxTimes +groupRetryPolicy +brokerId +whichBrokerWhenConsumeSlowly +notifyConsumerIdsChangedEnable +groupSysFlag +consumeTimeoutMinute +rocketmqHome +kvConfigPath +configStorePath +productEnvName +clusterTest +orderMessageEnable +returnOrderTopicConfigToBroker +clientRequestThreadPoolNums +defaultThreadPoolNums +clientRequestThreadPoolQueueCapacity +defaultThreadPoolQueueCapacity +scanNotActiveBrokerInterval +unRegisterBrokerQueueCapacity +supportActingMaster +enableControllerInNamesrv +globalWhiteAddrs +plainAccessConfigs +accessKey +secretKey +whiteRemoteAddress +admin +defaultTopicPerm +defaultGroupPerm +topicPerms +groupPerms \ No newline at end of file diff --git a/core/identify_param/results/rocketmq-acl/test_method_list.json b/core/identify_param/results/rocketmq-acl/test_method_list.json new file mode 100644 index 00000000..7a244866 --- /dev/null +++ b/core/identify_param/results/rocketmq-acl/test_method_list.json @@ -0,0 +1 @@ +["org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", "org.apache.rocketmq.acl.common.AclUtilsTest#getAclRPCHookTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", "org.apache.rocketmq.acl.common.AclClientRPCHookTest#testParseRequestContentWithStreamRequestType", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#multipleNetaddressStrategyTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", "org.apache.rocketmq.acl.common.AclUtilsTest#updateExistedYamlFileTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#rangeNetaddressStrategyExceptionStartGreaterEndTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", "org.apache.rocketmq.acl.common.SessionCredentialsTest#SessionCredentialToStringTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#blankNetaddressStrategyTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#nullNetaddressStrategyTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#multipleNetaddressStrategyExceptionTest", "org.apache.rocketmq.acl.common.PermissionTest#fromStringGetPermissionTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#netaddressStrategyFactoryTest", "org.apache.rocketmq.acl.common.AclSignerTest#calSignatureExceptionTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", "org.apache.rocketmq.acl.common.AclUtilsTest#getYamlDataIgnoreFileNotFoundExceptionTest", "org.apache.rocketmq.acl.common.AclClientRPCHookTest#testParseRequestContent", "org.apache.rocketmq.acl.common.SessionCredentialsTest#SessionCredentialEqualsTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#netaddressStrategyFactoryExceptionTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsAsterisk", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsScope_String", "org.apache.rocketmq.acl.common.AclUtilsTest#testExpandIP", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsComma", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", "org.apache.rocketmq.acl.common.PermissionTest#setTopicPermTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testGetAddresses", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#verifyTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", "org.apache.rocketmq.acl.common.SessionCredentialsTest#SessionCredentialHashCodeTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#rangeNetaddressStrategyExceptionScopeTwoTest", "org.apache.rocketmq.acl.common.SessionCredentialsTest#equalsTest", "org.apache.rocketmq.acl.common.PermissionTest#checkResourcePermsExceptionTest2", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", "org.apache.rocketmq.acl.common.PermissionTest#checkPermissionTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsScope_Array", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#oneNetaddressStrategyTest", "org.apache.rocketmq.acl.common.PermissionTest#AclExceptionTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testGetYamlDataObject", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsScope_Integral", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#rangeNetaddressStrategyTest", "org.apache.rocketmq.acl.common.AclUtilsTest#writeDataObject2YamlFileTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", "org.apache.rocketmq.acl.common.AclSignerTest#calSignatureTest", "org.apache.rocketmq.acl.plain.RemoteAddressStrategyTest#rangeNetaddressStrategyExceptionScopeTest", "org.apache.rocketmq.acl.common.PermissionTest#checkResourcePermsExceptionTest3", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", "org.apache.rocketmq.acl.common.PermissionTest#checkAdminCodeTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsMinus", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", "org.apache.rocketmq.acl.common.PermissionTest#checkResourcePermsExceptionTest1", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", "org.apache.rocketmq.acl.common.SessionCredentialsTest#updateContentTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", "org.apache.rocketmq.acl.common.PermissionTest#checkResourcePermsNormalTest", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testIsScope_StringArray", "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", "org.apache.rocketmq.acl.common.AclUtilsTest#testV6ipProcess", "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase"] \ No newline at end of file diff --git a/core/run_ctest/inject.py b/core/run_ctest/inject.py index 75f5b443..63622a4d 100644 --- a/core/run_ctest/inject.py +++ b/core/run_ctest/inject.py @@ -35,6 +35,36 @@ def inject_config(param_value_pairs): file.write(str.encode("<?xml version=\"1.0\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n")) file.write(ET.tostring(conf)) file.close() + elif project in [ROCKETMQ]: + for inject_path in INJECTION_PATH[project]: + print(">>>>[ctest_core] injecting into file: {}".format(inject_path)) + file = open(inject_path, "w") + # '10.10.104.*','192.168.0.*' + dict_global_addr = {'globalWhiteRemoteAddresses':[]} + # {"accessKey":"rocketmq2","secretKey":12345678,"whiteRemoteAddress":"192.168.1.*","admin":True} + dict_accounts = {'accounts':[{"accessKey":"rocketmq","secretKey":1234567,"whiteRemoteAddress":"192.168.0.*","admin":False}]} + + for p, v in param_value_pairs.items(): + if dict_accounts['accounts'][0].__contains__(p): + if v == 'true': + v = True + elif v == 'false': + v = False + dict_accounts['accounts'][0][p] = v + else: + if p in ['defaultTopicPerm', 'defaultGroupPerm']: + dict_accounts['accounts'][0][p] = v + elif p in ['topicPerms', 'groupPerms']: + dict_accounts['accounts'][0][p] = [] + dict_accounts['accounts'][0][p].append(v) + elif p == 'globalWhiteAddrs': + dict_global_addr['globalWhiteRemoteAddresses'].append(v) + + if not dict_global_addr['globalWhiteRemoteAddresses']: + dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] + yaml.dump(dict_global_addr, file) + yaml.dump(dict_accounts, file) + file.close() else: sys.exit(">>>>[ctest_core] value injection for {} is not supported yet".format(project)) @@ -53,5 +83,10 @@ def clean_conf_file(project): file.write(str.encode("<?xml version=\"1.0\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n")) file.write(ET.tostring(conf)) file.close() + elif project in [ROCKETMQ]: + for inject_path in INJECTION_PATH[project]: + file = open(inject_path, "w") + file.write("\n") + file.close() else: sys.exit(">>>>[ctest_core] value injection for {} is not supported yet".format(project)) diff --git a/data/ctest_mapping/opensource-rocketmq-acl.json b/data/ctest_mapping/opensource-rocketmq-acl.json new file mode 100644 index 00000000..3323c9ad --- /dev/null +++ b/data/ctest_mapping/opensource-rocketmq-acl.json @@ -0,0 +1,489 @@ +{ + "defaultGroupPerm": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "defaultTopicPerm": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "groupPerms": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "accessKey": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "whiteRemoteAddress": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "secretKey": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "admin": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "topicPerms": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "plainAccessConfigs": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ], + "globalWhiteAddrs": [ + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase" + ] +} \ No newline at end of file From 12273cd9943272549f45cb114d7abc90a26b82e9 Mon Sep 17 00:00:00 2001 From: siruiw4 <siruiw4@fa22-cs527-064.cs.illinois.edu> Date: Sat, 10 Dec 2022 23:06:33 -0600 Subject: [PATCH 2/5] done --- core/run_ctest/inject.py | 9 +++++---- core/run_ctest/program_input.py | 8 ++++---- core/run_ctest/rocketmq-acl-default.tsv | 9 +++++++++ core/run_ctest/run_test.py | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 core/run_ctest/rocketmq-acl-default.tsv diff --git a/core/run_ctest/inject.py b/core/run_ctest/inject.py index 63622a4d..c205bb7e 100644 --- a/core/run_ctest/inject.py +++ b/core/run_ctest/inject.py @@ -7,7 +7,7 @@ from ctest_const import * from program_input import p_input - +import yaml project = p_input["project"] def inject_config(param_value_pairs): @@ -60,9 +60,10 @@ def inject_config(param_value_pairs): elif p == 'globalWhiteAddrs': dict_global_addr['globalWhiteRemoteAddresses'].append(v) - if not dict_global_addr['globalWhiteRemoteAddresses']: - dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] - yaml.dump(dict_global_addr, file) + # if not dict_global_addr['globalWhiteRemoteAddresses']: + # dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] + if dict_global_addr['globalWhiteRemoteAddresses']: + yaml.dump(dict_global_addr, file) yaml.dump(dict_accounts, file) file.close() else: diff --git a/core/run_ctest/program_input.py b/core/run_ctest/program_input.py index 2b971f1c..a317f51c 100644 --- a/core/run_ctest/program_input.py +++ b/core/run_ctest/program_input.py @@ -4,15 +4,15 @@ # run mode "run_mode": "run_ctest", # string # name of the project, i.e. hadoop-common, hadoop-hdfs - "project": "hadoop-common", # string + "project": "rocketmq-acl", # string # path to param -> tests json mapping - "mapping_path": "../../data/ctest_mapping/opensource-hadoop-common.json", # string + "mapping_path": "../../data/ctest_mapping/opensource-rocketmq-acl.json", # string # input directory hosting configuration files to be test, target-project-format specific - "conf_file_dir": "sample-hadoop-common", # string + "conf_file_dir": "../default_configs/rocketmq-acl-default.tsv", # string # display the terminal output live, without saving any results "display_mode": False, # bool # whether to use mvn test or mvn surefire:test - "use_surefire": False, # bool + "use_surefire": True, # bool # additional maven options to pass to `mvn surefire:test -Dtest=...` "maven_args": [], # list of strings, each element is an option # timeout on the mvn test command diff --git a/core/run_ctest/rocketmq-acl-default.tsv b/core/run_ctest/rocketmq-acl-default.tsv new file mode 100644 index 00000000..ac7900c9 --- /dev/null +++ b/core/run_ctest/rocketmq-acl-default.tsv @@ -0,0 +1,9 @@ +admin false true +accessKey RocketMQ RocketMQ5 +secretKey 6172839 24691356 +whiteRemoteAddress 192.168.1.* 192.168.0.* +defaultTopicPerm DENY SUB +defaultGroupPerm DENY SUB +topicPerms topicA=DENY topicC=SUB +groupPerms groupA=DENY groupB=SUB +globalWhiteAddrs 10.10.103.* 192.168.0.* diff --git a/core/run_ctest/run_test.py b/core/run_ctest/run_test.py index e156567f..1ab47c23 100644 --- a/core/run_ctest/run_test.py +++ b/core/run_ctest/run_test.py @@ -15,7 +15,7 @@ project = p_input["project"] cmd_timeout = p_input["cmd_timeout"] testing_dir = os.path.join(PROJECT_DIR[project], MODULE_SUBDIR[project]) - +print(testing_dir) def run_test_batch(param_values, associated_test_map): print(">>>>[ctest_core] start running ctests for {} parameters".format(len(associated_test_map))) From 691ac8ed09d8cac67c85ab0a1b1f2daa2cc81229 Mon Sep 17 00:00:00 2001 From: siruiw4 <siruiw4@fa22-cs527-064.cs.illinois.edu> Date: Sat, 10 Dec 2022 23:59:44 -0600 Subject: [PATCH 3/5] with generated content --- core/app/ctest-rocketmq | 1 + core/ctest_const.py | 6 +- core/default_configs/rocketmq-acl-default.tsv | 18 +- .../ctest_mapping/ctests-rocketmq-acl.json | 461 ++++++++++++++++++ core/generate_ctest/identify.py | 1 + core/generate_ctest/inject.py | 13 +- core/generate_ctest/parse_output.py | 8 + .../rocketmq-acl-generated-values.tsv | 9 + .../rocketmq-acl/missing_test_accessKey.list | 2 + .../rocketmq-acl/missing_test_admin.list | 2 + .../missing_test_defaultGroupPerm.list | 2 + .../missing_test_defaultTopicPerm.list | 2 + .../missing_test_globalWhiteAddrs.list | 2 + .../rocketmq-acl/missing_test_groupPerms.list | 2 + .../rocketmq-acl/missing_test_secretKey.list | 2 + .../rocketmq-acl/missing_test_topicPerms.list | 2 + .../missing_test_whiteRemoteAddress.list | 2 + .../rocketmq-acl/test_result_accessKey.tsv | 112 +++++ .../rocketmq-acl/test_result_admin.tsv | 112 +++++ .../test_result_defaultGroupPerm.tsv | 112 +++++ .../test_result_defaultTopicPerm.tsv | 112 +++++ .../test_result_globalWhiteAddrs.tsv | 10 + .../rocketmq-acl/test_result_groupPerms.tsv | 112 +++++ .../rocketmq-acl/test_result_secretKey.tsv | 112 +++++ .../rocketmq-acl/test_result_topicPerms.tsv | 112 +++++ .../test_result_whiteRemoteAddress.tsv | 112 +++++ core/generate_value/value_generation.py | 2 + core/identify_param/add_project.sh | 3 +- core/identify_param/constant.py | 21 +- core/patch/rocketmq/interception.patch | 79 +++ core/patch/rocketmq/logging.patch | 168 +++++++ core/setup_ubuntu.sh | 2 +- 32 files changed, 1692 insertions(+), 24 deletions(-) create mode 160000 core/app/ctest-rocketmq create mode 100644 core/generate_ctest/ctest_mapping/ctests-rocketmq-acl.json create mode 100644 core/generate_ctest/rocketmq-acl-generated-values.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_accessKey.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_admin.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultGroupPerm.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultTopicPerm.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_globalWhiteAddrs.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_groupPerms.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_secretKey.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_topicPerms.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/missing_test_whiteRemoteAddress.list create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_accessKey.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_admin.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_defaultGroupPerm.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_defaultTopicPerm.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_globalWhiteAddrs.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_groupPerms.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_secretKey.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_topicPerms.tsv create mode 100644 core/generate_ctest/test_result/rocketmq-acl/test_result_whiteRemoteAddress.tsv create mode 100644 core/patch/rocketmq/interception.patch create mode 100644 core/patch/rocketmq/logging.patch diff --git a/core/app/ctest-rocketmq b/core/app/ctest-rocketmq new file mode 160000 index 00000000..355370bb --- /dev/null +++ b/core/app/ctest-rocketmq @@ -0,0 +1 @@ +Subproject commit 355370bb3e29e324fb5e782346641885400062f3 diff --git a/core/ctest_const.py b/core/ctest_const.py index 653dbcdb..5f34da21 100644 --- a/core/ctest_const.py +++ b/core/ctest_const.py @@ -18,7 +18,7 @@ CTEST_HBASE_DIR = os.path.join(APP_DIR, "ctest-hbase") CTEST_ZK_DIR = os.path.join(APP_DIR, "ctest-zookeeper") CTEST_ALLUXIO_DIR = os.path.join(APP_DIR, "ctest-alluxio") -CTEST_ROCKETMQ_DIR = os.path.join("../../", "rocketmq") +CTEST_ROCKETMQ_DIR = os.path.join(APP_DIR, "ctest-rocketmq") PROJECT_DIR = { HCOMMON: CTEST_HADOOP_DIR, HDFS: CTEST_HADOOP_DIR, @@ -61,7 +61,7 @@ os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/worker", SUREFIRE_SUBDIR), os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/master", SUREFIRE_SUBDIR), ], - ROCKETMQ: [os.path.join(CTEST_ROCKETMQ_DIR, MODULE_SUBDIR[ROCKETMQ], SUREFIRE_SUBDIR)] + ROCKETMQ: [os.path.join(CTEST_ROCKETMQ_DIR, MODULE_SUBDIR[ROCKETMQ], SUREFIRE_SUBDIR)], } # default or deprecate conf path @@ -103,7 +103,7 @@ os.path.join(CTEST_ALLUXIO_DIR, "core/alluxio-ctest.properties") ], ROCKETMQ: [ - os.path.join(CTEST_ROCKET_DIR, "acl/src/test/resources/conf/ctest.yml") + os.path.join(CTEST_ROCKETMQ_DIR, "acl/src/test/resources/conf/ctest.yml") ] } diff --git a/core/default_configs/rocketmq-acl-default.tsv b/core/default_configs/rocketmq-acl-default.tsv index 94352145..ac7900c9 100644 --- a/core/default_configs/rocketmq-acl-default.tsv +++ b/core/default_configs/rocketmq-acl-default.tsv @@ -1,9 +1,9 @@ -admin true -accessKey RocketMQ -secretKey 12345678 -whiteRemoteAddress 192.168.0.* -defaultTopicPerm DENY -defaultGroupPerm SUB -topicPerms topicA=DENY -groupPerms groupA=DENY -globalWhiteAddrs 10.10.103.* \ No newline at end of file +admin false true +accessKey RocketMQ RocketMQ5 +secretKey 6172839 24691356 +whiteRemoteAddress 192.168.1.* 192.168.0.* +defaultTopicPerm DENY SUB +defaultGroupPerm DENY SUB +topicPerms topicA=DENY topicC=SUB +groupPerms groupA=DENY groupB=SUB +globalWhiteAddrs 10.10.103.* 192.168.0.* diff --git a/core/generate_ctest/ctest_mapping/ctests-rocketmq-acl.json b/core/generate_ctest/ctest_mapping/ctests-rocketmq-acl.json new file mode 100644 index 00000000..9380a904 --- /dev/null +++ b/core/generate_ctest/ctest_mapping/ctests-rocketmq-acl.json @@ -0,0 +1,461 @@ +{ + "secretKey": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest" + ], + "topicPerms": [ + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest" + ], + "globalWhiteAddrs": [ + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest" + ], + "defaultTopicPerm": [ + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest" + ], + "whiteRemoteAddress": [ + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest" + ], + "defaultGroupPerm": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest" + ], + "admin": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest" + ], + "accessKey": [ + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest" + ], + "groupPerms": [ + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest", + "org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest", + "org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest", + "org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest" + ] +} \ No newline at end of file diff --git a/core/generate_ctest/identify.py b/core/generate_ctest/identify.py index 2ddcb723..e54b3d05 100644 --- a/core/generate_ctest/identify.py +++ b/core/generate_ctest/identify.py @@ -13,6 +13,7 @@ def identify_ctest(project): test_result_dir = os.path.join(GENCTEST_TR_DIR, project) ctest_file = os.path.join(CTESTS_DIR, CTESTS_FILE.format(project=project)) + print("ctest file: " + ctest_file) try: ctests = json.load(open(ctest_file, "r")) ctest_file.close() diff --git a/core/generate_ctest/inject.py b/core/generate_ctest/inject.py index 9a1a8343..b46ff289 100644 --- a/core/generate_ctest/inject.py +++ b/core/generate_ctest/inject.py @@ -7,7 +7,8 @@ from ctest_const import * from program_input import p_input - +# FOR ROCKETMQ +import yaml project = p_input["project"] def inject_config(param_value_pairs): @@ -60,11 +61,11 @@ def inject_config(param_value_pairs): elif p == 'globalWhiteAddrs': dict_global_addr['globalWhiteRemoteAddresses'].append(v) - # dict_global_addr.append(acc) - # acc_cnt = acc_cnt + 1 - if not dict_global_addr['globalWhiteRemoteAddresses']: - dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] - yaml.dump(dict_global_addr, file) + + # if not dict_global_addr['globalWhiteRemoteAddresses']: + # dict_global_addr['globalWhiteRemoteAddresses'] = ['10.10.103.*','192.168.0.*'] + if dict_global_addr['globalWhiteRemoteAddresses']: + yaml.dump(dict_global_addr, file) yaml.dump(dict_accounts, file) file.close() else: diff --git a/core/generate_ctest/parse_output.py b/core/generate_ctest/parse_output.py index c750f398..7665a727 100644 --- a/core/generate_ctest/parse_output.py +++ b/core/generate_ctest/parse_output.py @@ -14,15 +14,22 @@ def parse_surefire(clsname, expected_methods): """method expected to show up in surefire""" expected_methods = set(expected_methods) + # print(expected_methods) times = {} errors = {} + # print("abfcc") try: fpath = None + # print("surefire dir list: ") for surefire_path in SUREFIRE_DIR[project]: + + # print("surefire path: " + surefire_path) xml_path = os.path.join(surefire_path, SUREFIRE_XML.format(clsname)) + # print(xml_path) if os.path.exists(xml_path): print(">>>>[ctest_core] surefire report path: " + xml_path) fpath = open(xml_path) + # print("---debug") tree = ET.parse(fpath) root = tree.getroot() tsinfo = root.attrib @@ -62,6 +69,7 @@ def parse_surefire(clsname, expected_methods): if set(times.keys()) != expected_methods: print(">>>>[ctest_core] [strange] tests run not the same as expected tests") except Exception as e: + print(clsname) print(">>>>[ctest_core] failed to parse surefire file: {}".format(e)) # pretty printing diff --git a/core/generate_ctest/rocketmq-acl-generated-values.tsv b/core/generate_ctest/rocketmq-acl-generated-values.tsv new file mode 100644 index 00000000..ac7900c9 --- /dev/null +++ b/core/generate_ctest/rocketmq-acl-generated-values.tsv @@ -0,0 +1,9 @@ +admin false true +accessKey RocketMQ RocketMQ5 +secretKey 6172839 24691356 +whiteRemoteAddress 192.168.1.* 192.168.0.* +defaultTopicPerm DENY SUB +defaultGroupPerm DENY SUB +topicPerms topicA=DENY topicC=SUB +groupPerms groupA=DENY groupB=SUB +globalWhiteAddrs 10.10.103.* 192.168.0.* diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_accessKey.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_accessKey.list new file mode 100644 index 00000000..02abb5db --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_accessKey.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl accessKey RocketMQ +>>>>[ctest_core] missing test for rocketmq-acl accessKey RocketMQ5 diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_admin.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_admin.list new file mode 100644 index 00000000..17143e4f --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_admin.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl admin false +>>>>[ctest_core] missing test for rocketmq-acl admin true diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultGroupPerm.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultGroupPerm.list new file mode 100644 index 00000000..4d0eac55 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultGroupPerm.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl defaultGroupPerm DENY +>>>>[ctest_core] missing test for rocketmq-acl defaultGroupPerm SUB diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultTopicPerm.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultTopicPerm.list new file mode 100644 index 00000000..79275a29 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_defaultTopicPerm.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl defaultTopicPerm DENY +>>>>[ctest_core] missing test for rocketmq-acl defaultTopicPerm SUB diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_globalWhiteAddrs.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_globalWhiteAddrs.list new file mode 100644 index 00000000..8942f61b --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_globalWhiteAddrs.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl globalWhiteAddrs 10.10.103.* +>>>>[ctest_core] missing test for rocketmq-acl globalWhiteAddrs 192.168.0.* diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_groupPerms.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_groupPerms.list new file mode 100644 index 00000000..a4f111e1 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_groupPerms.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl groupPerms groupA=DENY +>>>>[ctest_core] missing test for rocketmq-acl groupPerms groupB=SUB diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_secretKey.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_secretKey.list new file mode 100644 index 00000000..49bb4d7d --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_secretKey.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl secretKey 6172839 +>>>>[ctest_core] missing test for rocketmq-acl secretKey 24691356 diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_topicPerms.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_topicPerms.list new file mode 100644 index 00000000..549cd7b8 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_topicPerms.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl topicPerms topicA=DENY +>>>>[ctest_core] missing test for rocketmq-acl topicPerms topicC=SUB diff --git a/core/generate_ctest/test_result/rocketmq-acl/missing_test_whiteRemoteAddress.list b/core/generate_ctest/test_result/rocketmq-acl/missing_test_whiteRemoteAddress.list new file mode 100644 index 00000000..2bc04ed3 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/missing_test_whiteRemoteAddress.list @@ -0,0 +1,2 @@ +>>>>[ctest_core] missing test for rocketmq-acl whiteRemoteAddress 192.168.1.* +>>>>[ctest_core] missing test for rocketmq-acl whiteRemoteAddress 192.168.0.* diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_accessKey.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_accessKey.tsv new file mode 100644 index 00000000..5dbc4e33 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_accessKey.tsv @@ -0,0 +1,112 @@ +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest RocketMQ p 0.336 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest RocketMQ p 0.431 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest RocketMQ p 0.363 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest RocketMQ p 0.336 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest RocketMQ p 0.479 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest RocketMQ p 0.386 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase RocketMQ p 0.712 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest RocketMQ p 0.45 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest RocketMQ p 2.428 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch RocketMQ p 0.291 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch RocketMQ p 11.539 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig RocketMQ p 0.4 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest RocketMQ p 0.474 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest RocketMQ p 0.491 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest RocketMQ p 0.392 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest RocketMQ p 0.416 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest RocketMQ p 10.337 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest RocketMQ p 0.527 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest RocketMQ p 0.49 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest RocketMQ p 0.39 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest RocketMQ p 0.403 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest RocketMQ p 0.366 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest RocketMQ p 0.394 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig RocketMQ p 0.691 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest RocketMQ p 0.359 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin RocketMQ p 0.336 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest RocketMQ p 0.391 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest RocketMQ p 10.415 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook RocketMQ p 0.347 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest RocketMQ p 0.407 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test RocketMQ p 0.601 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest RocketMQ p 1.322 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest RocketMQ p 0.428 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest RocketMQ p 0.386 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest RocketMQ p 0.341 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest RocketMQ p 20.455 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest RocketMQ p 10.52 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest RocketMQ p 0.387 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest RocketMQ p 0.426 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm RocketMQ p 0.467 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest RocketMQ p 0.387 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest RocketMQ p 0.323 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest RocketMQ p 0.391 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest RocketMQ p 0.376 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest RocketMQ p 0.349 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest RocketMQ p 0.561 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest RocketMQ p 0.427 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest RocketMQ p 0.477 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest RocketMQ p 0.438 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest RocketMQ p 0.374 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest RocketMQ p 0.419 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest RocketMQ p 0.417 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase RocketMQ p 0.694 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest RocketMQ p 0.372 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase RocketMQ p 0.706 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest RocketMQ p 11.384 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest RocketMQ5 p 0.58 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest RocketMQ5 p 1.353 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase RocketMQ5 p 0.695 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest RocketMQ5 p 0.447 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest RocketMQ5 p 0.333 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest RocketMQ5 p 0.468 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig RocketMQ5 p 0.369 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest RocketMQ5 p 0.434 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest RocketMQ5 p 0.412 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest RocketMQ5 p 10.459 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest RocketMQ5 p 0.387 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest RocketMQ5 p 0.385 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest RocketMQ5 p 10.358 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest RocketMQ5 p 0.413 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest RocketMQ5 p 0.425 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest RocketMQ5 p 0.397 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest RocketMQ5 p 0.385 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest RocketMQ5 p 0.404 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest RocketMQ5 p 0.411 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig RocketMQ5 p 0.439 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest RocketMQ5 p 0.483 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest RocketMQ5 p 0.362 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm RocketMQ5 p 0.347 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest RocketMQ5 p 0.398 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest RocketMQ5 p 0.301 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook RocketMQ5 p 0.307 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest RocketMQ5 p 0.45 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin RocketMQ5 p 0.336 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest RocketMQ5 p 10.489 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest RocketMQ5 p 0.416 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest RocketMQ5 p 0.401 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest RocketMQ5 p 0.351 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase RocketMQ5 p 0.645 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest RocketMQ5 p 0.369 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest RocketMQ5 p 0.441 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest RocketMQ5 p 0.443 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch RocketMQ5 p 0.341 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest RocketMQ5 p 11.464 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest RocketMQ5 p 0.497 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest RocketMQ5 p 20.502 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest RocketMQ5 p 0.401 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest RocketMQ5 p 0.414 +accessKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase RocketMQ5 p 0.787 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest RocketMQ5 p 0.316 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest RocketMQ5 p 0.409 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest RocketMQ5 f 0.318 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest RocketMQ5 p 2.577 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest RocketMQ5 p 0.51 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest RocketMQ5 p 0.319 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest RocketMQ5 p 0.468 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest RocketMQ5 p 0.388 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test RocketMQ5 p 0.398 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch RocketMQ5 p 11.333 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest RocketMQ5 p 0.518 +accessKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest RocketMQ5 p 0.512 +accessKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest RocketMQ5 p 0.459 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_admin.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_admin.tsv new file mode 100644 index 00000000..63f37b51 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_admin.tsv @@ -0,0 +1,112 @@ +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest false p 0.515 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest false p 20.467 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest false p 0.372 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest false p 0.406 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest false p 0.597 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest false p 0.436 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest false p 0.422 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest false p 0.41 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest false p 0.429 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest false p 0.41 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest false p 0.451 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig false p 0.371 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test false p 0.429 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest false p 0.471 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest false p 0.439 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest false p 1.529 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest false p 0.407 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm false p 0.337 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest false p 10.402 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest false p 0.421 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest false p 0.481 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest false p 0.361 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch false p 0.617 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase false p 0.658 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest false p 0.358 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch false p 11.42 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase false p 0.745 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook false p 0.249 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest false p 0.388 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig false p 0.563 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest false p 0.553 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest false p 2.507 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest false p 10.444 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest false p 0.379 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest false f 0.396 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest false p 0.312 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest false p 10.544 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest false p 0.382 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest false p 0.362 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase false p 0.7 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest false p 0.499 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest false p 0.416 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest false p 0.441 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest false p 0.342 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest false p 0.456 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest false p 0.538 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest false p 0.441 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest false p 0.392 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin false p 0.364 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest false p 0.497 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest false p 0.493 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest false p 11.422 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest false p 0.397 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest false p 0.553 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest false p 0.356 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest false p 0.589 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest true p 0.509 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest true p 0.474 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest true p 0.347 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase true p 0.664 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest true p 0.478 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest true p 1.452 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test true p 0.434 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest true p 0.422 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch true p 0.412 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase true p 0.692 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest true p 0.436 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest true p 0.454 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest true p 0.463 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest true p 0.608 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook true p 0.294 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest true p 0.502 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest true p 0.5 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest true p 0.489 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest true p 0.423 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest true p 0.437 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest true p 0.457 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest true p 0.365 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest true p 2.356 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest true p 0.368 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest true p 0.339 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest true p 10.459 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest true p 0.363 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest true p 0.279 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest true p 0.411 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest true p 0.57 +admin org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase true p 0.779 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch true p 11.436 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest true p 0.318 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest true p 0.338 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig true p 0.443 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest true p 20.426 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest true p 0.493 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest true p 11.357 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest true p 0.397 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest true p 0.462 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest true p 0.383 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest true p 10.401 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest true f 0.412 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest true p 0.461 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest true p 0.379 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest true p 0.374 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest true p 0.332 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest true p 10.452 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest true p 0.364 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin true p 0.329 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm true p 0.294 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest true p 0.456 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig true p 0.479 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest true p 0.481 +admin org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest true p 0.409 +admin org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest true p 0.398 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultGroupPerm.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultGroupPerm.tsv new file mode 100644 index 00000000..b641977f --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultGroupPerm.tsv @@ -0,0 +1,112 @@ +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig DENY p 0.561 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest DENY p 0.357 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest DENY p 0.512 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test DENY p 0.621 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest DENY p 0.406 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest DENY p 0.403 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest DENY p 10.434 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest DENY p 0.359 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest DENY p 0.383 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest DENY p 0.435 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest DENY p 0.483 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest DENY p 0.435 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest DENY p 20.349 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest DENY p 0.394 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest DENY p 11.561 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest DENY p 0.45 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest DENY p 0.351 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch DENY p 11.425 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase DENY p 0.751 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest DENY p 0.399 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch DENY p 0.432 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest DENY p 0.418 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest DENY p 0.427 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest DENY p 0.398 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest DENY p 0.396 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase DENY p 0.701 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest DENY p 0.412 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest DENY p 0.394 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest DENY p 10.393 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest DENY p 0.427 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest DENY p 2.395 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest DENY p 0.431 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest DENY p 0.464 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest DENY p 0.402 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest DENY p 0.388 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest DENY p 0.391 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest DENY p 0.421 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest DENY p 0.444 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest DENY p 0.573 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest DENY p 0.364 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig DENY p 0.407 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest DENY p 0.305 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest DENY p 0.383 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest DENY f 0.331 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest DENY p 0.378 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest DENY p 0.325 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase DENY p 0.654 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm DENY p 0.376 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin DENY p 0.299 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest DENY p 1.448 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest DENY p 0.397 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest DENY p 10.414 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest DENY p 0.398 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook DENY p 0.3 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest DENY p 0.378 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest DENY p 0.546 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest SUB p 0.532 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest SUB p 0.417 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest SUB p 0.38 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase SUB p 0.759 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest SUB p 0.408 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest SUB p 0.331 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest SUB p 0.412 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest SUB p 0.38 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest SUB p 0.51 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest SUB p 0.366 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest SUB p 0.315 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest SUB p 0.441 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest SUB p 0.414 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest SUB p 0.335 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest SUB p 0.446 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook SUB p 0.299 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest SUB p 0.375 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest SUB p 0.578 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest SUB p 0.471 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest SUB p 0.386 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm SUB p 0.312 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest SUB p 0.443 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest SUB p 0.362 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest SUB p 0.555 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest SUB p 0.341 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test SUB p 0.412 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest SUB p 0.361 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase SUB p 0.672 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest SUB p 0.297 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest SUB p 0.388 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch SUB p 0.325 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase SUB p 0.668 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest SUB p 10.398 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest SUB p 0.328 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest SUB p 0.429 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig SUB p 0.399 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch SUB p 11.338 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest SUB p 0.371 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest SUB f 0.379 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest SUB p 0.461 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest SUB p 2.453 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest SUB p 1.363 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig SUB p 0.552 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest SUB p 0.331 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest SUB p 0.519 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin SUB p 0.409 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest SUB p 10.418 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest SUB p 20.419 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest SUB p 10.362 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest SUB p 0.375 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest SUB p 0.452 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest SUB p 0.45 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest SUB p 0.437 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest SUB p 0.488 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest SUB p 0.398 +defaultGroupPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest SUB p 11.384 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultTopicPerm.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultTopicPerm.tsv new file mode 100644 index 00000000..da952261 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_defaultTopicPerm.tsv @@ -0,0 +1,112 @@ +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest DENY p 0.293 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest DENY p 0.438 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig DENY p 0.546 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest DENY p 0.453 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest DENY p 0.36 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest DENY p 0.361 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest DENY p 0.45 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest DENY p 0.476 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest DENY p 0.569 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest DENY p 0.284 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm DENY p 0.302 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase DENY p 0.691 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest DENY p 0.416 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest DENY p 10.394 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest DENY p 0.342 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest DENY p 0.43 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test DENY p 0.476 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest DENY p 0.371 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest DENY p 20.421 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest DENY p 0.356 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest DENY p 0.435 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest DENY p 0.429 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest DENY p 0.448 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest DENY p 0.482 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig DENY p 0.389 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest DENY p 0.453 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest DENY p 0.436 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest DENY p 10.435 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest DENY p 0.308 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch DENY p 11.413 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest DENY f 0.491 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest DENY p 0.425 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest DENY p 0.455 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest DENY p 11.397 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest DENY p 0.377 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest DENY p 0.422 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest DENY p 10.426 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest DENY p 0.406 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest DENY p 0.337 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest DENY p 0.386 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest DENY p 0.377 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest DENY p 0.314 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase DENY p 0.663 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest DENY p 0.339 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest DENY p 0.375 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch DENY p 0.383 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest DENY p 1.484 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest DENY p 0.381 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase DENY p 0.686 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest DENY p 0.454 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest DENY p 2.384 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook DENY p 0.335 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest DENY p 0.445 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest DENY p 0.424 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin DENY p 0.349 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest DENY p 0.341 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest SUB p 2.38 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest SUB p 0.437 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest SUB p 0.339 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest SUB p 0.561 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm SUB p 0.316 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest SUB p 0.434 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest SUB p 0.407 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch SUB p 0.468 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test SUB p 0.405 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest SUB p 10.452 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest SUB p 0.345 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest SUB p 0.335 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase SUB p 0.712 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest SUB p 0.335 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook SUB p 0.299 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest SUB p 0.387 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin SUB p 0.345 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest SUB p 0.418 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest SUB p 0.465 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest SUB f 0.403 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest SUB p 0.411 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest SUB p 11.336 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest SUB p 0.413 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest SUB p 0.497 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest SUB p 0.462 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest SUB p 20.416 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch SUB p 11.393 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest SUB p 0.421 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest SUB p 0.444 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest SUB p 0.46 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig SUB p 0.381 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest SUB p 10.314 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest SUB p 0.367 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest SUB p 0.377 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest SUB p 0.318 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest SUB p 0.431 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest SUB p 0.482 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest SUB p 0.355 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest SUB p 0.298 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest SUB p 0.436 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest SUB p 0.377 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest SUB p 0.572 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase SUB p 0.692 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest SUB p 1.566 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig SUB p 0.551 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest SUB p 0.526 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest SUB p 0.412 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest SUB p 0.414 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest SUB p 0.358 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest SUB p 0.416 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest SUB p 0.425 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase SUB p 0.873 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest SUB p 0.439 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest SUB p 0.358 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest SUB p 10.42 +defaultTopicPerm org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest SUB p 0.394 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_globalWhiteAddrs.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_globalWhiteAddrs.tsv new file mode 100644 index 00000000..2708f53a --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_globalWhiteAddrs.tsv @@ -0,0 +1,10 @@ +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 10.10.103.* f 0.465 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 10.10.103.* f 0.47 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 10.10.103.* f 0.428 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 10.10.103.* p 0.517 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 10.10.103.* f 0.473 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 192.168.0.* f 0.376 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 192.168.0.* f 0.418 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 192.168.0.* p 0.449 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 192.168.0.* f 0.403 +globalWhiteAddrs org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 192.168.0.* f 0.4 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_groupPerms.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_groupPerms.tsv new file mode 100644 index 00000000..05600baf --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_groupPerms.tsv @@ -0,0 +1,112 @@ +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test groupA=DENY p 0.474 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest groupA=DENY p 10.56 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase groupA=DENY p 0.761 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest groupA=DENY p 0.421 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest groupA=DENY p 0.59 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest groupA=DENY p 10.443 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest groupA=DENY p 0.395 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest groupA=DENY p 0.431 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase groupA=DENY p 0.765 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest groupA=DENY p 0.542 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig groupA=DENY p 0.439 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest groupA=DENY p 0.467 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest groupA=DENY p 0.414 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch groupA=DENY p 0.291 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest groupA=DENY f 0.388 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest groupA=DENY p 1.474 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest groupA=DENY p 0.473 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest groupA=DENY p 0.454 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest groupA=DENY p 0.453 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest groupA=DENY p 0.436 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest groupA=DENY p 2.429 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest groupA=DENY p 0.463 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest groupA=DENY p 0.359 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest groupA=DENY p 0.555 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest groupA=DENY p 0.518 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook groupA=DENY p 0.362 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest groupA=DENY p 0.409 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest groupA=DENY p 0.455 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin groupA=DENY p 0.348 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest groupA=DENY p 0.342 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest groupA=DENY p 0.44 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig groupA=DENY p 0.665 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest groupA=DENY p 0.4 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest groupA=DENY p 0.484 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest groupA=DENY p 0.529 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest groupA=DENY p 20.488 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest groupA=DENY p 0.399 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch groupA=DENY p 11.447 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest groupA=DENY p 0.473 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest groupA=DENY p 0.421 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest groupA=DENY p 0.329 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest groupA=DENY p 0.397 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest groupA=DENY p 10.462 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest groupA=DENY p 0.359 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest groupA=DENY p 0.471 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest groupA=DENY p 11.507 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest groupA=DENY p 0.417 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest groupA=DENY p 0.383 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest groupA=DENY p 0.406 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest groupA=DENY p 0.417 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm groupA=DENY p 0.45 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest groupA=DENY p 0.503 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase groupA=DENY p 0.762 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest groupA=DENY p 0.474 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest groupA=DENY p 0.53 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest groupA=DENY p 0.368 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest groupB=SUB p 0.446 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest groupB=SUB p 11.398 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase groupB=SUB p 0.761 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest groupB=SUB p 0.417 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest groupB=SUB p 0.531 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest groupB=SUB p 0.426 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest groupB=SUB p 0.483 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook groupB=SUB p 0.437 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm groupB=SUB p 0.432 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest groupB=SUB p 0.434 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest groupB=SUB p 0.437 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest groupB=SUB p 0.341 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest groupB=SUB p 0.444 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase groupB=SUB p 0.814 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest groupB=SUB p 0.332 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest groupB=SUB p 0.616 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest groupB=SUB p 0.561 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest groupB=SUB p 0.444 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest groupB=SUB p 0.513 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest groupB=SUB p 0.471 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest groupB=SUB p 10.449 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin groupB=SUB p 0.368 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest groupB=SUB p 0.482 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest groupB=SUB p 2.452 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest groupB=SUB p 0.45 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest groupB=SUB f 0.385 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest groupB=SUB p 10.421 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest groupB=SUB p 0.36 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest groupB=SUB p 10.421 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest groupB=SUB p 0.363 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest groupB=SUB p 0.299 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest groupB=SUB p 0.371 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest groupB=SUB p 0.402 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest groupB=SUB p 0.449 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest groupB=SUB p 0.515 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch groupB=SUB p 11.47 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest groupB=SUB p 1.407 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest groupB=SUB p 0.391 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest groupB=SUB p 0.617 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig groupB=SUB p 0.632 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest groupB=SUB p 0.504 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest groupB=SUB p 0.495 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig groupB=SUB p 0.551 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase groupB=SUB p 0.711 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest groupB=SUB p 0.438 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest groupB=SUB p 0.516 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch groupB=SUB p 0.367 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest groupB=SUB p 0.387 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest groupB=SUB p 0.408 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest groupB=SUB p 0.441 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test groupB=SUB p 0.456 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest groupB=SUB p 0.37 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest groupB=SUB p 20.407 +groupPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest groupB=SUB p 0.69 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest groupB=SUB p 0.464 +groupPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest groupB=SUB p 0.436 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_secretKey.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_secretKey.tsv new file mode 100644 index 00000000..bd275d5c --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_secretKey.tsv @@ -0,0 +1,112 @@ +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest 6172839 p 0.508 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook 6172839 p 0.24 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest 6172839 p 0.476 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest 6172839 p 0.313 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest 6172839 p 0.342 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest 6172839 p 0.485 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest 6172839 p 0.427 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest 6172839 p 0.453 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest 6172839 p 0.37 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest 6172839 p 11.406 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test 6172839 p 0.487 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest 6172839 p 1.446 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 6172839 p 0.712 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest 6172839 p 0.393 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig 6172839 p 0.476 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest 6172839 p 0.393 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 6172839 p 0.679 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest 6172839 p 0.344 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest 6172839 p 0.423 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest 6172839 p 0.463 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest 6172839 p 0.332 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest 6172839 p 0.401 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest 6172839 p 10.425 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest 6172839 p 20.385 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch 6172839 p 11.46 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest 6172839 p 0.48 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest 6172839 p 0.395 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest 6172839 p 10.473 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest 6172839 p 0.403 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 6172839 p 0.454 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm 6172839 p 0.352 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest 6172839 p 0.421 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest 6172839 p 0.343 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest 6172839 p 0.279 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest 6172839 p 0.412 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest 6172839 p 0.297 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin 6172839 p 0.361 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest 6172839 p 2.395 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest 6172839 p 10.386 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 6172839 f 0.284 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest 6172839 p 0.419 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 6172839 p 0.657 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest 6172839 p 0.39 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest 6172839 p 0.429 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest 6172839 p 0.259 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest 6172839 p 0.287 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest 6172839 p 0.417 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest 6172839 p 0.395 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig 6172839 p 0.315 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest 6172839 p 0.376 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest 6172839 p 0.46 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest 6172839 p 0.373 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest 6172839 p 0.466 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch 6172839 p 0.364 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest 6172839 p 0.358 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest 6172839 p 0.471 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest 24691356 p 0.479 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest 24691356 p 0.337 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test 24691356 p 0.526 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest 24691356 p 0.349 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest 24691356 p 0.439 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest 24691356 p 0.431 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest 24691356 p 0.357 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest 24691356 p 0.353 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest 24691356 p 10.438 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest 24691356 p 0.45 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest 24691356 p 0.429 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest 24691356 p 10.432 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest 24691356 p 0.417 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch 24691356 p 0.265 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook 24691356 p 0.246 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest 24691356 p 2.419 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch 24691356 p 11.486 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest 24691356 p 0.379 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest 24691356 p 0.341 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest 24691356 p 0.394 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest 24691356 p 0.61 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest 24691356 p 0.337 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest 24691356 p 0.422 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 24691356 f 0.403 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 24691356 p 0.824 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin 24691356 p 0.346 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 24691356 p 0.436 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 24691356 p 0.711 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest 24691356 p 0.347 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest 24691356 p 0.399 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest 24691356 p 0.54 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest 24691356 p 11.424 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest 24691356 p 0.383 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest 24691356 p 0.305 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest 24691356 p 0.476 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig 24691356 p 0.418 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest 24691356 p 0.374 +secretKey org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 24691356 p 0.867 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest 24691356 p 0.412 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest 24691356 p 0.348 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest 24691356 p 20.363 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest 24691356 p 0.475 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest 24691356 p 0.314 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest 24691356 p 0.425 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest 24691356 p 0.418 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest 24691356 p 0.424 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm 24691356 p 0.311 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest 24691356 p 0.454 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest 24691356 p 10.415 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest 24691356 p 0.453 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest 24691356 p 0.4 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest 24691356 p 0.416 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest 24691356 p 0.434 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig 24691356 p 0.532 +secretKey org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest 24691356 p 0.313 +secretKey org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest 24691356 p 1.336 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_topicPerms.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_topicPerms.tsv new file mode 100644 index 00000000..a4da6d99 --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_topicPerms.tsv @@ -0,0 +1,112 @@ +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin topicA=DENY p 0.344 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest topicA=DENY p 0.416 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest topicA=DENY p 0.443 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest topicA=DENY p 0.322 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase topicA=DENY p 0.772 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest topicA=DENY p 0.407 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest topicA=DENY p 20.428 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest topicA=DENY p 0.379 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest topicA=DENY p 0.37 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest topicA=DENY p 0.292 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest topicA=DENY p 0.409 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest topicA=DENY p 10.384 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest topicA=DENY p 1.406 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest topicA=DENY p 0.429 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest topicA=DENY p 0.406 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest topicA=DENY p 0.324 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest topicA=DENY p 10.47 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest topicA=DENY p 0.493 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest topicA=DENY p 2.419 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest topicA=DENY p 0.47 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest topicA=DENY p 0.442 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest topicA=DENY p 0.334 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest topicA=DENY p 0.428 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch topicA=DENY p 0.313 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest topicA=DENY p 0.45 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest topicA=DENY p 0.439 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest topicA=DENY p 0.377 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest topicA=DENY p 10.482 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest topicA=DENY p 0.482 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch topicA=DENY p 11.523 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest topicA=DENY p 0.439 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm topicA=DENY p 0.315 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest topicA=DENY p 0.41 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest topicA=DENY p 0.424 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest topicA=DENY p 0.283 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest topicA=DENY p 0.542 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig topicA=DENY p 0.661 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig topicA=DENY p 0.449 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest topicA=DENY p 0.396 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test topicA=DENY p 0.449 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase topicA=DENY p 0.779 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest topicA=DENY p 0.534 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest topicA=DENY p 0.448 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest topicA=DENY p 0.365 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest topicA=DENY p 0.462 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase topicA=DENY p 0.655 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest topicA=DENY p 0.38 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook topicA=DENY p 0.352 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest topicA=DENY p 0.411 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest topicA=DENY f 0.418 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest topicA=DENY p 11.431 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest topicA=DENY p 0.392 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest topicA=DENY p 0.445 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest topicA=DENY p 0.478 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest topicA=DENY p 0.435 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest topicA=DENY p 0.455 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch topicC=SUB p 11.468 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest topicC=SUB p 0.482 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest topicC=SUB p 0.372 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest topicC=SUB p 0.606 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest topicC=SUB p 20.39 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest topicC=SUB p 0.348 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest topicC=SUB p 1.386 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest topicC=SUB p 0.567 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest topicC=SUB p 0.494 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook topicC=SUB p 0.367 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest topicC=SUB p 0.428 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin topicC=SUB p 0.36 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest topicC=SUB p 0.519 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest topicC=SUB p 0.439 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest topicC=SUB p 0.444 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test topicC=SUB p 0.395 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest topicC=SUB p 0.456 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch topicC=SUB p 0.389 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest topicC=SUB p 0.421 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest topicC=SUB f 0.608 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest topicC=SUB p 0.386 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest topicC=SUB p 0.497 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest topicC=SUB p 0.365 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest topicC=SUB p 0.404 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest topicC=SUB p 0.414 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest topicC=SUB p 0.487 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase topicC=SUB p 0.763 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest topicC=SUB p 0.406 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest topicC=SUB p 0.473 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase topicC=SUB p 0.851 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest topicC=SUB p 10.42 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest topicC=SUB p 0.612 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest topicC=SUB p 0.468 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest topicC=SUB p 0.427 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig topicC=SUB p 0.55 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest topicC=SUB p 0.448 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest topicC=SUB p 0.403 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest topicC=SUB p 0.417 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest topicC=SUB p 0.375 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest topicC=SUB p 0.454 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest topicC=SUB p 0.348 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest topicC=SUB p 0.453 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest topicC=SUB p 0.443 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest topicC=SUB p 0.358 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest topicC=SUB p 0.485 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest topicC=SUB p 0.492 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest topicC=SUB p 11.377 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest topicC=SUB p 0.434 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm topicC=SUB p 0.354 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase topicC=SUB p 0.775 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest topicC=SUB p 0.36 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest topicC=SUB p 10.504 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest topicC=SUB p 2.538 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest topicC=SUB p 10.433 +topicPerms org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest topicC=SUB p 0.503 +topicPerms org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig topicC=SUB p 0.376 diff --git a/core/generate_ctest/test_result/rocketmq-acl/test_result_whiteRemoteAddress.tsv b/core/generate_ctest/test_result/rocketmq-acl/test_result_whiteRemoteAddress.tsv new file mode 100644 index 00000000..199f93ff --- /dev/null +++ b/core/generate_ctest/test_result/rocketmq-acl/test_result_whiteRemoteAddress.tsv @@ -0,0 +1,112 @@ +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest 192.168.1.* p 0.416 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig 192.168.1.* p 0.431 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest 192.168.1.* p 2.451 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest 192.168.1.* p 0.376 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test 192.168.1.* p 0.621 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest 192.168.1.* p 0.461 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest 192.168.1.* p 0.46 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest 192.168.1.* p 0.362 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch 192.168.1.* p 0.498 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest 192.168.1.* p 0.305 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest 192.168.1.* p 0.637 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest 192.168.1.* p 1.59 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest 192.168.1.* p 0.483 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 192.168.1.* p 0.756 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 192.168.1.* p 0.457 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest 192.168.1.* p 0.331 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest 192.168.1.* p 0.469 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest 192.168.1.* p 0.387 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest 192.168.1.* p 0.385 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest 192.168.1.* p 0.29 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest 192.168.1.* p 0.572 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest 192.168.1.* p 0.496 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest 192.168.1.* p 0.394 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 192.168.1.* f 0.385 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch 192.168.1.* p 11.449 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 192.168.1.* p 0.741 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest 192.168.1.* p 0.322 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest 192.168.1.* p 0.508 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest 192.168.1.* p 0.342 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest 192.168.1.* p 10.647 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest 192.168.1.* p 0.348 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest 192.168.1.* p 0.423 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 192.168.1.* p 0.769 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest 192.168.1.* p 10.395 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest 192.168.1.* p 0.43 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest 192.168.1.* p 0.336 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig 192.168.1.* p 0.519 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm 192.168.1.* p 0.279 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest 192.168.1.* p 10.364 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin 192.168.1.* p 0.31 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest 192.168.1.* p 0.414 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest 192.168.1.* p 0.404 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest 192.168.1.* p 0.314 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest 192.168.1.* p 0.447 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest 192.168.1.* p 0.452 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest 192.168.1.* p 0.431 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest 192.168.1.* p 0.464 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest 192.168.1.* p 0.365 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest 192.168.1.* p 0.374 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest 192.168.1.* p 0.463 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest 192.168.1.* p 0.384 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest 192.168.1.* p 0.447 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook 192.168.1.* p 0.36 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest 192.168.1.* p 0.422 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest 192.168.1.* p 11.425 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest 192.168.1.* p 20.504 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest 192.168.0.* p 0.398 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest 192.168.0.* p 0.459 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest 192.168.0.* p 0.471 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest 192.168.0.* p 0.611 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest 192.168.0.* p 20.485 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest 192.168.0.* p 0.403 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest 192.168.0.* p 0.346 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest 192.168.0.* p 0.341 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch 192.168.0.* p 0.397 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest 192.168.0.* p 11.4 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase 192.168.0.* p 0.752 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest 192.168.0.* p 0.473 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig 192.168.0.* p 0.409 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest 192.168.0.* p 10.457 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase 192.168.0.* p 0.691 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest 192.168.0.* p 0.463 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest 192.168.0.* p 0.418 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest 192.168.0.* p 0.529 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest 192.168.0.* p 0.431 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest 192.168.0.* p 0.395 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest 192.168.0.* p 10.433 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest 192.168.0.* p 0.462 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test 192.168.0.* p 0.42 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest 192.168.0.* p 0.387 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest 192.168.0.* p 0.34 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest 192.168.0.* p 0.301 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest 192.168.0.* f 0.333 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest 192.168.0.* p 0.492 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest 192.168.0.* p 0.408 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest 192.168.0.* p 0.304 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest 192.168.0.* p 0.318 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig 192.168.0.* p 0.571 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest 192.168.0.* p 0.419 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest 192.168.0.* p 0.573 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest 192.168.0.* p 0.405 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook 192.168.0.* p 0.339 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest 192.168.0.* p 2.359 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest 192.168.0.* p 0.548 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase 192.168.0.* p 0.728 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest 192.168.0.* p 0.468 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest 192.168.0.* p 0.405 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest 192.168.0.* p 0.296 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest 192.168.0.* p 0.377 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest 192.168.0.* p 1.381 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest 192.168.0.* p 0.475 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm 192.168.0.* p 0.33 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest 192.168.0.* p 0.378 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest 192.168.0.* p 0.412 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest 192.168.0.* p 0.443 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin 192.168.0.* p 0.329 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch 192.168.0.* p 11.408 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest 192.168.0.* p 0.384 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest 192.168.0.* p 10.385 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest 192.168.0.* p 0.393 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest 192.168.0.* p 0.3 +whiteRemoteAddress org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest 192.168.0.* p 0.375 diff --git a/core/generate_value/value_generation.py b/core/generate_value/value_generation.py index 9a17b494..75f53cc5 100644 --- a/core/generate_value/value_generation.py +++ b/core/generate_value/value_generation.py @@ -108,6 +108,8 @@ def print_params(module): f = open(module + output, "w") if module == "zookeeper-server": assert len(params) == 32 + elif module == "rocketmq-acl": + assert len(params) == 9 else: assert len(params) >= 90 for param in params: diff --git a/core/identify_param/add_project.sh b/core/identify_param/add_project.sh index 63dd8f47..4f58d749 100755 --- a/core/identify_param/add_project.sh +++ b/core/identify_param/add_project.sh @@ -71,7 +71,8 @@ function main() { hbase) setup_hbase ;; zookeeper) setup_zookeeper ;; alluxio) setup_alluxio ;; - *) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper and alluxio." ;; + rocketmq) setup_alluxio ;; + *) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper and alluxio, rocketmq." ;; esac fi } diff --git a/core/identify_param/constant.py b/core/identify_param/constant.py index a0b2d067..c6a3ea15 100644 --- a/core/identify_param/constant.py +++ b/core/identify_param/constant.py @@ -7,12 +7,15 @@ CTEST_HBASE_DIR = os.path.join(APP_DIR, "ctest-hbase") CTEST_ZOOKEEPER_DIR = os.path.join(APP_DIR, "ctest-zookeeper") CTEST_ALLUXIO_DIR = os.path.join(APP_DIR, "ctest-alluxio") +CTEST_ROCKETMQ_DIR = os.path.join(APP_DIR, "ctest-rocketmq") MODULE_PATH = { "hadoop-common": CTEST_HADOOP_DIR, "hadoop-hdfs": CTEST_HADOOP_DIR, "hbase-server": CTEST_HBASE_DIR, - "alluxio-core": CTEST_ALLUXIO_DIR + "alluxio-core": CTEST_ALLUXIO_DIR, + "rocketmq-acl": CTEST_ROCKETMQ_DIR + } SRC_SUBDIR = { @@ -20,7 +23,8 @@ "hadoop-hdfs": "hadoop-hdfs-project/hadoop-hdfs", "hbase-server": "hbase-server", "zookeeper-server": "zookeeper-server", - "alluxio-core": "core" + "alluxio-core": "core", + "rocketmq-acl": "acl" } MVN_TEST_PATH = { @@ -29,6 +33,7 @@ "hbase-server": os.path.join(CTEST_HBASE_DIR, SRC_SUBDIR["hbase-server"]), "zookeeper-server": os.path.join(CTEST_ZOOKEEPER_DIR, SRC_SUBDIR["zookeeper-server"]), "alluxio-core": os.path.join(CTEST_ALLUXIO_DIR, SRC_SUBDIR["alluxio-core"]), + "rocketmq-acl": os.path.join(CTEST_ROCKETMQ_DIR, SRC_SUBDIR["rocketmq-acl"]), } LOCAL_CONF_PATH = { @@ -36,7 +41,9 @@ "hadoop-hdfs": "results/hadoop-hdfs/conf_params.txt", "hbase-server": "results/hbase-server/conf_params.txt", "zookeeper-server": "results/zookeeper-server/conf_params.txt", - "alluxio-core": "results/alluxio-core/conf_params.txt" + "alluxio-core": "results/alluxio-core/conf_params.txt", + "rocketmq-acl": "results/rocketmq-acl/conf_params.txt" + } SUREFIRE_SUBDIR = "target/surefire-reports/*" @@ -63,7 +70,10 @@ os.path.join(CTEST_ALLUXIO_DIR, "core/server/proxy", SUREFIRE_SUBDIR), os.path.join(CTEST_ALLUXIO_DIR, "core/server/worker", SUREFIRE_SUBDIR), os.path.join(CTEST_ALLUXIO_DIR, "core/server/master", SUREFIRE_SUBDIR) - ] + ], + "rocketmq-acl": [ + os.path.join(CTEST_ROCKETMQ_DIR, "acl", SUREFIRE_SUBDIR) + ], } LOCAL_SUREFIRE_SUFFIX = "surefire-reports/*" @@ -83,5 +93,8 @@ ], "alluxio-core": [ os.path.join("surefire-reports/alluxio-core", LOCAL_SUREFIRE_SUFFIX) + ], + "rocketmq-acl": [ + os.path.join("surefire-reports/rocketmq-acl", LOCAL_SUREFIRE_SUFFIX) ] } diff --git a/core/patch/rocketmq/interception.patch b/core/patch/rocketmq/interception.patch new file mode 100644 index 00000000..ddc51c50 --- /dev/null +++ b/core/patch/rocketmq/interception.patch @@ -0,0 +1,79 @@ +diff --git a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java +index 7dfcd61ec..d51876bd9 100644 +--- a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java ++++ b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java +@@ -84,10 +84,17 @@ public class PlainPermissionManager { + + private final PermissionChecker permissionChecker = new PlainPermissionChecker(); + ++ // ctest path ++ String ctest = MixAll.dealFilePath("src/test/resources/conf/ctest.yml"); ++ + public PlainPermissionManager() { + this.defaultAclDir = MixAll.dealFilePath(fileHome + File.separator + "conf" + File.separator + "acl"); ++ log.info("default acl dir: " + defaultAclDir); + this.defaultAclFile = MixAll.dealFilePath(fileHome + File.separator + System.getProperty("rocketmq.acl.plain.file", "conf/plain_acl.yml")); ++ log.info("default acl file: " + defaultAclFile); + load(); ++ // load(ctest); ++ load(ctest); + watch(); + } + +@@ -128,8 +135,15 @@ public class PlainPermissionManager { + + fileList = getAllAclFiles(defaultAclDir); + if (new File(defaultAclFile).exists() && !fileList.contains(defaultAclFile)) { ++ // log.warn("new file added : line 136 PlainPermissionManager.java"); + fileList.add(defaultAclFile); + } ++ // ctest debugging printout ++ if (new File(ctest).exists() && !fileList.contains(ctest)) { ++ // need to check whether enter this step ++ log.warn("Ctest file added : load() method PlainPermissionManager.java"); ++ fileList.add(ctest); ++ } + + for (int i = 0; i < fileList.size(); i++) { + final String currentFile = MixAll.dealFilePath(fileList.get(i)); +@@ -143,6 +157,7 @@ public class PlainPermissionManager { + + List<RemoteAddressStrategy> globalWhiteRemoteAddressStrategyList = new ArrayList<>(); + JSONArray globalWhiteRemoteAddressesList = plainAclConfData.getJSONArray("globalWhiteRemoteAddresses"); ++ // log.warn("ctest global white remote addr" + globalWhiteRemoteAddressesList.toString()); + if (globalWhiteRemoteAddressesList != null && !globalWhiteRemoteAddressesList.isEmpty()) { + for (int j = 0; j < globalWhiteRemoteAddressesList.size(); j++) { + globalWhiteRemoteAddressStrategyList.add(remoteAddressStrategyFactory. +@@ -211,7 +226,12 @@ public class PlainPermissionManager { + } + + public void load(String aclFilePath) { ++ + aclFilePath = MixAll.dealFilePath(aclFilePath); ++ // ctest addition ++ // if (!aclFilePath.equals(ctest)) { ++ // aclFilePath = ctest; ++ // } + Map<String, PlainAccessResource> plainAccessResourceMap = new HashMap<>(); + List<RemoteAddressStrategy> globalWhiteRemoteAddressStrategy = new ArrayList<>(); + +@@ -268,6 +288,11 @@ public class PlainPermissionManager { + if (aclFilePath.equals(defaultAclFile)) { + this.dataVersion.assignNewOne(dataVersion); + } ++ // check if the target file is ctest ++ // if not, load the ctest file ++ if (!aclFilePath.equals(ctest)) { ++ load(ctest); ++ } + } + + +@@ -545,6 +570,7 @@ public class PlainPermissionManager { + plainAccessConfig.setSecretKey(plainAccessConfigs.get(j).getSecretKey()); + plainAccessConfig.setAdmin(plainAccessConfigs.get(j).isAdmin()); + plainAccessConfig.setTopicPerms(plainAccessConfigs.get(j).getTopicPerms()); ++ log.info("use the set perm here"); + plainAccessConfig.setWhiteRemoteAddress(plainAccessConfigs.get(j).getWhiteRemoteAddress()); + configs.add(plainAccessConfig); + } diff --git a/core/patch/rocketmq/logging.patch b/core/patch/rocketmq/logging.patch new file mode 100644 index 00000000..b01dbb89 --- /dev/null +++ b/core/patch/rocketmq/logging.patch @@ -0,0 +1,168 @@ +diff --git a/common/src/main/java/org/apache/rocketmq/common/PlainAccessConfig.java b/common/src/main/java/org/apache/rocketmq/common/PlainAccessConfig.java +index b9e7c21a7..f313ec9aa 100644 +--- a/common/src/main/java/org/apache/rocketmq/common/PlainAccessConfig.java ++++ b/common/src/main/java/org/apache/rocketmq/common/PlainAccessConfig.java +@@ -15,10 +15,16 @@ + * limitations under the License. + */ + package org.apache.rocketmq.common; ++// ADDED ++import org.apache.rocketmq.logging.InternalLogger; ++import org.apache.rocketmq.logging.InternalLoggerFactory; ++import org.apache.rocketmq.common.constant.LoggerName; + + import java.util.List; + + public class PlainAccessConfig { ++ // added ++ private static final InternalLogger log = InternalLoggerFactory.getLogger(LoggerName.COMMON_LOGGER_NAME); + + private String accessKey; + +@@ -36,67 +42,107 @@ public class PlainAccessConfig { + + private List<String> groupPerms; + ++ // ctest addition ++ private String getStackTrace() { ++ String stacktrace = " "; ++ for (StackTraceElement element : Thread.currentThread().getStackTrace()) { ++ stacktrace = stacktrace.concat(element.getClassName() + "\t"); ++ } ++ return stacktrace; ++ } ++ + public String getAccessKey() { ++ log.warn("[CTEST][GET-PARAM] " + "accessKey"); //CTEST ++ + return accessKey; + } + + public void setAccessKey(String accessKey) { ++ log.warn("[CTEST][SET-PARAM] " + "accessKey" + getStackTrace()); //CTEST ++ + this.accessKey = accessKey; + } + + public String getSecretKey() { ++ log.warn("[CTEST][GET-PARAM] " + "secretKey"); //CTEST ++ + return secretKey; + } + + public void setSecretKey(String secretKey) { ++ log.warn("[CTEST][SET-PARAM] " + "secretKey" + getStackTrace()); //CTEST ++ + this.secretKey = secretKey; + } + + public String getWhiteRemoteAddress() { ++ log.warn("[CTEST][GET-PARAM] " + "whiteRemoteAddress"); //CTEST ++ + return whiteRemoteAddress; + } + + public void setWhiteRemoteAddress(String whiteRemoteAddress) { ++ log.warn("[CTEST][SET-PARAM] " + "whiteRemoteAddress" + getStackTrace()); //CTEST ++ + this.whiteRemoteAddress = whiteRemoteAddress; + } + + public boolean isAdmin() { ++ log.warn("[CTEST][GET-PARAM] " + "admin"); //CTEST ++ + return admin; + } + + public void setAdmin(boolean admin) { ++ log.warn("[CTEST][SET-PARAM] " + "admin" + getStackTrace()); //CTEST ++ + this.admin = admin; + } + + public String getDefaultTopicPerm() { ++ log.warn("[CTEST][GET-PARAM] " + "defaultTopicPerm"); //CTEST ++ + return defaultTopicPerm; + } + + public void setDefaultTopicPerm(String defaultTopicPerm) { ++ log.warn("[CTEST][SET-PARAM] " + "defaultTopicPerm" + getStackTrace()); //CTEST ++ + this.defaultTopicPerm = defaultTopicPerm; + } + + public String getDefaultGroupPerm() { ++ log.warn("[CTEST][GET-PARAM] " + "defaultGroupPerm"); //CTEST ++ // log.warn("default group perm is:" + defaultGroupPerm); + return defaultGroupPerm; + } + + public void setDefaultGroupPerm(String defaultGroupPerm) { ++ log.warn("[CTEST][SET-PARAM] " + "defaultGroupPerm" + getStackTrace()); //CTEST + this.defaultGroupPerm = defaultGroupPerm; ++ + } + + public List<String> getTopicPerms() { ++ log.warn("[CTEST][GET-PARAM] " + "topicPerms"); //CTEST + return topicPerms; + } + + public void setTopicPerms(List<String> topicPerms) { ++ log.warn("[CTEST][SET-PARAM] " + "topicPerms" + getStackTrace()); //CTEST ++ + this.topicPerms = topicPerms; + } + + public List<String> getGroupPerms() { ++ log.warn("[CTEST][GET-PARAM] " + "groupPerms"); //CTEST ++ + return groupPerms; + } + + public void setGroupPerms(List<String> groupPerms) { ++ log.warn("[CTEST][SET-PARAM] " + "groupPerms" + getStackTrace()); //CTEST ++ + this.groupPerms = groupPerms; + } +diff --git a/pom.xml b/pom.xml +index 7299bff7a..e8e342bab 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -155,7 +155,7 @@ + <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version> + <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version> + <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version> +- <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> ++ <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version> + <sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version> + <spotbugs-plugin.version>4.2.2</spotbugs-plugin.version> + <maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version> +@@ -374,11 +374,13 @@ + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> +- <version>${maven-surefire-plugin.version}</version> ++ <version>3.0.0-M4</version> + <configuration> + <skipAfterFailureCount>1</skipAfterFailureCount> + <forkCount>1</forkCount> + <reuseForks>true</reuseForks> ++ <!-- <reportFormat>plain</reportFormat> --> ++ <redirectTestOutputToFile>true</redirectTestOutputToFile> + <excludes> + <exclude>**/IT*.java</exclude> + </excludes> +@@ -624,6 +626,11 @@ + <artifactId>slf4j-api</artifactId> + <version>${slf4j.version}</version> + </dependency> ++ <!-- <dependency> ++ <groupId>org.slf4j</groupId> ++ <artifactId>slf4j-simple</artifactId> ++ <version>${slf4j.version}</version> ++ </dependency> --> + <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-classic</artifactId> \ No newline at end of file diff --git a/core/setup_ubuntu.sh b/core/setup_ubuntu.sh index 4defe7fe..f2bebbad 100755 --- a/core/setup_ubuntu.sh +++ b/core/setup_ubuntu.sh @@ -1,7 +1,7 @@ #!/bin/bash # set up env for Linux ubuntu -sudo apt-get install openjdk-8-jdk +sudo apt-get install openjdk-11-jdk sudo apt-get install maven sudo apt-get install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev From c8f2f9b76f72e3f2c6ea14b91103d1cd6e1d8853 Mon Sep 17 00:00:00 2001 From: siruiw4 <siruiw4@fa22-cs527-064.cs.illinois.edu> Date: Sun, 11 Dec 2022 14:25:33 -0600 Subject: [PATCH 4/5] add parse_conf_file_yml in parse_input --- core/run_ctest/main.py | 3 + core/run_ctest/parse_input.py | 34 ++++++++++- core/run_ctest/program_input.py | 2 +- .../missing_test_ctests-rocketmq-acl.list | 0 .../rocketmq-acl/missing_test_plain_acl.list | 1 + .../missing_test_rocketmq-acl-default.list | 0 .../missing_test_rocketmq-test.list | 0 .../rocketmq-acl/missing_test_test.list | 1 + .../test_result_ctests-rocketmq-acl.tsv | 0 .../rocketmq-acl/test_result_plain_acl.tsv | 56 +++++++++++++++++++ .../test_result_rocketmq-acl-default.tsv | 0 .../test_result_rocketmq-test.tsv | 0 .../rocketmq-acl/test_result_test.tsv | 56 +++++++++++++++++++ core/run_ctest/sample-rocketmq/test.yml | 17 ++++++ 14 files changed, 167 insertions(+), 3 deletions(-) create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_ctests-rocketmq-acl.list create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_plain_acl.list create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-acl-default.list create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-test.list create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_test.list create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/test_result_ctests-rocketmq-acl.tsv create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/test_result_plain_acl.tsv create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-acl-default.tsv create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-test.tsv create mode 100644 core/run_ctest/run_ctest_result/rocketmq-acl/test_result_test.tsv create mode 100644 core/run_ctest/sample-rocketmq/test.yml diff --git a/core/run_ctest/main.py b/core/run_ctest/main.py index b8d332f8..24621b38 100644 --- a/core/run_ctest/main.py +++ b/core/run_ctest/main.py @@ -15,11 +15,14 @@ def main(): + print('../default_configs/rocketmq-acl-default.tsv') print(">>>>[ctest_core] running project {}".format(project)) s = time.time() os.makedirs(os.path.join(RUNCTEST_TR_DIR, project), exist_ok=True) if run_mode == "run_ctest": + print(sorted(glob.glob(os.path.join(p_input["conf_file_dir"], "*")))) for conf_file_path in sorted(glob.glob(os.path.join(p_input["conf_file_dir"], "*"))): + print(">>>>[ctest_core] input conf file: {}".format(conf_file_path)) test_input = extract_conf_diff(conf_file_path) test_conf_file(conf_file_path, test_input) diff --git a/core/run_ctest/parse_input.py b/core/run_ctest/parse_input.py index 5b4bedbf..26b721bd 100644 --- a/core/run_ctest/parse_input.py +++ b/core/run_ctest/parse_input.py @@ -43,6 +43,8 @@ def parse_conf_file(path): return parse_conf_file_xml(path) else: # parsing for alluxio and zookeeper conf file format + if project in [ROCKETMQ]: + return parse_conf_file_yml(path) if "no default configuration file" in path: return {} return parse_conf_file_properties(path) @@ -71,16 +73,44 @@ def parse_conf_file_xml(path): conf_map[cur_key] = cur_value return conf_map +# ctest +def parse_conf_file_xml(path): + deprecate_conf = load_deprecate_config_map() + conf_map = {} + fd = ET.parse(path) + for kv in fd.getroot(): + # get key value pair + cur_value = None + cur_key = None + for prop in kv: + if prop.tag == "name": + cur_key = re.sub('\n|\t', '', re.sub(' +', ' ', prop.text)) + elif prop.tag == "value" and cur_key: + cur_value = prop.text + else: + pass + if cur_key not in conf_map: + if cur_key in deprecate_conf: + print(">>>>[ctest_core] {} in your input conf file is deprecated in the project,".format(cur_key) + + " replaced with {}".format(deprecate_conf[cur_key])) + cur_key = deprecate_conf[cur_key] + conf_map[cur_key] = cur_value + return conf_map -def parse_conf_file_properties(path): +def parse_conf_file_yml(path): deprecate_conf = load_deprecate_config_map() conf_map = {} for line in open(path): if line.startswith("#"): continue - seg = line.strip("\n").split("=") + seg = line.strip("\n").split(": ") + if len(seg) == 2: cur_key, cur_value = [x.strip() for x in seg] + # print(cur_key+','+cur_value) + if '-' in cur_key: + cur_key.replace('-','') + cur_key.strip() if cur_key not in conf_map: if cur_key in deprecate_conf: print(">>>>[ctest_core] {} in your input conf file is deprecated in the project,".format(cur_key) diff --git a/core/run_ctest/program_input.py b/core/run_ctest/program_input.py index a317f51c..95134f5a 100644 --- a/core/run_ctest/program_input.py +++ b/core/run_ctest/program_input.py @@ -8,7 +8,7 @@ # path to param -> tests json mapping "mapping_path": "../../data/ctest_mapping/opensource-rocketmq-acl.json", # string # input directory hosting configuration files to be test, target-project-format specific - "conf_file_dir": "../default_configs/rocketmq-acl-default.tsv", # string + "conf_file_dir": "sample-rocketmq", # string # display the terminal output live, without saving any results "display_mode": False, # bool # whether to use mvn test or mvn surefire:test diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_ctests-rocketmq-acl.list b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_ctests-rocketmq-acl.list new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_plain_acl.list b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_plain_acl.list new file mode 100644 index 00000000..9fcfe072 --- /dev/null +++ b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_plain_acl.list @@ -0,0 +1 @@ +>>>>[ctest_core] missing ctest for plain_acl diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-acl-default.list b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-acl-default.list new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-test.list b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_rocketmq-test.list new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_test.list b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_test.list new file mode 100644 index 00000000..a7c0398f --- /dev/null +++ b/core/run_ctest/run_ctest_result/rocketmq-acl/missing_test_test.list @@ -0,0 +1 @@ +>>>>[ctest_core] missing ctest for test diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_ctests-rocketmq-acl.tsv b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_ctests-rocketmq-acl.tsv new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_plain_acl.tsv b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_plain_acl.tsv new file mode 100644 index 00000000..1f9fdb1b --- /dev/null +++ b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_plain_acl.tsv @@ -0,0 +1,56 @@ +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig p 0.099 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest p 0.011 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest p 0.006 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest p 2.035 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest p 0.017 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest f 0.018 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig p 0.013 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest p 0.008 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest p 0.012 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest p 0.006 +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook p 0.014 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest p 0.001 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch p 11.049 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm p 0.007 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest p 0.01 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest p 0.015 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest p 0.008 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest p 0.008 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest p 0.03 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest p 0.038 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest p 0.044 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest p 0.005 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest p 0.037 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest p 0.09 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest p 0.012 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest p 0.032 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest p 0.011 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest p 20.026 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest p 10.029 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest p 10.026 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest p 0.008 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest p 0.38 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin p 0.037 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest p 0.012 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest p 0.021 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest p 0.051 +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest p 0.016 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest p 0.015 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test p 0.006 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest p 0.01 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest p 0.006 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest p 0.029 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch p 0.006 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest p 0.009 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest p 0 diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-acl-default.tsv b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-acl-default.tsv new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-test.tsv b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_rocketmq-test.tsv new file mode 100644 index 00000000..e69de29b diff --git a/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_test.tsv b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_test.tsv new file mode 100644 index 00000000..b838c89e --- /dev/null +++ b/core/run_ctest/run_ctest_result/rocketmq-acl/test_result_test.tsv @@ -0,0 +1,56 @@ +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#contentTest p 0.013 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateGlobalWhiteAddrsConfigTest p 0.038 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#isWatchStartTest p 0.015 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordThanTest p 0.023 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#loadTest p 0.025 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessDefaultAclYamlConfigTest p 10.038 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountNullTest p 0.006 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addAccessAclYamlConfigTest p 10.023 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageByKeyTest p 0.015 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAllAclConfigTest f 0.012 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUpdateConsumerOffSetTest p 0.009 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateHeartBeatTest p 0.034 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPerm p 0.016 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateNullAccessKeyTest p 0.002 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetConsumerListByGroupTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2Test p 0.003 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAnotherAclYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAnotherAclYamlConfigTest p 2.039 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateConsumeMessageBackTest p 0.016 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#getAccessAclYamlConfigTest p 0.009 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyWhiteRemoteAddressTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAclConfigFileVersionTest p 0.013 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testUpdateSpecifiedAclFileGlobalWhiteAddrsConfig p 0.01 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#cleanAuthenticationInfoTest p 0.015 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#testWatch p 11.087 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageTest p 0.013 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageV2ToRetryTopicTest p 0.015 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateGetAllTopicConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkErrorPermDefaultValueNotMatch p 0.007 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#deleteAccessAclToEmptyTest p 0.007 +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testOnlyAclFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateSendMessageToRetryTopicTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateQueryMessageTest p 0.016 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validatePullMessageTest p 0.001 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#deleteAccessConfigTest p 0.033 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateUnRegisterClientTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateTest p 0.003 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessAclYamlConfigTest p 20.04 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#multiFilePathTest p 0.347 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#accountThanTest p 0.013 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#updateAccessConfigTest p 0.031 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#addYamlConfigTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateAccessConfigEmptyPermListTest p 0.042 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#testValidateAfterUpdateAccessConfig p 0.189 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#checkPermAdmin p 0.035 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#getAllAclFilesTest p 0.119 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#buildPlainAccessResourceTest p 0.014 +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testBothAclFileAndFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#updateGlobalWhiteRemoteAddressesTest p 0.036 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#passWordtNullTest p 0.017 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateErrorSecretKeyTest p 0 +org.apache.rocketmq.acl.plain.PlainAccessControlFlowTest#testEmptyAclFolderCase p 0 +org.apache.rocketmq.acl.plain.PlainPermissionManagerTest#createAclAccessConfigMapTest p 0.015 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#createAndUpdateAccessAclNullSkExceptionTest p 0.038 +org.apache.rocketmq.acl.plain.PlainAccessValidatorTest#validateForAdminCommandWithOutAclRPCHook p 0.012 diff --git a/core/run_ctest/sample-rocketmq/test.yml b/core/run_ctest/sample-rocketmq/test.yml new file mode 100644 index 00000000..39f46248 --- /dev/null +++ b/core/run_ctest/sample-rocketmq/test.yml @@ -0,0 +1,17 @@ +globalWhiteRemoteAddresses: 10.10.103.* + accessKey: RocketMQ + secretKey: 12345678 + whiteRemoteAddress: 192.168.0.* + admin: false + defaultTopicPerm: DENY + defaultGroupPerm: SUB + topicPerms: topicA=DENY + groupPerms: groupA=DENY + accessKey: rocketmq2 + secretKey: 12345678 + whiteRemoteAddress: 192.168.1.* + admin: true + +dataVersion: +- counter: 2 + timestamp: 1670715303753 From 0d9b97e2235cde06f43051203411cea35e335aee Mon Sep 17 00:00:00 2001 From: siruiw4 <siruiw4@fa22-cs527-064.cs.illinois.edu> Date: Sun, 11 Dec 2022 14:32:08 -0600 Subject: [PATCH 5/5] submission ver --- core/run_ctest/main.py | 2 +- core/run_ctest/parse_input.py | 39 ++++++++++++++--------------------- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/core/run_ctest/main.py b/core/run_ctest/main.py index 24621b38..bda09a7f 100644 --- a/core/run_ctest/main.py +++ b/core/run_ctest/main.py @@ -20,7 +20,7 @@ def main(): s = time.time() os.makedirs(os.path.join(RUNCTEST_TR_DIR, project), exist_ok=True) if run_mode == "run_ctest": - print(sorted(glob.glob(os.path.join(p_input["conf_file_dir"], "*")))) + # print(sorted(glob.glob(os.path.join(p_input["conf_file_dir"], "*")))) for conf_file_path in sorted(glob.glob(os.path.join(p_input["conf_file_dir"], "*"))): print(">>>>[ctest_core] input conf file: {}".format(conf_file_path)) diff --git a/core/run_ctest/parse_input.py b/core/run_ctest/parse_input.py index 26b721bd..636bc4af 100644 --- a/core/run_ctest/parse_input.py +++ b/core/run_ctest/parse_input.py @@ -72,31 +72,25 @@ def parse_conf_file_xml(path): cur_key = deprecate_conf[cur_key] conf_map[cur_key] = cur_value return conf_map - -# ctest -def parse_conf_file_xml(path): + +def parse_conf_file_properties(path): deprecate_conf = load_deprecate_config_map() conf_map = {} - fd = ET.parse(path) - for kv in fd.getroot(): - # get key value pair - cur_value = None - cur_key = None - for prop in kv: - if prop.tag == "name": - cur_key = re.sub('\n|\t', '', re.sub(' +', ' ', prop.text)) - elif prop.tag == "value" and cur_key: - cur_value = prop.text - else: - pass - if cur_key not in conf_map: - if cur_key in deprecate_conf: - print(">>>>[ctest_core] {} in your input conf file is deprecated in the project,".format(cur_key) - + " replaced with {}".format(deprecate_conf[cur_key])) - cur_key = deprecate_conf[cur_key] - conf_map[cur_key] = cur_value - return conf_map + for line in open(path): + if line.startswith("#"): + continue + seg = line.strip("\n").split("=") + if len(seg) == 2: + cur_key, cur_value = [x.strip() for x in seg] + if cur_key not in conf_map: + if cur_key in deprecate_conf: + print(">>>>[ctest_core] {} in your input conf file is deprecated in the project,".format(cur_key) + + " replaced with {}".format(deprecate_conf[cur_key])) + cur_key = deprecate_conf[cur_key] + conf_map[cur_key] = cur_value + return conf_map +# ctest def parse_conf_file_yml(path): deprecate_conf = load_deprecate_config_map() conf_map = {} @@ -104,7 +98,6 @@ def parse_conf_file_yml(path): if line.startswith("#"): continue seg = line.strip("\n").split(": ") - if len(seg) == 2: cur_key, cur_value = [x.strip() for x in seg] # print(cur_key+','+cur_value)