Nothing Special   »   [go: up one dir, main page]

CN109885435A - The test macro and method of universal container computing cluster - Google Patents

The test macro and method of universal container computing cluster Download PDF

Info

Publication number
CN109885435A
CN109885435A CN201910119252.9A CN201910119252A CN109885435A CN 109885435 A CN109885435 A CN 109885435A CN 201910119252 A CN201910119252 A CN 201910119252A CN 109885435 A CN109885435 A CN 109885435A
Authority
CN
China
Prior art keywords
test
exterior component
subsystem
interface
computing cluster
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.)
Pending
Application number
CN201910119252.9A
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.)
National Computer Network and Information Security Management Center
Original Assignee
National Computer Network and Information Security Management Center
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 National Computer Network and Information Security Management Center filed Critical National Computer Network and Information Security Management Center
Priority to CN201910119252.9A priority Critical patent/CN109885435A/en
Publication of CN109885435A publication Critical patent/CN109885435A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the test macros and method of a kind of universal container computing cluster, the system comprises: exterior component, for defining the corresponding interface of all features i.e. test interface of all subsystems, carrying out the interaction between specific test program and subsystem as unified test interface;Subsystem is connect with exterior component, and the corresponding containerization computing cluster of each subsystem, different sub-systems are for indicating that different containerization aggregated structures, different sub-systems have different characteristics;Test program is connect with exterior component, the test for carrying out the containerization cluster of different characteristic by inheriting interface defined in exterior component.

Description

The test macro and method of universal container computing cluster
Technical field
The present invention relates to computer field more particularly to a kind of test macros and method of universal container computing cluster.
Background technique
With the arrival of big data and cloud computing era, currently a popular large scale network cluster is all by the clothes of super flood tide Business device is constituted, and not high server resource utilization rate is where restricting the bottleneck of server-side computing capability.Traditional virtualization technology (e.g., VMWare, KVM etc.) depends critically upon physical cpu and interior although having the ability that server resource is isolated It deposits, belongs to the virtualization technology of hardware-level, cannot achieve rapid deployment, starting and the migration of virtual machine.Container is a kind of light The Software package technology of magnitude has superpower portable ability, allows the application program being deployed in container with identical Mode run anywhere.
In recent years, the application container engine that Docker increases income as one, the deep welcome by numerous developers.With The continuous construction of the Docker ecosphere, application field are more and more wider.With the continuous development of cloud computing and big data technology, enterprise Business demand continuously changes, and causes enterprises service framework to need to change at any time to adapt to the demand of business variation. Containerization aggregated structure is evolving expansion, and at the same time, business diversity, complexity are also adjoint and give birth to.The meter of containerization Cluster implementation multiplicity is calculated, test is carried out to them and needs to carry out specific aim modification to test program, when test program type Then cost is too big when more.
Summary of the invention
The embodiment of the present invention provides the test macro and method of a kind of universal container computing cluster, to solve existing skill The above problem in art.
The embodiment of the present invention provides a kind of test macro of universal container computing cluster, comprising:
Exterior component, for as unified test interface, the corresponding interface of all features for defining all subsystems to be surveyed It tries mouth, carries out the interaction between specific test program and subsystem;
Subsystem is connect with exterior component, and the corresponding containerization computing cluster of each subsystem, different sub-systems are used In the different containerization aggregated structure of expression, different sub-systems have different characteristics;
Test program is connect with exterior component, for carrying out different characteristic by inheriting interface defined in exterior component Containerization cluster test.
Preferably, exterior component is specifically used for:
Obtain the object and attribute of all subsystems;
Object in subsystem is registered, the corresponding interface of all features for defining all subsystems, which is tested, to be connect Mouthful, carry out the interaction between specific test program and subsystem.
The embodiment of the present invention also provides a kind of test method of universal container computing cluster, is based on above-mentioned universal container The test macro of computing cluster, specifically includes:
Exterior component obtains the object and attribute of all subsystems;
Object in subsystem is registered, the corresponding interface of all features for defining all subsystems, which is tested, to be connect Mouthful;
The test that test program carries out the containerization cluster of different characteristic by inheriting interface defined in exterior component.
Using the embodiment of the present invention, the unified test interface based on skin mode, exterior component by terminal test program with The internal complexity of subsystem is isolated, so that test program person only needs to come into contacts with exterior component, without being concerned about subsystem The feature of internal various different objects.It introduces after exterior component, so that increasing (deleting) new subsystem to terminal test program not Apparent influence can be generated, test program need not modify (or few modification), only need to in exterior component increase or Remove the reference of sub-system.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the schematic diagram of universal container computing cluster test structure in the embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the present invention proposes a kind of unified test interface based on skin mode, realizes that test is anti-based on the interface For model to guarantee the versatility of test program, a kind of computing cluster scheme only need to disposably realize test interface.
Skin mode is the processing type design pattern frequently used in field of software engineering, and exterior component is to simplify terminal Complex interaction between program and subsystem provides unified entrance for the subsystem calling of multiplicity, realizes reduction subsystem With the purpose of the terminal program degree of coupling, while the calling of terminal program being made to become very convenient.Unified test interface framework is such as Shown in Fig. 1.Wherein, exterior component, i.e., unified test interface, exterior component define connecing for all tests of all subsystems Mouthful, the interaction being responsible between specific test program and subsystem;Subsystem, the corresponding containerization of each subsystem calculate collection Group, diversity of the different systems to indicate containerization aggregated structure, different sub-systems have different characteristics, but all spies The corresponding interface of sign all defines in exterior component.Test program, can by inheriting standard interface defined in exterior component To realize the test of the containerization cluster of different characteristic.
Unified test interface based on skin mode the specific implementation process is as follows described:
Firstly, obtaining the contents such as the object of all subsystems, attribute;
Then, by the object registration in subsystem to exterior component;
Finally, terminal test program is directly interacted with exterior component, test is completed.
Compared with existing program test frame, it is proposed that based on skin mode universal container computing cluster test The beneficial effect that framework is embodied is:
Firstly, the unified test interface based on skin mode, exterior component is by the inside of terminal test program and subsystem Complicated sexual isolation, so that test program person only needs to come into contacts with exterior component, without being concerned about the various differences of subsystem internal The feature of object.Secondly, introduce after exterior component so that increase (deleting) new subsystem terminal test program will not be generated it is bright Aobvious influence, test program need not modify (or few modification), only to increase in exterior component or need to remove antithetical phrase The reference of system.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (3)

1. a kind of test macro of universal container computing cluster characterized by comprising
Exterior component, for as unified test interface, the corresponding interface of all features for defining all subsystems, which is tested, to be connect Mouthful, carry out the interaction between specific test program and subsystem;
Subsystem is connect with exterior component, and the corresponding containerization computing cluster of each subsystem, different sub-systems are used for table Show that different containerization aggregated structures, different sub-systems have different characteristics;
Test program is connect with exterior component, for carrying out the appearance of different characteristic by inheriting interface defined in exterior component The test of device cluster.
2. the system as claimed in claim 1, which is characterized in that exterior component is specifically used for:
Obtain the object and attribute of all subsystems;
Object in subsystem is registered, the corresponding interface of all features i.e. test interface of all subsystems is defined, into Interaction between the specific test program of row and subsystem.
3. a kind of test method of universal container computing cluster, which is characterized in that based on described in the claims 1 to 2 Universal container computing cluster test macro, the method specifically includes:
Exterior component obtains the object and attribute of all subsystems;
Object in subsystem is registered, the corresponding interface of all features i.e. test interface of all subsystems is defined;
The test that test program carries out the containerization cluster of different characteristic by inheriting interface defined in exterior component.
CN201910119252.9A 2019-02-18 2019-02-18 The test macro and method of universal container computing cluster Pending CN109885435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119252.9A CN109885435A (en) 2019-02-18 2019-02-18 The test macro and method of universal container computing cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119252.9A CN109885435A (en) 2019-02-18 2019-02-18 The test macro and method of universal container computing cluster

Publications (1)

Publication Number Publication Date
CN109885435A true CN109885435A (en) 2019-06-14

Family

ID=66928172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119252.9A Pending CN109885435A (en) 2019-02-18 2019-02-18 The test macro and method of universal container computing cluster

Country Status (1)

Country Link
CN (1) CN109885435A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020554A (en) * 2021-10-30 2022-02-08 江苏信而泰智能装备有限公司 Port isolation method of tester and tester with port isolation function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373447A (en) * 2008-08-20 2009-02-25 上海超级计算中心 System and method for detecting health degree of computer cluster
CN101512359A (en) * 2006-07-10 2009-08-19 阿斯特瑞昂公司 System and method for performing processing in a testing system
US20100023294A1 (en) * 2008-07-28 2010-01-28 Credence Systems Corporation Automated test system and method
CN102831062A (en) * 2012-08-31 2012-12-19 浪潮电子信息产业股份有限公司 Testing method based on cloud computing operating system software compatibility

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512359A (en) * 2006-07-10 2009-08-19 阿斯特瑞昂公司 System and method for performing processing in a testing system
US20100023294A1 (en) * 2008-07-28 2010-01-28 Credence Systems Corporation Automated test system and method
CN101373447A (en) * 2008-08-20 2009-02-25 上海超级计算中心 System and method for detecting health degree of computer cluster
CN102831062A (en) * 2012-08-31 2012-12-19 浪潮电子信息产业股份有限公司 Testing method based on cloud computing operating system software compatibility

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020554A (en) * 2021-10-30 2022-02-08 江苏信而泰智能装备有限公司 Port isolation method of tester and tester with port isolation function

Similar Documents

Publication Publication Date Title
EP3447642A1 (en) System and method for predicting application performance for large data size on big data cluster
CN106776280B (en) Configurable performance testing device
US20170359402A1 (en) Optimized browser rendering service
CN107766039B (en) Method, server and storage medium for accessing attribute value from Java object
CN106462561B (en) Optimizing browser rendering processes
US9984044B2 (en) Predicting performance regression of a computer system with a complex queuing network model
EP4425353A2 (en) Graph neural network generation method, apparatus and system, medium and electronic device
CN112363913B (en) Parallel test task scheduling optimizing method, device and computing equipment
US9075965B2 (en) Execution-based license discovery and optimization
CN110290166B (en) Cross-cluster data interaction method, system and device and readable storage medium
CN103685564A (en) Plug-in application ability layer introduced industry application online operation cloud platform architecture
CN109885435A (en) The test macro and method of universal container computing cluster
CN106844024B (en) GPU/CPU scheduling method and system of self-learning running time prediction model
US11321644B2 (en) Software developer assignment utilizing contribution based mastery metrics
US20150160942A1 (en) Data object with common statement series
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
CN103973793A (en) Distributed aviation electronic testing system
CN111506393A (en) ARM-based virtualization device and use method thereof
CN111026629A (en) Method and device for automatically generating test script
CN114237824A (en) Fault positioning method and device, computer readable medium and electronic equipment
Li et al. Optimizing machine learning on apache spark in HPC environments
CN113709094A (en) User-perceptible marking for network address identifiers
US20240231972A1 (en) Isolated environment provisioning in service mesh-based microservices systems
CN113656268B (en) Performance test method and device for business service, electronic equipment and storage medium
US11968086B1 (en) Isolated environment provisioning in service mesh-based microservices systems

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614