CN109739765B - Test system - Google Patents

Test system Download PDF

Info

Publication number
CN109739765B
CN109739765B CN201811643297.8A CN201811643297A CN109739765B CN 109739765 B CN109739765 B CN 109739765B CN 201811643297 A CN201811643297 A CN 201811643297A CN 109739765 B CN109739765 B CN 109739765B
Authority
CN
China
Prior art keywords
main chain
test
parallel
port
nodes
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.)
Active
Application number
CN201811643297.8A
Other languages
Chinese (zh)
Other versions
CN109739765A (en
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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201811643297.8A priority Critical patent/CN109739765B/en
Publication of CN109739765A publication Critical patent/CN109739765A/en
Application granted granted Critical
Publication of CN109739765B publication Critical patent/CN109739765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a test system, which comprises a plurality of main chain nodes, a plurality of parallel chain nodes and a reverse proxy server; the reverse proxy server is provided with a third port, and the third port is used for accessing the parallel chain node to acquire the data information of the main chain node through the reverse proxy server; the parallel chain nodes are provided with test modules, the test modules are used for executing test cases, the test cases can cover various test scenes and independent scenes of matching of main chain parallel chains, such as a scene of transparent parallel chains, a scene of influence of the bifurcation of the main nodes on the parallel chains, and the like, of the host nodes on the parallel chains, so that the test can be used for continuous integrated test of software products on the basis of reducing the test cost.

Description

Test system
Technical Field
The application relates to the technical field of block chains, in particular to a test system.
Background
The parallel chain is a block chain based on a main chain, the transaction of the parallel chain is sent to the main chain to participate in consensus verification, the transaction belonging to the parallel chain is executed by the parallel chain link points, the consensus of the transaction of the parallel chain is given to the main chain for safety, all nodes of the parallel chain are not communicated with each other and only communicate with the corresponding main chain. The existing parallel chain main chain architecture is based on interconnection of main chain nodes in a local area network, parallel chain link nodes are tested by relying on the main chain nodes corresponding to one another, the architecture is simple, the test is relatively basic, if one or more main nodes are down, the parallel chain nodes are stopped and idled, and a test case cannot be normally executed until the test case is found by a user.
Disclosure of Invention
In view of the above-mentioned shortcomings or drawbacks of the prior art, it is desirable to provide a test system that is low in test cost and easy to continuously integrate.
The invention provides a test system, which comprises a plurality of main chain nodes, a plurality of parallel chain nodes and a reverse proxy server; the reverse proxy server is provided with a third port, and the third port is used for accessing the parallel chain node to acquire the data information of the main chain node through the reverse proxy server; and the parallel chain link points are provided with test modules, and the test modules are used for executing test cases.
The test system provided by the embodiments of the invention comprises a plurality of main chain nodes, a plurality of parallel chain nodes and a reverse proxy server; the reverse proxy server is provided with a third port, and the third port is used for accessing the parallel chain node to acquire the data information of the main chain node through the reverse proxy server; the parallel chain nodes are provided with test modules, the test modules are used for executing test cases, the test cases can cover various test scenes and independent scenes of matching of main chain parallel chains, such as a scene of transparent parallel chains, a scene of influence of the bifurcation of the main nodes on the parallel chains, and the like, of the host nodes on the parallel chains, so that the test can be used for continuous integrated test of software products on the basis of reducing the test cost.
In the test system provided by some embodiments of the present invention, a main chain node and a parallel chain node are further deployed on one node; the network port of the main chain node is different from the network port of the parallel chain node, so that the test portability is improved.
Some embodiments of the present invention provide a test system, which further reduces the test cost by building the system in a local area network.
The test system provided by some embodiments of the present invention is further configured to make the network segment of the main chain node different from the network segment of the block chain main network, so as to ensure network isolation and ensure that test data does not interfere with data of the host computer.
The test system provided by some embodiments of the present invention is further configured to make the network segment of the parallel link node different from the network segment of the block link main network, thereby ensuring network isolation and ensuring that test data does not interfere with data of the host computer.
Some embodiments of the present invention provide a test system that further configures a redundancy backup for a reverse proxy server, and tests a redundancy backup scenario.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic structural diagram of a test system according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a schematic structural diagram of a test system according to an embodiment of the present invention.
As shown in fig. 1, the present invention provides a testing system, which includes a plurality of main chain nodes, a plurality of parallel chain nodes and a reverse proxy server;
the reverse proxy server is provided with a third port, and the third port is used for accessing the parallel chain node to acquire the data information of the main chain node through the reverse proxy server;
and the parallel chain link points are provided with test modules, and the test modules are used for executing test cases.
The main chain node is provided with a first port and a second port, the first port is used for communication among the main chain nodes, and the second port is used for being accessed by the reverse proxy server.
The method for acquiring the data information among the parallel chain nodes, the main chain nodes and the reverse proxy server comprises the following steps:
the parallel chain node acquires data information of the main chain node through accessing a third port and a reverse proxy server;
the main chain node acquires data information of other main chain nodes by accessing the first ports of other main chain nodes;
and the reverse proxy server acquires the data information of the main chain node by accessing the second port.
Specifically, taking main chain nodes as a main chain node A, a main chain node B and a main chain node C, parallel chain nodes as a parallel chain node a and a parallel chain node B, and reverse proxy servers as a reverse proxy server m and a reverse proxy server n as examples, configuring a test case executed in a test module into a test case X as an example;
the test case X is that a main chain node A and a main chain node B are mining nodes, a reverse proxy server m and a reverse proxy server n configure ip (ip _ A) of the main chain node A and ip (ip _ B) of the main chain node B on the servers, and a parallel chain node a synchronizes data from the main chain node A initially; at some point, the main chain node A is configured to be in a downtime state.
The execution state of the test case is as follows:
before a main chain node A goes down, a parallel chain node a synchronizes data from the main chain node A; when the main chain node A is in a downtime state, the parallel chain node a acquires the data of the main chain node B through the third port.
At this time, if the main chain node a is restored to the non-downtime state, the main chain node B is configured to the downtime state, and at this time, the parallel chain node a acquires the data of the main chain node a through the third port.
The above embodiments describe the test system provided by the present invention in detail, and in more embodiments, the test system provided by the present invention is not limited to the above examples, and the number of the main chain nodes, the parallel chain nodes, and the reverse proxy servers may be configured according to actual requirements, and the test cases may be configured as other test cases, so that the same technical effect can be achieved.
The embodiment provides a good test system for the scene that the parallel chain main chains need to test the free switching of the one-to-many main chains, and the embodiment ensures that the parallel chain link points cannot be shut down and idle run along with one or more main nodes even if the main nodes are down when the test case runs, so that the test can be continuously integrated on the basis of reducing the test cost.
In a preferred embodiment, the main chain node and the parallel chain node are deployed on one node; the network port of the main chain node is different from the network port of the parallel chain node, so that the test portability is improved.
In a preferred embodiment, the test system is built in a local area network, so that the test cost is reduced.
In a preferred embodiment, the configuration is to make the network segment of the main chain node different from the network segment of the block chain main network, so as to ensure network isolation and ensure that the test data does not interfere with the data of the host machine.
In a preferred embodiment, the configuration is to make the network segment of the parallel link node different from the network segment of the main network of the block link, so as to ensure network isolation and ensure that the test data does not interfere with the data of the host machine.
In a preferred embodiment, a redundancy backup scenario is tested by configuring a redundancy backup for the reverse proxy server.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (6)

1. A test system is characterized by comprising a plurality of main chain nodes, a plurality of parallel chain nodes and a reverse proxy server;
the reverse proxy server is configured with a third port, and the third port is used for being accessed by the parallel chain node to acquire data information of the main chain node through the reverse proxy server;
the parallel chain link points are provided with test modules, and the test modules are used for executing test cases;
the main chain node is provided with a first port and a second port, the first port is used for communication between the main chain nodes, and the second port is used for being accessed by the reverse proxy server;
the method for acquiring the data information among the parallel chain nodes, the main chain node and the reverse proxy server comprises the following steps:
the parallel chain node acquires the data information of the main chain node through accessing the third port and a reverse proxy server;
the main chain node acquires data information of other main chain nodes by accessing the first ports of the other main chain nodes;
and the reverse proxy server acquires the data information of the main chain node by accessing the second port.
2. The system of claim 1, wherein the master link node and the parallel link nodes are disposed on one node; wherein the network port of the main chain node is different from the network port of the parallel chain node.
3. The system of claim 1, wherein the system is built into a local area network.
4. The system of claim 3, wherein the network segment of the main link node is different from the network segment of the blockchain main link.
5. The system of claim 3, wherein the network segment of the parallel link node is different from the network segment of the blockchain master network.
6. The system of any of claims 1-5, wherein the reverse proxy server is configured with redundant backups.
CN201811643297.8A 2018-12-29 2018-12-29 Test system Active CN109739765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811643297.8A CN109739765B (en) 2018-12-29 2018-12-29 Test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811643297.8A CN109739765B (en) 2018-12-29 2018-12-29 Test system

Publications (2)

Publication Number Publication Date
CN109739765A CN109739765A (en) 2019-05-10
CN109739765B true CN109739765B (en) 2021-12-31

Family

ID=66362623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811643297.8A Active CN109739765B (en) 2018-12-29 2018-12-29 Test system

Country Status (1)

Country Link
CN (1) CN109739765B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287196B (en) * 2019-06-29 2021-11-02 杭州复杂美科技有限公司 Block storage method, parallel chain transaction acquisition method, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170590A (en) * 2017-12-12 2018-06-15 北京大学深圳研究生院 A kind of test system and method for block catenary system
CN108810120A (en) * 2018-05-31 2018-11-13 中国联合网络通信集团有限公司 block chain node communication method, device and block chain node
CN108959621A (en) * 2018-07-18 2018-12-07 百度在线网络技术(北京)有限公司 A kind of implementation method, device, equipment and the storage medium of block chain network
CN108984784A (en) * 2018-07-26 2018-12-11 百度在线网络技术(北京)有限公司 Application implementation method, device, equipment and storage medium based on block chain network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL210169A0 (en) * 2010-12-22 2011-03-31 Yehuda Binder System and method for routing-based internet security
US10372507B2 (en) * 2016-12-31 2019-08-06 Intel Corporation Compute engine architecture to support data-parallel loops with reduction operations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170590A (en) * 2017-12-12 2018-06-15 北京大学深圳研究生院 A kind of test system and method for block catenary system
CN108810120A (en) * 2018-05-31 2018-11-13 中国联合网络通信集团有限公司 block chain node communication method, device and block chain node
CN108959621A (en) * 2018-07-18 2018-12-07 百度在线网络技术(北京)有限公司 A kind of implementation method, device, equipment and the storage medium of block chain network
CN108984784A (en) * 2018-07-26 2018-12-11 百度在线网络技术(北京)有限公司 Application implementation method, device, equipment and storage medium based on block chain network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链技术:架构及进展;邵奇峰 等;《计算机学报》;20180531(第5期);全文 *

Also Published As

Publication number Publication date
CN109739765A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
EP3189380B1 (en) Two-way architecture with redundant ccdl's
CN107895253A (en) A kind of method that electricity transaction function carries out micro services transformation
DE69316755T2 (en) FAULT-TOLERANT COMPUTER SYSTEM.
CN102402395A (en) Quorum disk-based non-interrupted operation method for high availability system
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN111949444A (en) Data backup and recovery system and method based on distributed service cluster
US10102088B2 (en) Cluster system, server device, cluster system management method, and computer-readable recording medium
CN106790378A (en) The full synchronous method of data of equipment room, apparatus and system
CN109739765B (en) Test system
EP1296246A2 (en) System and method for the dynamic reconfiguration of interconnects
US20050114836A1 (en) Block box testing in multi-tier application environments
US8208370B1 (en) Method and system for fast link failover
Diab et al. Dependable Computing Systems: Paradigms, Performance Issues, and Applications
CN110460497A (en) A kind of automated testing method, apparatus and system
CN113037421B (en) Method, communication device, communication system, and storage medium for clock synchronization
CN111858187A (en) Electronic equipment and service switching method and device
CN113179332B (en) Method, electronic device and storage medium for acquiring configuration information
EP1296482A2 (en) A system and method for managing one or more domains
Shreejith et al. Accelerating validation of time-triggered automotive systems on FPGAs
Azidehak et al. Resilient two dimensional redundancy based fault-tolerant controller array for modular multi-level converters
EP2690557B1 (en) Computer system, data processing method, and data processing program
CN111488306A (en) Attack and defense architecture system and construction method thereof
Saha et al. Designing reliable architecture for stateful fault tolerance
CN109542522A (en) A kind of FPGA starting method and device
CN114095500B (en) Non-inductive cross-region drift method and system for cloud application

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
GR01 Patent grant
GR01 Patent grant