Resource pool upgrade verification method, device and system
By establishing a connection with the target node and sending upgrade verification information, the problem of low efficiency of software upgrade verification for distributed system is solved, and automated verification and multi-resource pool simultaneous verification are realized, which improves efficiency and reduces maintenance costs.
Patent Information
- Application Number
- CN202411723375.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-01
AI Technical Summary
The software upgrade verification of distributed systems is inefficient and needs to be verified one by one according to resource pools.
The verification end responds to the user's upgrade verification request, establishes a connection with the target node of the resource pool to be verified, sends upgrade verification information, generates verification result information, and finally sends a response to the user.
Automation of upgrade verification is realized, allowing multiple resource pools to verify simultaneously, improving verification efficiency, and reducing maintenance costs by unified storing and managing verification information and results.
Smart Images

Figure CN119739608A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of software upgrade testing, and in particular to a resource pool upgrade verification method, device and system. Background Art
[0002] With the development of cloud computing technology, distributed systems have become the core of modern computing architecture. In distributed systems, multiple resource pools are usually deployed online, and the architecture of multiple resource pools is consistent. Software upgrades in distributed systems involve a series of operations such as configuration modifications, application service version updates, and service restarts in the production environment. After the software is upgraded, upgrade verification is required to ensure that the upgraded system can work properly.
[0003] However, software upgrades in distributed systems are usually verified one by one according to resource pools, which has low verification efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a resource pool upgrade verification method, device and system that can improve verification efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a resource pool upgrade verification method, which is applied to a verification end, and the method includes:
[0006] In response to the upgrade verification request sent by the user terminal, establishing a connection with a target node of the resource pool to be verified corresponding to the upgrade verification request;
[0007] Sending upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified;
[0008] According to the verification result information sent by the target node, an upgrade verification response is sent to the user terminal, and the upgrade verification response includes the verification result information.
[0009] In one of the embodiments, in response to the upgrade verification request sent by the user terminal, establishing a connection with a target node of the resource pool to be verified corresponding to the upgrade verification request includes:
[0010] Determining the authority detection result of the user terminal according to the user identity information in the upgrade verification request;
[0011] If the permission detection result is passed, obtaining the login information of the resource pool to be verified;
[0012] A connection is established with the target node according to the login information.
[0013] In one embodiment, sending an upgrade verification response to the user terminal according to the verification result information sent by the target node includes:
[0014] According to the verification result information sent by the target node, determining whether the upgrade verification result of the resource pool to be verified is successful;
[0015] If the upgrade verification result is a failure, obtaining and storing the failure reason and corresponding version information according to the verification result information;
[0016] The upgrade verification response is generated according to the failure reason and the version information, and sent to the user terminal.
[0017] In one embodiment, judging whether the upgrade verification result of the resource pool to be verified is successful according to the verification result information sent by the target node includes:
[0018] Determine whether the upgrade package check item passes according to the package verification result information in the verification result information;
[0019] If the upgrade package inspection item is passed, judging whether the service inspection item is passed according to the service verification result information in the verification result information;
[0020] In the case that the service inspection item is inspected and passed, judging whether the function point inspection item is passed according to the function point verification result information in the verification result information;
[0021] If the function point inspection item is checked as passed, determining the upgrade verification result as successful;
[0022] In the case where any one of the upgrade package inspection items, the service inspection items, and the function point inspection items fails the inspection, the upgrade verification result is determined to be a failure.
[0023] In one embodiment, after sending the upgrade verification response to the user terminal, the method further includes:
[0024] Get the list of notified persons;
[0025] Generate notification information according to the verification result information;
[0026] The notification information is sent to the persons to be notified in the list of notified persons.
[0027] In a second aspect, the present application also provides a resource pool upgrade verification method, which is applied to a node, and the method includes:
[0028] Receiving upgrade verification information sent by the verification end; wherein the upgrade verification information is sent by the verification end after establishing a connection with a target node of a resource pool to be verified corresponding to the upgrade verification request in response to the upgrade verification request sent by the user end;
[0029] Performing upgrade verification on the resource pool to be verified according to the upgrade verification information, and generating verification result information of the resource pool to be verified;
[0030] The verification result information is sent to the verification end to instruct the verification end to send an upgrade verification response to the user end according to the verification result information sent by the target node, wherein the upgrade verification response includes the verification result information.
[0031] In one of the embodiments, performing upgrade verification on the resource pool to be verified according to the upgrade verification information and generating verification result information of the resource pool to be verified includes:
[0032] Generate package verification result information according to the package verification information in the upgrade verification information;
[0033] If the package verification result information is passed, generating service verification result information according to the service verification information in the upgrade verification information;
[0034] When the service verification result information is checked as passed, the function point verification result information is generated according to the function point verification information in the upgrade verification information.
[0035] In a third aspect, the present application also provides a resource pool upgrade verification method, which is applied to a user end, and the method includes:
[0036] Sending an upgrade verification request to the verification end to instruct the verification end to establish a connection with the target node of the corresponding resource pool to be verified according to the upgrade verification request, and sending upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information and generate verification result information of the resource pool to be verified, and sending an upgrade verification response to the user end according to the verification result information sent by the target node, wherein the upgrade verification response includes the verification result information;
[0037] Receive an upgrade verification response sent by the verification terminal.
[0038] In a fourth aspect, the present application further provides a resource pool upgrade verification device, the device comprising:
[0039] A node connection module, configured to establish a connection with a target node of a resource pool to be verified corresponding to an upgrade verification request in response to an upgrade verification request sent by a user terminal; the upgrade verification request includes a list of resource pools to be verified;
[0040] A verification information sending module, used to send upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified;
[0041] A response module is used to send an upgrade verification response to the user terminal according to the verification result information sent by the target node, and the upgrade verification response includes the verification result information.
[0042] In a fifth aspect, the present application also provides a resource pool upgrade verification system, including: a user end, a verification end and a node;
[0043] The user terminal is used to send an upgrade verification request to the verification terminal;
[0044] The verification end is used to respond to the upgrade verification request, establish a connection with the node corresponding to the upgrade verification request, and send the upgrade verification information of the resource pool to be verified to the node;
[0045] The node is used to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, generate verification result information of the resource pool to be verified, and send the verification result information to the verification end;
[0046] The verification end is further used to send an upgrade verification response to the user end according to the verification result information, and the upgrade verification response includes the verification result information.
[0047] In the resource pool upgrade verification method, device and system, the verification end responds to the upgrade verification request sent by the user end, establishes a connection with the target node of the resource pool to be verified corresponding to the upgrade verification request, sends the upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generates verification result information of the resource pool to be verified. Further, according to the verification result information sent by the target node, an upgrade verification response is sent to the user end, thereby realizing the automation of upgrade verification. The verification end stores the upgrade verification information of each resource pool to be verified, and according to the upgrade verification request, sends the corresponding upgrade verification information to the target node of the resource pool to be verified, so that each resource pool to be verified can be verified at the same time, thereby improving the efficiency of upgrade verification. In addition, the verification end uniformly stores and manages the upgrade verification information and verification result information of each resource pool to be verified, thereby reducing the maintenance cost of each resource pool to be verified. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 An application framework diagram of a resource pool upgrade verification method in an embodiment;
[0050] Figure 2 for Figure 1 The structural block diagram of the verification end;
[0051] Figure 3 This is one of the flowcharts of a resource pool upgrade verification method in one embodiment;
[0052] Figure 4 A schematic diagram of a process of sending an upgrade verification response to a user terminal according to verification result information sent by a target node in an embodiment;
[0053] Figure 5 A schematic diagram of a process for determining whether an upgrade verification result is successful according to verification result information in one embodiment;
[0054] Figure 6 The second flowchart of a resource pool upgrade verification method in one embodiment;
[0055] Figure 7 A schematic diagram of a process of performing upgrade verification on a resource pool to be verified according to upgrade verification information and generating verification result information of the resource pool to be verified in an embodiment;
[0056] Figure 8 The third flowchart of a resource pool upgrade verification method in one embodiment;
[0057] Fig. 9 This is one of the structural block diagrams of a resource pool upgrade verification device in one embodiment;
[0058] Fig.10 This is a second structural block diagram of a resource pool upgrade verification device in an embodiment;
[0059] Fig.11 This is a third structural block diagram of a resource pool upgrade verification device in an embodiment;
[0060] Fig.12 A signaling diagram of various parts of a resource pool upgrade verification system when performing upgrade verification in an embodiment;
[0061] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The resource pool upgrade verification method provided in the embodiment of the present application can be applied to Figure 1 in the application framework.
[0064] The user terminal 102 may be a front-end device, such as a Web browser, a software application, etc. The user terminal 102 may interact with the user, receive the user's upgrade verification request, and display the upgrade verification result to the user, etc. The operation interface of the user terminal 102 may display a resource pool list and operable items. For example, the operable items may include immediate verification, editing, and viewing results, etc.
[0065] The verification end 104 may be a backend device, such as a physical server, a cloud server, etc. The verification end 104 may store the upgrade verification information of each resource pool 106. When a resource pool 106 needs to be upgraded, the corresponding upgrade verification information may be sent to the resource pool 106, and the verification result information of each resource pool 106 may be uniformly stored. Figure 2As shown, the verification end may include a rights management module 202, a resource pool configuration module 204, an upgrade verification execution module 206, a result processing module 208, a result notification module 210, and an upgrade verification list management module 212. Among them, the rights management module 202 stores a rights table, which can be used to query the rights table according to the user identity information to obtain the corresponding resource pool list. The resource pool configuration module 204 stores the configuration information of each resource pool, such as the resource pool domain name, port, node login information, data configuration account information, and a check item list. The upgrade verification execution module 206 can log in to the target node of the resource pool by calling the configuration information in the resource pool configuration module 202, and send the check item list to the target node, so that the target node executes the upgrade package check item, service check item, and function point check item according to the check item list, generates verification result information, and transmits the verification result information back to the upgrade verification execution module 206. The result processing module 208 can analyze and process the verification result information, analyze and process the package verification result information, the service verification result information, and the function point verification result information in turn, and summarize them into an upgrade verification result. The result notification module 210 can notify relevant responsible personnel based on the upgrade verification result. The upgrade verification list management module 212 can be operated by the user to update and modify the inspection items, test case sets and inspection scripts in the inspection item list.
[0066] In an exemplary embodiment, Figure 3 As shown, a resource pool upgrade verification method is provided, which is applied to Figure 1 The verification end in is taken as an example to illustrate, including the following steps 302 to 306.
[0067] Step 302: In response to the upgrade verification request sent by the user terminal, a connection is established with a target node of the resource pool to be verified corresponding to the upgrade verification request.
[0068] The upgrade verification request may include information such as a certificate, user identity information, and a resource pool to be verified. The target node may be one or more nodes in the resource pool to be verified. It is understandable that the target node communicates with other nodes in the resource pool to be verified through a network, and the upgrade verification can be performed on all nodes in the resource pool to be verified through the target node. If there are multiple systems in the resource pool to be verified that need to be logged in separately, a node in a single system can be used as a target node, and all nodes in the system can be upgraded and verified through the target node. After the verification end receives the upgrade verification request sent by the user end, it can respond to the upgrade verification request and establish a connection with the target node of the corresponding resource pool to be verified.
[0069] Step 304: Send upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified.
[0070] The upgrade verification information includes test cases and inspection scripts. The verification result information includes inspection items, inspection results, and generated process files. The process files include operation data and log files during the upgrade verification process. The verification end stores the upgrade verification information of each resource pool to be verified. After establishing a connection with the target node of the resource pool to be verified, the verification end can send the upgrade verification information of the resource pool to be verified to the fixed directory of the target node. In order to ensure the stability of the cluster, during the upgrade verification, only the fixed directory in the target node can be written by the verification end. Based on the upgrade verification information, the target node can perform upgrade verification on the resource pool to be verified and generate corresponding verification result information.
[0071] Step 306: Send an upgrade verification response to the user terminal according to the verification result information sent by the target node, where the upgrade verification response includes the verification result information.
[0072] After receiving the verification result information sent by the target node, the verification end will send an upgrade verification response to the user end, so that the user end can display the verification result information to the user.
[0073] In the embodiment of the present application, the verification end responds to the upgrade verification request sent by the user end, establishes a connection with the target node of the resource pool to be verified corresponding to the upgrade verification request, sends the upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generates verification result information of the resource pool to be verified. Further, according to the verification result information sent by the target node, an upgrade verification response is sent to the user end, thereby realizing the automation of upgrade verification. The verification end stores the upgrade verification information of each resource pool to be verified, and according to the upgrade verification request, sends the corresponding upgrade verification information to the target node of the resource pool to be verified, so that each resource pool to be verified can be verified at the same time, thereby improving the efficiency of upgrade verification. In addition, the verification end uniformly stores and manages the upgrade verification information and verification result information of each resource pool to be verified, thereby reducing the maintenance cost of each resource pool to be verified.
[0074] In one embodiment, in response to an upgrade verification request sent by a user terminal, a connection is established with a target node of a resource pool to be verified corresponding to the upgrade verification request, including: determining a permission detection result of the user terminal based on user identity information in the upgrade verification request, and when the permission detection result is passed, obtaining login information of the resource pool to be verified, and establishing a connection with the target node based on the login information.
[0075] Specifically, the verification end can first obtain the user identity information in the upgrade verification request, call the permission table in the database, query the user identity information through the permission table, and obtain the permission detection result. If the permission detection result is passed, the login information of the resource pool to be verified can be obtained by reading the configuration file of the resource pool to be verified stored in the verification, such as the domain name, port, how to log in, etc., and establish a connection with the target node based on the login information. If the permission detection result is a failure, the verification end can send the failure information to the user end, prompting the request initiator that he does not have the corresponding authority.
[0076] In this embodiment, the permission detection result of the user end is first determined based on the user identity information in the upgrade verification request. If the permission detection result is passed, the login information of the resource pool to be verified is obtained, and a connection is established with the target node based on the login information, thereby reducing the risk of the system being maliciously modified and improving the security and stability of the system.
[0077] In one embodiment, Figure 4 As shown, according to the verification result information sent by the target node, an upgrade verification response is sent to the user terminal, including steps 402-406.
[0078] Step 402: Determine whether the upgrade verification result of the resource pool to be verified is successful based on the verification result information sent by the target node.
[0079] After receiving the verification result information sent by the target node, the verification end can analyze and process the verification result information to determine whether the upgrade verification result of the resource pool to be verified is successful.
[0080] For example, Figure 5 As shown, the verification end can first determine whether the upgrade package inspection item has passed according to the package verification result information in the verification result information. The package verification result information usually includes the version information of the upgrade package, the size of the upgrade package, the MD5 value (Message Digest Algorithm 5, Message Digest Algorithm Version 5), etc. The verification end can determine whether the upgrade package version is correct according to the version information in the package verification result information, and determine whether the content of the upgrade package is correct according to the size of the upgrade package and the MD5 value, thereby determining whether the upgrade package inspection item has passed.
[0081] When the verification end determines that the upgrade package inspection item has passed the inspection, it can determine whether the service inspection item has passed according to the service verification result information in the verification result information. The service verification result information usually includes information such as service startup time, service operation data and operation log. The verification end can determine whether the service inspection item has passed by determining whether the service startup time exceeds the preset value, whether the service operation data is abnormal, etc.
[0082] When the verification end determines that the service inspection item has passed the inspection, it determines whether the function point inspection item has passed according to the function point verification result information in the verification result information. The function point verification result information usually includes information such as the use case execution result and the execution log. The verification end can determine whether the function point inspection item has passed by judging whether the use case execution result is normal.
[0083] When the verification end determines that the function point inspection item has passed the inspection, it determines that the upgrade verification result is successful and ends this upgrade verification.
[0084] If any of the upgrade package check items, service check items, and function point check items fail to be checked, the verification end determines that the upgrade verification result is a failure. Since the priority of the service check item is higher than that of the function point check item and lower than that of the upgrade package check item, if the upgrade package check item fails to be checked, the upgrade verification result can be determined to be a failure, and the upgrade verification is terminated, without the need to perform subsequent steps to determine whether the service check item and the function point check item have passed the inspection. Similarly, if the service check item fails to be checked, the upgrade verification result can also be determined to be a failure, and the upgrade verification is terminated, without the need to perform subsequent steps to determine whether the function point check item has passed the inspection.
[0085] Step 404: When the upgrade verification result is failure, the failure reason and corresponding version information are obtained and stored according to the verification result information.
[0086] When the verification end determines that the upgrade verification result is a failure, it can analyze the failure cause based on the verification result information, and archive the failure cause and the upgrade package version and store them in the database. If the upgrade verification result fails due to the failure of the function point check item, the verification end also needs to obtain the failed use case from the function point verification result information, and filter out the log file corresponding to the use case based on the API path and user information of the target node, and mark it with "use case name + version information + time".
[0087] Step 406: Generate an upgrade verification response based on the failure reason and version information, and send it to the user end.
[0088] The verification end may generate an upgrade verification response according to the failure reason and version information, and send it to the user end, so that the user end displays the upgrade verification result, failure reason and version information to the user.
[0089] In this embodiment, the verification end determines whether the upgrade verification result of the resource pool to be verified is successful based on the verification result information sent by the target node. If the upgrade verification result is a failure, the failure cause and the corresponding version information are obtained and stored based on the verification result information, and an upgrade verification response is generated based on the failure cause and the version information, and sent to the user end, thereby realizing unified management of the upgrade verification results of each resource pool to be verified.
[0090] In one embodiment, after sending the upgrade verification response to the user terminal, the process further includes: obtaining a list of notified persons, generating notification information according to the verification result information, and sending the notification information to the persons to be notified in the list of notified persons.
[0091] The list of notified persons includes the request initiator and the person in charge of the resource pool to be verified. The notification information may include the content of the verification result information, such as the inspection items, whether the inspection passed, the reason for failure, etc. The notification information can be generated in the form of a link or a report. The verification end can send notification information to the persons to be notified in the form of email, station letter, phone call or SMS based on the list of notified persons, prompting the persons to be notified to check the upgrade verification results.
[0092] In one embodiment, Figure 6 As shown, the present application also provides a resource pool upgrade verification method, which is applied to Figure 1 Taking the node in as an example, the process includes steps 602 to 606.
[0093] Step 602: Receive upgrade verification information sent by the verification terminal.
[0094] The upgrade verification information includes test cases and check scripts. In response to the upgrade verification request sent by the user end, the verification end establishes a connection with the target node of the resource pool to be verified corresponding to the upgrade verification request. After the connection between the node and the verification end is successfully established, the upgrade verification information sent by the verification end can be received.
[0095] Step 604: Perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified.
[0096] The node automatically executes test cases and check scripts to perform the upgrade verification process on the resource pool to be verified, and generates corresponding verification result information.
[0097] Step 606: Send verification result information to the verification end.
[0098] After executing the upgrade verification process, the node sends verification result information to the verification end, so that the verification end analyzes whether the upgrade verification result is successful based on the verification result information, and sends an upgrade verification response containing the verification result information to the user end.
[0099] In the embodiment of the present application, the node can receive the upgrade verification information sent by the verification end, perform upgrade verification on the resource pool to be verified according to the upgrade verification information, generate verification result information of the resource pool to be verified, and send the verification result information to the verification end. It can be understood that when upgrade verification is required, the node can directly obtain the upgrade verification information to be executed from the verification end, without first performing the operation of finding the upgrade verification information to be executed from the upgrade verification information of all resource pools, which saves time.
[0100] In one embodiment, upgrade verification is performed on a resource pool to be verified according to upgrade verification information to generate verification result information of the resource pool to be verified, including the steps of: generating package verification result information according to package verification information in the upgrade verification information; generating service verification result information according to service verification information in the upgrade verification information when the package verification result information is checked as passed; and generating function point verification result information according to function point verification information in the upgrade verification information when the service verification result information is checked as passed.
[0101] like Figure 7 As shown, the node can first read the package verification information in the upgrade verification information, that is, the upgrade package check script, execute the upgrade package check script, obtain the version information of the upgrade package, the upgrade package size and the MD5 value, etc., and generate the package verification result information. In order to improve the efficiency of the upgrade verification, the node can determine whether it is necessary to execute the service inspection project according to the package verification result information. Specifically, if the package verification result information is that the inspection fails, the node can directly end the upgrade verification; if the package verification result information is that the inspection passes, the node can read the service verification information in the upgrade verification information, that is, the service check script, execute the service check script, obtain the service start time, service operation data and operation log information, and generate the service verification result information. The node can determine whether it is necessary to execute the function point inspection project according to the service verification result information. Specifically, if the service verification result information is that the inspection fails, the node can directly end the upgrade verification; if the service verification result information is that the inspection passes, the node can read the function point verification information in the upgrade verification information, that is, the function point test case set, execute the function point test case set, obtain the test case execution results and execution log information generated during the test case execution process, generate the function point verification result information, and end the upgrade verification process.
[0102] In one embodiment, Figure 8 As shown, the present application also provides a resource pool upgrade verification method, which is applied to Figure 1 Taking the user end in as an example, it includes steps 802-804.
[0103] Step 802: Send an upgrade verification request to the verification end.
[0104] The user end can interact with the user, display the operation interface to the user, and obtain the user's upgrade verification request through the buttons of the operation interface, and send the upgrade verification request to the verification end. For example, when the user clicks the "Verify Now" button on the operation interface, the user end can send the upgrade verification request to the verification end and update "Verify Now" to "Executing". After the user end sends the upgrade verification request to the verification end, the verification end establishes a connection with the target node of the corresponding resource pool to be verified according to the upgrade verification request, and sends the upgrade verification information of the resource pool to be verified to the target node. After receiving the upgrade verification information, the target node can perform upgrade verification on the resource pool to be verified according to the upgrade verification information, generate verification result information of the resource pool to be verified, and send the verification result information to the verification end. Furthermore, the verification end can send an upgrade verification response containing verification result information to the user end according to the verification result information sent by the target node.
[0105] Step 804: Receive an upgrade verification response sent by the verification end.
[0106] The user end may receive the upgrade verification response sent by the verification end, and display the verification result information in the upgrade verification response to the user through the operation interface. For example, after the user receives the upgrade verification response sent by the verification end, "in progress" is updated to "verify immediately", and a link is generated, and the user can view the verification result information by clicking the link.
[0107] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0108] Based on the same inventive concept, the embodiment of the present application also provides a resource pool upgrade verification device for implementing the resource pool upgrade verification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource pool upgrade verification device embodiments provided below can refer to the limitations of the resource pool upgrade verification method above, and will not be repeated here.
[0109] In an exemplary embodiment, Fig. 9 As shown, a resource pool upgrade verification device is provided, including: a node connection module 902, a verification information sending module 904 and a response module 906, wherein:
[0110] The node connection module 902 is used to establish a connection with a target node of a resource pool to be verified corresponding to the upgrade verification request in response to the upgrade verification request sent by the user end; the upgrade verification request includes a list of resource pools to be verified;
[0111] The verification information sending module 904 is used to send the upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified;
[0112] The response module 906 is used to send an upgrade verification response to the user terminal according to the verification result information sent by the target node, and the upgrade verification response includes the verification result information.
[0113] In one embodiment, the node connection module is also used to determine the user terminal's permission detection result based on the user identity information in the upgrade verification request; if the permission detection result is passed, obtain the login information of the resource pool to be verified; and establish a connection with the target node based on the login information.
[0114] In one embodiment, the verification information sending module is also used to determine whether the upgrade verification result of the resource pool to be verified is successful based on the verification result information sent by the target node; if the upgrade verification result is a failure, the failure reason and the corresponding version information are obtained and stored based on the verification result information; an upgrade verification response is generated based on the failure reason and the version information, and sent to the user end.
[0115] In one embodiment, the verification information sending module is also used to determine whether the upgrade package inspection item has passed based on the package verification result information in the verification result information; if the upgrade package inspection item has passed the inspection, determine whether the service inspection item has passed based on the service verification result information in the verification result information; if the service inspection item has passed the inspection, determine whether the function point inspection item has passed based on the function point verification result information in the verification result information; if the function point inspection item has passed the inspection, determine the upgrade verification result to be successful; if any of the upgrade package inspection items, service inspection items and function point inspection items has failed the inspection, determine the upgrade verification result to be failed.
[0116] In one embodiment, the resource pool upgrade verification device further includes a notification module. The notification module is used to obtain a list of notified personnel; generate notification information according to the verification result information; and send notification information to the personnel to be notified in the list of notified personnel.
[0117] In one embodiment, Fig.10 As shown, the present application also provides a resource pool upgrade verification device, including: an information receiving module 1002, an execution module 1004 and a result sending module 1006.
[0118] The information receiving module 1002 is used to receive the upgrade verification information sent by the verification end; wherein the upgrade verification information is sent by the verification end after establishing a connection with the target node of the resource pool to be verified corresponding to the upgrade verification request in response to the upgrade verification request sent by the user end;
[0119] The execution module 1004 is used to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified;
[0120] The result sending module 1006 is used to send verification result information to the verification end to instruct the verification end to send an upgrade verification response to the user end according to the verification result information sent by the target node, and the upgrade verification response includes the verification result information.
[0121] In one embodiment, the execution module is also used to generate package verification result information based on the package verification information in the upgrade verification information; when the package verification result information is checked as passed, generate service verification result information based on the service verification information in the upgrade verification information; when the service verification result information is checked as passed, generate function point verification result information based on the function point verification information in the upgrade verification information.
[0122] In one embodiment, Fig.11 As shown, the present application also provides a resource pool upgrade verification device, including: a request sending module 1102 and a response receiving module 1104.
[0123] The request sending module 1102 is used to send an upgrade verification request to the verification end to instruct the verification end to establish a connection with the target node of the corresponding resource pool to be verified according to the upgrade verification request, and send upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information and generate verification result information of the resource pool to be verified, and send an upgrade verification response to the user end according to the verification result information sent by the target node, and the upgrade verification response includes the verification result information;
[0124] The response receiving module 1104 is used to receive the upgrade verification response sent by the verification end.
[0125] Each module in the resource pool upgrade verification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0126] In one embodiment, the present application also provides a resource pool upgrade verification system, including: a user end, a verification end and a node.
[0127] The user end is used to send an upgrade verification request to the verification end.
[0128] The verification end is used to respond to the upgrade verification request, establish a connection with the node corresponding to the upgrade verification request, and send the upgrade verification information of the resource pool to be verified to the node.
[0129] The node is used to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, generate verification result information of the resource pool to be verified, and send the verification result information to the verification end.
[0130] The verification end is further used to send an upgrade verification response to the user end according to the verification result information, and the upgrade verification response includes the verification result information.
[0131] Specifically, Fig.12 As shown, after the user selects the resource pool to be verified, he clicks the "Verify Now" button on the user-side operation interface. The user side sends an upgrade verification request to the verification side and updates "Verify Now" to "Executing". After receiving the upgrade verification request, the verification side first reads the permission table to determine whether the user has the operation permission. If the user has the operation permission, the verification side reads the configuration information of the resource pool to be verified and logs in to the target node of the resource pool to be verified, and packages the test case set, check script, etc. into upgrade verification information and sends it to the target node. After the target node receives the upgrade verification information, it automatically executes the test case set and check script according to the upgrade verification information, and generates verification result information and sends it back to the verification side. The verification side stores the verification result information uniformly, analyzes and processes the verification result information, generates an upgrade verification response, and sends the upgrade verification response to the user side. The user side updates "Executing" to "Verify Now" according to the upgrade verification response and generates a link. The user can click the link to view the verification result information. In addition, the verification side can also notify the relevant responsible personnel to view the verification result information in the form of email, station letter, phone or text message.
[0132] In the embodiment of the present application, after the user selects the list of resource pools to be verified through the user interface, the resource pool upgrade verification system can automatically log in to the corresponding node and automatically perform the upgrade verification process, thereby realizing the automation of resource pool upgrade verification and being able to perform upgrade verification on multiple resource pools at the same time, thereby improving the verification efficiency. In addition, the upgrade verification information and verification result information of multiple resource pools are uniformly managed by the verification end, thereby reducing the maintenance cost of each resource pool.
[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a resource pool upgrade verification method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0134] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the resource pool upgrade verification method provided in any of the above embodiments is implemented.
[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the resource pool upgrade verification method provided in any of the above embodiments is implemented.
[0137] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the resource pool upgrade verification method provided in any of the above embodiments.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource pool upgrade verification method, characterized in that: Applied to the verification end, the method includes: In response to the upgrade verification request sent by the user terminal, establishing a connection with a target node of the resource pool to be verified corresponding to the upgrade verification request; Sending upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified; According to the verification result information sent by the target node, an upgrade verification response is sent to the user terminal, and the upgrade verification response includes the verification result information.
2. The method according to claim 1, characterized in that: The step of establishing a connection with a target node of a resource pool to be verified corresponding to the upgrade verification request in response to the upgrade verification request includes: Determining the authority detection result of the user terminal according to the user identity information in the upgrade verification request; If the permission detection result is passed, obtaining the login information of the resource pool to be verified; A connection is established with the target node according to the login information.
3. The method according to claim 1 or 2, characterized in that: The step of sending an upgrade verification response to the user terminal according to the verification result information sent by the target node includes: According to the verification result information sent by the target node, determining whether the upgrade verification result of the resource pool to be verified is successful; If the upgrade verification result is a failure, obtaining and storing the failure reason and corresponding version information according to the verification result information; The upgrade verification response is generated according to the failure reason and the version information, and sent to the user terminal.
4. The method according to claim 3, characterized in that The determining, according to the verification result information sent by the target node, whether the upgrade verification result of the resource pool to be verified is successful includes: Determine whether the upgrade package check item passes according to the package verification result information in the verification result information; If the upgrade package inspection item is passed, judging whether the service inspection item is passed according to the service verification result information in the verification result information; In the case that the service inspection item is inspected and passed, judging whether the function point inspection item is passed according to the function point verification result information in the verification result information; If the function point inspection item is checked as passed, determining the upgrade verification result as successful; In the case where any one of the upgrade package inspection items, the service inspection items, and the function point inspection items fails the inspection, the upgrade verification result is determined to be a failure.
5. The method according to claim 3, characterized in that: After sending the upgrade verification response to the user terminal, the method further includes: Get the list of notified persons; Generate notification information according to the verification result information; The notification information is sent to the persons to be notified in the list of notified persons.
6. A resource pool upgrade verification method, characterized in that: Applied to a node, the method comprises: Receiving upgrade verification information sent by the verification end; wherein the upgrade verification information is sent by the verification end after establishing a connection with a target node of a resource pool to be verified corresponding to the upgrade verification request in response to the upgrade verification request sent by the user end; Performing upgrade verification on the resource pool to be verified according to the upgrade verification information, and generating verification result information of the resource pool to be verified; The verification result information is sent to the verification end to instruct the verification end to send an upgrade verification response to the user end according to the verification result information sent by the target node, wherein the upgrade verification response includes the verification result information.
7. The method according to claim 6, characterized in that Performing upgrade verification on the resource pool to be verified according to the upgrade verification information, and generating verification result information of the resource pool to be verified, including: Generate package verification result information according to the package verification information in the upgrade verification information; If the package verification result information is passed, generating service verification result information according to the service verification information in the upgrade verification information; When the service verification result information is checked as passed, the function point verification result information is generated according to the function point verification information in the upgrade verification information.
8. A resource pool upgrade verification method, characterized in that: Applied to a user terminal, the method includes: Sending an upgrade verification request to the verification end to instruct the verification end to establish a connection with the target node of the corresponding resource pool to be verified according to the upgrade verification request, and sending upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information and generate verification result information of the resource pool to be verified, and sending an upgrade verification response to the user end according to the verification result information sent by the target node, wherein the upgrade verification response includes the verification result information; Receive an upgrade verification response sent by the verification terminal.
9. A resource pool upgrade verification device, characterized in that: The device comprises: A node connection module, configured to establish a connection with a target node of a resource pool to be verified corresponding to an upgrade verification request in response to an upgrade verification request sent by a user terminal; the upgrade verification request includes a list of resource pools to be verified; A verification information sending module, used to send upgrade verification information of the resource pool to be verified to the target node of the resource pool to be verified, so as to instruct the target node to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, and generate verification result information of the resource pool to be verified; A response module is used to send an upgrade verification response to the user terminal according to the verification result information sent by the target node, and the upgrade verification response includes the verification result information.
10. A resource pool upgrade verification system, characterized in that: include: User side, validator side and node; The user terminal is used to send an upgrade verification request to the verification terminal; The verification end is used to respond to the upgrade verification request, establish a connection with the node corresponding to the upgrade verification request, and send upgrade verification information of the resource pool to be verified to the node; The node is used to perform upgrade verification on the resource pool to be verified according to the upgrade verification information, generate verification result information of the resource pool to be verified, and send the verification result information to the verification end; The verification end is further used to send an upgrade verification response to the user end according to the verification result information, and the upgrade verification response includes the verification result information.