CN109902028A - Automated testing method, device, equipment and the storage medium of ACL characteristic - Google Patents

Automated testing method, device, equipment and the storage medium of ACL characteristic Download PDF

Info

Publication number
CN109902028A
CN109902028A CN201910290170.0A CN201910290170A CN109902028A CN 109902028 A CN109902028 A CN 109902028A CN 201910290170 A CN201910290170 A CN 201910290170A CN 109902028 A CN109902028 A CN 109902028A
Authority
CN
China
Prior art keywords
test
acl
characteristic
cluster
permission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201910290170.0A
Other languages
Chinese (zh)
Inventor
赵万里
徐晓阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910290170.0A priority Critical patent/CN109902028A/en
Publication of CN109902028A publication Critical patent/CN109902028A/en
Withdrawn legal-status Critical Current

Links

Abstract

The invention discloses a kind of automated testing methods of ACL characteristic, comprising: test cluster is created out of storage pool;Test cluster will be sent to the test script of ACL characteristic test, so that test cluster creation has the share directory of ACL permission, and the access of access operation is executed to share directory as a result, generating test log according to destination node.It can be seen that, in the present embodiment, when testing ACL characteristic, test cluster can be created according to test request, and to the test script of collection pocket transmission test ACL characteristic, after test cluster receives the test script, just creation has the share directory of ACL permission, and access operation is executed to share directory, test log is generated according to the access result, to realize the automatic test to ACL characteristic;The invention also discloses automatic test device, equipment and the storage mediums of a kind of ACL characteristic, are equally able to achieve above-mentioned technical effect.

Description

Automated testing method, device, equipment and the storage medium of ACL characteristic
Technical field
The present invention relates to automatization testing technique fields, more specifically to a kind of automatic test side of ACL characteristic Method, device, equipment and storage medium.
Background technique
ACL (Access Control List) characteristic is share directory permission in a kind of storage in mass storage system (MSS) Certain read-write can be arranged to share directory and the permissions such as delete by setting, user, such as read-only, the latter it is readable it is writeable can not delete, The control that will be arranged by these ACL when client accesses these catalogues.Mass memory management system is that a kind of distribution is deposited Storage system can meet cloud computing, big data, based on software definition and hardware reconstruction theory, for file storage, object storage, block Storage provides unified software definition solution.ACL characteristic is an important characteristic in mass memory management system Technology, the characteristic technology directly affect the reliability of system.
Therefore, how ACL characteristic is tested, is those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the present invention is to provide automated testing method, device, equipment and the storage medium of a kind of ACL characteristic, Automatic test is carried out to ACL characteristic to realize.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of automated testing method of ACL characteristic, comprising:
According to the test request to ACL characteristic test, test cluster is created out of storage pool;
The test script of ACL characteristic corresponding with the test request is sent to the test cluster, so that the survey The share directory that cluster creation has ACL permission is tried, and executes the visit of access operation to the share directory according to destination node It asks as a result, generating test log;
Receive the test log that the test cluster is sent.
Wherein, after the test log for receiving the test cluster transmission, further includes:
Unused state is set by the state of node each in the test cluster.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, after the test log for receiving the test cluster transmission, further includes:
Parse the test log, determine in the ACL permission of the share directory, have execute permission access operation and Without the access operation for executing permission;
Judge to the access result of the share directory whether are as follows: there is the access operation for executing permission to access successfully, no Failure is accessed with the access operation for executing permission;
If so, determining ACL characteristic test success;If it is not, then determining that ACL characteristic test fails.
A kind of automatic test device of ACL characteristic, comprising:
Test cluster creation module, for creating test cluster out of storage pool according to the test request to ACL characteristic;
Test script sending module, for the test script of ACL characteristic corresponding with the test request to be sent to institute Test cluster is stated, so that test cluster creation has the share directory of ACL permission, and according to destination node to described shared Catalogue executes the access of access operation as a result, generating test log;
Test log receiving module, the test log sent for receiving the test cluster.
Wherein, this programme further include:
Node initializing module, after receiving the test log that the test cluster is sent, by the test set The state of each node is set as unused state in group.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, this programme further include:
Log analyzing module determines in the ACL permission of the share directory have and hold for parsing the test log The access operation of row permission and without execute permission access operation;
Judgment module, for judge to the access result of the share directory whether are as follows: there is the access behaviour for executing permission Work accesses successfully, accesses failure without the access operation for executing permission;If so, determining ACL characteristic test success;If it is not, Then determine that ACL characteristic test fails.
A kind of automated test device of ACL characteristic, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of above-mentioned automated testing method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described It realizes when computer program is executed by processor such as the step of above-mentioned automated testing method.
By above scheme it is found that a kind of automated testing method of ACL characteristic provided in an embodiment of the present invention, comprising: According to the test request to ACL characteristic test, test cluster is created out of storage pool;It will ACL corresponding with the test request The test script of characteristic is sent to the test cluster, so that test cluster creation has the share directory of ACL permission, and The access of access operation is executed to the share directory as a result, generating test log according to destination node;Receive the test set The test log of pocket transmission.
As it can be seen that in the present embodiment, when testing ACL characteristic, understand according to test request creation test cluster, and to The test script of ACL characteristic is tested in the collection pocket transmission, and after test cluster receives the test script, just creation has ACL permission Share directory, and access operation is executed to share directory, test log is generated according to the access result, to realize pair The automatic test of ACL characteristic;
The invention also discloses automatic test device, equipment and the storage mediums of a kind of ACL characteristic, are equally able to achieve State technical effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of automated testing method flow diagram of ACL characteristic disclosed by the embodiments of the present invention;
Fig. 2 is a kind of testing process schematic diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of automatic test device structural schematic diagram of ACL characteristic disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses automated testing method, device, equipment and the storage medium of a kind of ACL characteristic, with It realizes and automatic test is carried out to ACL characteristic.
Referring to Fig. 1, a kind of automated testing method of ACL characteristic provided in an embodiment of the present invention, comprising:
S101, basis create test cluster to the test request of ACL characteristic test out of storage pool;
Specifically, the executing subject of automated testing method described in the present embodiment is management node, in the present embodiment, The system for executing automated testing method includes management node and memory node, using memory node as test lead, and creates survey Try the memory resource pool of node, it should be noted that since this programme needs to integrate several memory nodes, set up one Storage pool, when in order to guarantee to have reading and writing data or service operations, each node can be timely responded to, therefore this programme needs are set Set each node in storage pool access state be SSH without cryptographic acess state, can make in this way between different nodes into Access of the row without password.In the present solution, being tested using management node as server-side by the management node United Dispatching of server-side End node sets up automatic test platform, and executes automatic test.
It should be noted that creating resource pool monitoring module in management node in this programme, resource pool is mainly monitored Internal segment three-point state information and scheduling configuration.The node status information are as follows: idle state and use state, if the node by Calling is carrying out test, then when creating test cluster, just without the concern for the node;Scheduling configuration refers to: when having When node state is the enabled node of idle state, these idle nodal informations are obtained by scheduling configuration, and return to clothes The management node at business end, in case creation test cluster.
Further, after the management node in this programme receives test request, test object corresponding to the request is analyzed, The test object is ACL characteristic in this programme, needs to create the test module of ACL characteristic according to the test request.The test After module creation, automation task can be submitted in the management node of server-side, which is to test the task of ACL characteristic, That is test module specifically includes that scheduler task configuration module, test cluster configuration module, script bank configuration module.
Due in the present solution, configuration file corresponding from different test objects is stored, in the present solution, needing It is provided with to set up in the configuration file and survey to determine configuration file corresponding with test object by scheduler task configuration module Try configuration parameter used in cluster;After configuration file determines, need through test cluster configuration module according to the configuration file, The idle state of storage pool interior nodes specifically can be checked by monitoring module in test lead deployment test cluster, dispatched Idle memory node sets up test cluster;Script bank configuration module is mainly used to configure the test script to ACL characteristic test, And the test cluster that the test script is uploaded to establishment is executed into automatic test.
S102, the test script of ACL characteristic corresponding with the test request is sent to the test cluster, so that institute The share directory that test cluster creation has ACL permission is stated, and access operation is executed to the share directory according to destination node Access as a result, generate test log;
By S101 as can be seen that when testing ACL characteristic, test cluster is created according to test request, and will The test script of test ACL characteristic is uploaded to test cluster, for the test cluster, has a host node, therefore manage Reason node only needs for test script to be uploaded to host node execution.After host node receives the test script, just basis The test script tests other nodes in cluster, such as: host node creation has the share directory of ACL permission Afterwards, the control by these ACL permissions is needed when destination node accesses the catalogue, such as: it can only read, the read-write power of cannot deleting etc. Limit, when this is with ACL characteristic is tested, destination node needs execute different access operations to the share directory, thus To the corresponding access of different access operations as a result, and test log is generated according to access result, to realize to ACL characteristic Test.
S103, the test log that the test cluster is sent is received.
Specifically, after management node receives the test log that test cluster is sent, test cluster can have been represented ACL characteristic test has been executed, can also include: that will survey after management node receives the test log that test cluster is sent therefore The state of each node is set as unused state in examination cluster.
It is understood that the test assignment that management node receives not only includes the task to ACL characteristic test, also It may include other tasks, therefore, for the ease of the scheduling of multitask queue, it is ensured that being not carried out for task has the free time that can be called Node needs the nodal information of the test cluster at initialization test end after each test assignment, also will the test set Node initializing in group is idle state, to facilitate the execution of follow-up work.Also, the test day generated due to test cluster After will uploads to the correspondence catalogue of server-side management node, initialization step is just executed, therefore, test log not tested person end segment The influence of point initialization.
It referring to fig. 2, is that a kind of testing process schematic diagram provided in an embodiment of the present invention receives as seen in Figure 2 After test request, test assignment corresponding with the request will create, and submit, then set up according to the task call idle node Automatic test cluster environment then constructs test cluster if there is idle node, if it is not, waiting;In building test set When group, judge whether to construct successfully, if building failure, judges whether there is satisfactory idle node, continue to construct;Such as Fruit constructs successfully, then executes automatic test, when executing automatic test, passes through the entrance foot of starting automatic test first This, obtains test script by the entrance script and executes, record log information;After the completion of script execution, test day is uploaded Will is to management node, and each memory node in initialization test cluster, empties environment for node and is set to idle state.
It in summary it can be seen, the test frame of this programme is to be accessed based on ssh remote protocol, to realize to test lead The control of node accesses, and in turn, builds cluster according to the test request automatic deployment, executes automatic test task, and feed back Automatic test result.Multiple automatic dispatching tasks can be carried out simultaneously according to test lead node number simultaneously concurrently to execute.? That is this automated test frame that this programme proposes, realizes the automatic test to ACL characteristic, also, pass through clothes Monitoring module and the task module scheduling for end management node of being engaged in can carry out continual automation for a long time to memory node and survey Examination, is not limited solely to ACL characteristic automatic test, can effectively promote automatic test dynamics.
Based on the above embodiment, in the present embodiment, after the test log for receiving the test cluster transmission, also Include:
Parse the test log, determine in the ACL permission of the share directory, have execute permission access operation and Without the access operation for executing permission;
Judge to the access result of the share directory whether are as follows: there is the access operation for executing permission to access successfully, no Failure is accessed with the access operation for executing permission;
If so, determining ACL characteristic test success;If it is not, then determining that ACL characteristic test fails.
Specifically, in the ACL permission of setting share directory, including there is the access operation for executing permission and do not have The access operation of permission is executed, when destination node executes access operation to the share directory, if having the access for executing permission Operation accesses successfully, accesses failure without the access operation for executing permission, then explanation is no to ACL characteristic test success Then, illustrate to fail to ACL characteristic test;It, can be by checking test log, come to occurring in test process if test crash Abnormal conditions the reason of being checked and being positioned, find out test crash.
As can be seen that in the present solution, when to ACL characteristic test, it is only necessary to test script are sent to test cluster, surveyed Examination cluster will automatically test ACL characteristic, obtain test log, and the visit operated according to different access in test log Result is asked to determine the test result of ACL characteristic, to realize the automatic test to ACL characteristic.
Automatic test device provided in an embodiment of the present invention is introduced below, automatic test dress described below Setting can be cross-referenced with above-described automated testing method.
Referring to Fig. 3, a kind of automatic test device of ACL characteristic provided in an embodiment of the present invention, comprising:
Test cluster creation module 100, for creating test set out of storage pool according to the test request to ACL characteristic Group;
Test script sending module 200, for the test script of ACL characteristic corresponding with the test request to be sent to The test cluster, so that test cluster creation has the share directory of ACL permission, and according to destination node to described total It enjoys catalogue and executes the access of access operation as a result, generating test log;
Test log receiving module 300, the test log sent for receiving the test cluster.
Wherein, this programme further include:
Node initializing module, after receiving the test log that the test cluster is sent, by the test set The state of each node is set as unused state in group.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, further includes:
Log analyzing module determines in the ACL permission of the share directory have and hold for parsing the test log The access operation of row permission and without execute permission access operation;
Judgment module, for judge to the access result of the share directory whether are as follows: there is the access behaviour for executing permission Work accesses successfully, accesses failure without the access operation for executing permission;If so, determining ACL characteristic test success;If it is not, Then determine that ACL characteristic test fails.
The embodiment of the present invention also provides a kind of automated test device of ACL characteristic, comprising:
Memory, for storing computer program;
Processor realizes the automatic test side as described in above method embodiment when for executing the computer program The step of method.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is computer program, the automatic test as described in above method embodiment is realized when the computer program is executed by processor The step of method.
Wherein, the storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of automated testing method of ACL characteristic characterized by comprising
According to the test request to ACL characteristic test, test cluster is created out of storage pool;
The test script of ACL characteristic corresponding with the test request is sent to the test cluster, so that the test set Group's creation has the share directory of ACL permission, and executes the access knot of access operation to the share directory according to destination node Fruit generates test log;
Receive the test log that the test cluster is sent.
2. automated testing method according to claim 1, which is characterized in that described to receive what the test cluster was sent After test log, further includes:
Unused state is set by the state of node each in the test cluster.
3. automated testing method according to claim 2, which is characterized in that the visit of each node in the storage pool Ask that state is SSH without cryptographic acess state.
4. automated testing method as claimed in any of claims 1 to 3, which is characterized in that described in the reception After the test log that test cluster is sent, further includes:
The test log is parsed, is determined in the ACL permission of the share directory, there is the access operation for executing permission and is not had There is the access operation for executing permission;
Judge to the access result of the share directory whether are as follows: there is the access operation for executing permission to access successfully, do not have The access operation for executing permission accesses failure;
If so, determining ACL characteristic test success;If it is not, then determining that ACL characteristic test fails.
5. a kind of automatic test device of ACL characteristic characterized by comprising
Test cluster creation module, for creating test cluster out of storage pool according to the test request to ACL characteristic;
Test script sending module, for the test script of ACL characteristic corresponding with the test request to be sent to the survey Cluster is tried, so that test cluster creation has the share directory of ACL permission, and according to destination node to the share directory The access of access operation is executed as a result, generating test log;
Test log receiving module, the test log sent for receiving the test cluster.
6. automatic test device according to claim 5, which is characterized in that further include:
Node initializing module will be in the test cluster after receiving the test log that the test cluster is sent The state of each node is set as unused state.
7. automatic test device according to claim 6, which is characterized in that the visit of each node in the storage pool Ask that state is SSH without cryptographic acess state.
8. the automatic test device according to any one of claim 5 to 7, which is characterized in that further include:
Log analyzing module determines in the ACL permission of the share directory there is right of execution for parsing the test log The access operation of limit and without execute permission access operation;
Judgment module, for judge to the access result of the share directory whether are as follows: there is the access operation for executing permission to visit It asks success, accesses failure without the access operation for executing permission;If so, determining ACL characteristic test success;If it is not, then sentencing Determine ACL characteristic test failure.
9. a kind of automated test device of ACL characteristic characterized by comprising
Memory, for storing computer program;
Processor realizes the automated testing method as described in any one of Claims 1-4 when for executing the computer program The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, realizing the automated testing method as described in any one of Claims 1-4 when the computer program is executed by processor Step.
CN201910290170.0A 2019-04-11 2019-04-11 Automated testing method, device, equipment and the storage medium of ACL characteristic Withdrawn CN109902028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290170.0A CN109902028A (en) 2019-04-11 2019-04-11 Automated testing method, device, equipment and the storage medium of ACL characteristic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290170.0A CN109902028A (en) 2019-04-11 2019-04-11 Automated testing method, device, equipment and the storage medium of ACL characteristic

Publications (1)

Publication Number Publication Date
CN109902028A true CN109902028A (en) 2019-06-18

Family

ID=66955648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290170.0A Withdrawn CN109902028A (en) 2019-04-11 2019-04-11 Automated testing method, device, equipment and the storage medium of ACL characteristic

Country Status (1)

Country Link
CN (1) CN109902028A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795347A (en) * 2019-10-25 2020-02-14 北京浪潮数据技术有限公司 Application test platform building method and system
CN110995526A (en) * 2019-11-04 2020-04-10 苏州浪潮智能科技有限公司 Database resource isolation test method, system, terminal and storage medium
CN111064714A (en) * 2019-11-29 2020-04-24 苏州浪潮智能科技有限公司 Intelligent network card ACL updating device based on FPGA
CN111400117A (en) * 2020-03-12 2020-07-10 山东汇贸电子口岸有限公司 Method for automatically testing Ceph cluster

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795347A (en) * 2019-10-25 2020-02-14 北京浪潮数据技术有限公司 Application test platform building method and system
CN110995526A (en) * 2019-11-04 2020-04-10 苏州浪潮智能科技有限公司 Database resource isolation test method, system, terminal and storage medium
CN111064714A (en) * 2019-11-29 2020-04-24 苏州浪潮智能科技有限公司 Intelligent network card ACL updating device based on FPGA
CN111400117A (en) * 2020-03-12 2020-07-10 山东汇贸电子口岸有限公司 Method for automatically testing Ceph cluster
CN111400117B (en) * 2020-03-12 2023-07-11 山东汇贸电子口岸有限公司 Method for automatically testing Ceph cluster

Similar Documents

Publication Publication Date Title
US11277320B2 (en) Automatic provisioning of monitoring for containerized microservices
JP7197612B2 (en) Execution of auxiliary functions on on-demand network code execution systems
US20200356403A1 (en) Methods and systems that verify endpoints and external tasks in release-pipeline prior to execution
US10515000B2 (en) Systems and methods for performance testing cloud applications from multiple different geographic locations
CN109902028A (en) Automated testing method, device, equipment and the storage medium of ACL characteristic
CN107729139B (en) Method and device for concurrently acquiring resources
CN100578455C (en) Resource functionality verification before use by a grid job submitted to a grid environment
US20160275123A1 (en) Pipeline execution of multiple map-reduce jobs
CN110781007A (en) Task processing method, device, server, client, system and storage medium
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN109981419A (en) Test method, device, system, equipment and the storage medium of load balancing characteristic
US8538793B2 (en) System and method for managing real-time batch workflows
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
CN111026602A (en) Health inspection scheduling management method and device of cloud platform and electronic equipment
WO2020063550A1 (en) Policy decision method, apparatus and system, and storage medium, policy decision unit and cluster
CN108733545B (en) Pressure testing method and device
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN109697112B (en) Distributed intensive one-stop operating system and implementation method
CN113836237A (en) Method and device for auditing data operation of database
CN116881012A (en) Container application vertical capacity expansion method, device, equipment and readable storage medium
CN113746883A (en) Link tracking method and system
CN109995617A (en) Automated testing method, device, equipment and the storage medium of Host Administration characteristic
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN114443293A (en) Deployment system and method for big data platform
CN111381921B (en) Front-end and back-end separation system and method based on Ambari

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190618