CN104796304A - Cloud platform test method and system - Google Patents

Cloud platform test method and system Download PDF

Info

Publication number
CN104796304A
CN104796304A CN201510209615.XA CN201510209615A CN104796304A CN 104796304 A CN104796304 A CN 104796304A CN 201510209615 A CN201510209615 A CN 201510209615A CN 104796304 A CN104796304 A CN 104796304A
Authority
CN
China
Prior art keywords
cloud platform
iaas
virtual machine
wsgi
module
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.)
Granted
Application number
CN201510209615.XA
Other languages
Chinese (zh)
Other versions
CN104796304B (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.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and 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 GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201510209615.XA priority Critical patent/CN104796304B/en
Publication of CN104796304A publication Critical patent/CN104796304A/en
Application granted granted Critical
Publication of CN104796304B publication Critical patent/CN104796304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a cloud platform test method and system. The cloud platform test method includes the following steps: configuring a control virtual machine and a computational node virtual machine on an IaaS (infrastructure as a service) cloud platform, and configuring corresponding network environments; starting a WSGI (web server gateway interface) detection component of the IaaS cloud platform, and initializing the WSGI detection component; under the network environment, controlling the IaaS cloud platform to send a restful request to a server through the initialized WSGI detection component; acquiring a feedback result returned by the server responding to the restful request, and testing the IaaS cloud platform according to the feedback result. By the cloud platform test method and system, related test work needs not to be carried out separately in all links of cloud platform creation, work rate of cloud platform test can be lowered, and test efficiency is increased.

Description

Cloud platform test method and system
Technical field
The present invention relates to software testing technology field, particularly relate to a kind of cloud platform test method and system.
Background technology
Cloud computing is the thought using SOA and Service-Oriented Architecture framework, and it is supplied to terminal use using software and hardware as a kind of resource service and uses.The common interface that service development user then can utilize cloud computing platform to provide is to obtain corresponding hardware and software resource to carry out the exploitation of serving, and terminal use then according to the demand customization of self and can use service.
Namely infrastructure served IaaS (Infrastructure as a service) and these facilities of infrastructure device come for serve upper layers as a kind of underlying resource.The facility of IaaS has a lot, and common PC (personal computer), network, process, storage, bandwidth etc. can be its basic resources.These basic resources are transparent in fact concerning user, that is be through when they are provided time virtual after computational resource, these resources are only supplied to the user of cloud user as service, user then need not be concerned about the source of these resources or realize details.In addition these resources externally all can be encapsulated as unified logic interfacing, thus shield the difference of bottom hardware.Therefore virtualization process seems particularly important to IaaS, and in specific implementation, the resource of bottom is not only individual layer framework, and is often virtual as some layers.Current underlying resource is conceptualized as virtual data center, service a group of planes, virtual machine cluster etc.
In summary, based on the application of cloud platform and test important all the more, cloud platform test of the prior art generally needs each link created at cloud platform separately to carry out, and workload is large, and efficiency is low.
Summary of the invention
Based on this, be necessary generally to need each link created at cloud platform separately to carry out for cloud platform test of the prior art, workload is large, and inefficient technical problem, provides a kind of cloud platform test method and system.
A kind of cloud platform test method, comprises the steps:
In IaaS cloud platform, configuration controls virtual machine, computing node virtual machine, and configures corresponding network environment;
Start the WSGI detection components of IaaS cloud platform, and initialization is carried out to described WSGI detection components;
Under described network environment, control described IaaS cloud platform and initiate restful request by the WSGI detection components after initialization to server;
Acquisition server responds the feedback result that described restful asks to return, and tests IaaS cloud platform according to described feedback result.
A kind of cloud platform testing system, comprising:
Configuration module, controls virtual machine, computing node virtual machine for configuration in IaaS cloud platform, and configures corresponding network environment;
Initialization module, for starting the WSGI detection components of IaaS cloud platform, and carries out initialization to described WSGI detection components;
Initiation module, under described network environment, controls described IaaS cloud platform and initiates restful request by the WSGI detection components after initialization to server;
Test module, responding for obtaining server the feedback result that described restful asks to return, testing according to described feedback result to IaaS cloud platform.
Above-mentioned cloud platform test method and system, virtual machine, computing node virtual machine is controlled by configuration in IaaS cloud platform, and configure corresponding network environment, restart WSGI detection components, initiate restful request by it to server after carrying out initialization, according to the test result of the feedback result determination cloud platform of restful request, dependence test work is separately carried out without the need to each link created at cloud platform, the work ratio of cloud platform test can be reduced, improve its testing efficiency.
Accompanying drawing explanation
Fig. 1 is the cloud platform test method flow diagram of an embodiment;
Fig. 2 is the cloud platform testing system structural representation of an embodiment.
Embodiment
Be described in detail below in conjunction with the embodiment of accompanying drawing to cloud platform test method and system provided by the invention.
With reference to figure 1, Figure 1 shows that the cloud platform test method flow diagram of an embodiment, comprise the steps:
S10, in IaaS cloud platform, configuration controls virtual machine, computing node virtual machine, and configures corresponding network environment;
In one embodiment, can also comprise before above-mentioned steps S10:
S01, the software virtual machine in IaaS cloud platform is arranged three networks;
Above-mentioned steps S01 mainly comprises the setting of virtual environment in IaaS cloud platform, mainly arrange content can comprise: arrange three networks at VirtualBox (software virtual machine), create in host-only Ethernet Adapter (host ethernet adapter) mode, and establish sub-IP (Internet Protocol, the agreement interconnected between the network) network segment.
S02, arranges three virtual machines as the dominant control node of this network, Controlling vertex and computing node respectively at each network, is respectively each dominant control node, Controlling vertex and computing node and distributes virtual processor, internal memory and disk space;
S03, arranges VLAN respectively at each network;
In above-mentioned steps S03, the VLAN of each network can be Net1, Net2 and Net3; Note not enabling DHCP (Dynamic Host Configuration Protocol, DHCP), otherwise IaaS cloud platform may be disturbed to dispose the built-in DHCP of control.Then dominant control node can be disposed, arranging network is Net1, Attached as (network connection mode) is set to Host-Only pattern, starting Cable Connected (wired communication pattern), dominant control whether deployment success can also being checked, by checking that the port of interdependent node can be verified, such as check http: // main controlled node IP address: port numbers, wherein should be noted that closed node fire compartment wall, if use agency, then can pass through proxy access.
S04, selects release version, operating system, and node mode selects multinode pattern, and intermediate software layer model selection virtual opetrating system simulator, completes the structure of IaaS cloud platform.
In above-mentioned steps S04, operating system can select CentOS (Community EnterpriseOperating System, community's Enterprise Operation System) or Ubuntu ((SuSE) Linux OS based on desktop application), node mode selects Muti-node (multinode pattern) non-HA (dual computer group), Hypervisor (virtual session layer) model selection QEMU (virtual opetrating system simulator), IaaS deployment platform can be created, i.e. IaaS cloud platform.
In one embodiment, above-mentioned steps S10 can comprise:
S11, configuration controls the network of virtual machine, computing node virtual machine respectively;
In above-mentioned steps S11, can pass through three VLAN (Virtual Local Area Network, VLAN) NetWork (network) configuring these two virtual machines in virtual machine is configured to respectively in Host-only Adapter mode, Promiscuous Mode (promiscuous mode) is set to Allow All (allowing any) pattern, enable Cable Connected (wired communication pattern), and then start two virtual machines respectively.
S12, IaaS cloud platform configures dynamic IP addressing, public IP address scope is set, floating IP address scope, management CIDR, store CIDR, virtual machine CIDR and name server, and the network link checking carrying out IaaS cloud platform.
Above-mentioned steps S12 is mainly included in dominant control WEB (webpage) interface configurations IaaS network environment, FlatDHCP (dynamic IP addressing configuration) management can be set respectively, Public IP range (public IP address scope), Float IP range (floating IP address scope), management CIDR (CIDR), store CIDR, virtual machine CIDR and DNS Servers (name server), then carry out network link checking;
The configuration of above-mentioned control virtual machine, computing node virtual machine, the above-mentioned virtual machine configuring VLAN can be selected, set its node role and be respectively Controlling vertex and computing node, also can increase memory node etc. newly according to demand simultaneously, apply above-mentioned configuration, main controlled node can reinstall operating system by associated script file on two virtual machines and IaaS controls and calculation services; The Dashboard (workbench) of IaaS can be logged in after completing, deployment daily record can be checked in main controlled node, and the feature operations such as SystemHealth Check (systemic-function detection) can be carried out.
S20, starts the WSGI detection components of IaaS cloud platform, and carries out initialization to described WSGI detection components;
In one embodiment, above-mentioned steps S20 can comprise:
S21, arranges IP address and the port numbers of the server of IaaS cloud platform, starts WSGI server;
Above-mentioned steps S21 can start WSGI server by performing WSGI.serve_forever () method.
S22, configures the cluster at described IaaS platform place, arranges the address of described cluster, the testing service address of setting test cloud platform;
In above-mentioned steps S22, configuration needs the cluster at the IaaS cloud platform place of carrying out functional test, and need the ID (address) providing cluster, above-mentioned testing service address can be set to http: // 127.0.0.1:8777/v1.
S23, arranges connected mode, and setting detects username information and the time-out time of service system.
In above-mentioned steps S23, connected mode can be set to application/json, and above-mentioned username information can comprise the information such as the title detecting the user name of service system, the user name of password and tenant, test set and method of testing.
The title of above-mentioned testset (test set) can be smoke test, such as smoke; Can be arranged by following code:
Tests==
["gci_health.tests.smoke.test_smoke_compute.SmokeComputeTest.test_list_images"]
Above-mentioned method of testing can be the method for testing of the acquisition image listing of calculating smoke test below smoke test set; The time-out time of the setting of different method of testings can be different, and it realizes by arranging timeout (time-out).
S30, under described network environment, controls described IaaS cloud platform and initiates restful request by the WSGI detection components after initialization to server;
In above-mentioned steps S30, IaaS cloud platform can support Post, and Get, Put tri-kinds of modes initiate restful request to server.
S40, acquisition server responds the feedback result that described restful asks to return, and tests IaaS cloud platform according to described feedback result.
In one embodiment, the feedback result of above-mentioned restful request can show with json form.
The cloud platform test method that the present embodiment provides, virtual machine, computing node virtual machine is controlled by configuration in IaaS cloud platform, and configure corresponding network environment, restart WSGI detection components, initiate restful request by it to server after carrying out initialization, according to the test result of the feedback result determination cloud platform of restful request, dependence test work is separately carried out without the need to each link created at cloud platform, the work ratio of cloud platform test can be reduced, improve its testing efficiency.
With reference to figure 2, Figure 2 shows that the cloud platform testing system structural representation of an embodiment, comprising:
Configuration module 10, controls virtual machine, computing node virtual machine for configuration in IaaS cloud platform, and configures corresponding network environment;
In one embodiment, can also comprise before above-mentioned configuration module:
First arranges module, the software virtual machine in IaaS cloud platform is arranged three networks;
Second arranges module, for arranging three virtual machines respectively at each network as the dominant control node of this network, Controlling vertex and computing node, being respectively each dominant control node, Controlling vertex and computing node and distributing virtual processor, internal memory and disk space;
3rd arranges module, for arranging VLAN respectively at each network;
Build module, for selecting release version, operating system, node mode selects multinode pattern, and intermediate software layer model selection virtual opetrating system simulator, completes the structure of IaaS cloud platform.
In one embodiment, above-mentioned configuration module can comprise:
Enable module, for configuring the network controlling virtual machine, computing node virtual machine respectively;
Authentication module, for configuring dynamic IP addressing in IaaS cloud platform, public IP address scope is set, floating IP address scope, management CIDR, stores CIDR, virtual machine CIDR and name server, and the network link checking carrying out IaaS cloud platform.
Initialization module 20, for starting the WSGI detection components of IaaS cloud platform, and carries out initialization to described WSGI detection components;
In one embodiment, above-mentioned initialization module can comprise:
4th arranges module, for arranging IP address and the port numbers of the server of IaaS cloud platform, starts WSGI server;
Setting module, for configuring the cluster at described IaaS platform place, arranges the address of described cluster, the testing service address of setting test cloud platform;
5th arranges module, and for arranging connected mode, setting detects username information and the time-out time of service system.
Initiation module 30, under described network environment, controls described IaaS cloud platform and initiates restful request by the WSGI detection components after initialization to server;
Test module 40, responding for obtaining server the feedback result that described restful asks to return, testing according to described feedback result to IaaS cloud platform.
In one embodiment, the feedback result of above-mentioned restful request can show with json form.
Cloud platform testing system of the present invention and cloud platform test method one_to_one corresponding of the present invention, the technical characteristic of setting forth in the embodiment of above-mentioned cloud platform test method and beneficial effect thereof are all applicable to, in the embodiment of cloud platform testing system, hereby state.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this specification is recorded.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a cloud platform test method, is characterized in that, comprises the steps:
In IaaS cloud platform, configuration controls virtual machine, computing node virtual machine, and configures corresponding network environment;
Start the WSGI detection components of IaaS cloud platform, and initialization is carried out to described WSGI detection components;
Under described network environment, control described IaaS cloud platform and initiate restful request by the WSGI detection components after initialization to server;
Acquisition server responds the feedback result that described restful asks to return, and tests IaaS cloud platform according to described feedback result.
2. cloud platform test method according to claim 1, is characterized in that, described configuration in IaaS cloud platform controls virtual machine, computing node virtual machine, and also comprises before configuring the step of corresponding network environment:
Software virtual machine in IaaS cloud platform is arranged three networks;
At each network, three virtual machines are set respectively as the dominant control node of this network, Controlling vertex and computing node, are respectively each dominant control node, Controlling vertex and computing node and distribute virtual processor, internal memory and disk space;
At each network, VLAN is set respectively;
Select release version, operating system, node mode selects multinode pattern, and intermediate software layer model selection virtual opetrating system simulator, completes the structure of IaaS cloud platform.
3. cloud platform test method according to claim 1, is characterized in that, described configuration in described IaaS cloud platform controls virtual machine, computing node virtual machine, and the step configuring the network environment of IaaS cloud platform comprises:
Configuration controls the network of virtual machine, computing node virtual machine respectively;
IaaS cloud platform configures dynamic IP addressing, public IP address scope is set, floating IP address scope, management CIDR, store CIDR, virtual machine CIDR and name server, and the network link checking carrying out IaaS cloud platform.
4. cloud platform test method according to claim 1, is characterized in that, described startup WSGI detection components, and carries out initialized step to WSGI detection components and comprise:
IP address and the port numbers of the server of IaaS cloud platform are set, start WSGI server;
Configure the cluster at described IaaS platform place, the address of described cluster is set, the testing service address of setting test cloud platform;
Arrange connected mode, setting detects username information and the time-out time of service system.
5. cloud platform test method according to claim 1, is characterized in that, the feedback result of described restful request shows with json form.
6. a cloud platform testing system, is characterized in that, comprising:
Configuration module, controls virtual machine, computing node virtual machine for configuration in IaaS cloud platform, and configures corresponding network environment;
Initialization module, for starting the WSGI detection components of IaaS cloud platform, and carries out initialization to described WSGI detection components;
Initiation module, under described network environment, controls described IaaS cloud platform and initiates restful request by the WSGI detection components after initialization to server;
Test module, responding for obtaining server the feedback result that described restful asks to return, testing according to described feedback result to IaaS cloud platform.
7. cloud platform testing system according to claim 6, is characterized in that, also comprises before described configuration module:
First arranges module, arranges three networks on the software virtual machine in IaaS cloud platform;
Second arranges module, for arranging three virtual machines respectively at each network as the dominant control node of this network, Controlling vertex and computing node, being respectively each dominant control node, Controlling vertex and computing node and distributing virtual processor, internal memory and disk space;
3rd arranges module, for arranging VLAN respectively at each network;
Build module, for selecting release version, operating system, node mode selects multinode pattern, and intermediate software layer model selection virtual opetrating system simulator, completes the structure of IaaS cloud platform.
8. cloud platform testing system according to claim 6, is characterized in that, institute's configuration module comprises:
Enable module, for configuring the network controlling virtual machine, computing node virtual machine respectively;
Authentication module, for configuring dynamic IP addressing in IaaS cloud platform, public IP address scope is set, floating IP address scope, management CIDR, stores CIDR, virtual machine CIDR and name server, and the network link checking carrying out IaaS cloud platform.
9. cloud platform testing system according to claim 6, is characterized in that, described initialization module comprises:
4th arranges module, for arranging IP address and the port numbers of the server of IaaS cloud platform, starts WSGI server;
Setting module, for configuring the cluster at described IaaS platform place, arranges the address of described cluster, the testing service address of setting test cloud platform;
5th arranges module, and for arranging connected mode, setting detects username information and the time-out time of service system.
10. cloud platform testing system according to claim 6, is characterized in that, the feedback result of described restful request shows with json form.
CN201510209615.XA 2015-04-28 2015-04-28 Cloud platform test method and system Active CN104796304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510209615.XA CN104796304B (en) 2015-04-28 2015-04-28 Cloud platform test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510209615.XA CN104796304B (en) 2015-04-28 2015-04-28 Cloud platform test method and system

Publications (2)

Publication Number Publication Date
CN104796304A true CN104796304A (en) 2015-07-22
CN104796304B CN104796304B (en) 2018-07-31

Family

ID=53560832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510209615.XA Active CN104796304B (en) 2015-04-28 2015-04-28 Cloud platform test method and system

Country Status (1)

Country Link
CN (1) CN104796304B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform
CN113051169A (en) * 2021-03-31 2021-06-29 公安部第三研究所 Method and system for testing functions and interfaces of cloud computing big data platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049383A (en) * 2012-12-31 2013-04-17 博彦科技(上海)有限公司 Development and testing cloud system
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN104468791A (en) * 2014-12-09 2015-03-25 广州杰赛科技股份有限公司 Private cloud IaaS platform construction method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
CN103049383A (en) * 2012-12-31 2013-04-17 博彦科技(上海)有限公司 Development and testing cloud system
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN104468791A (en) * 2014-12-09 2015-03-25 广州杰赛科技股份有限公司 Private cloud IaaS platform construction method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform
CN105302721B (en) * 2015-10-29 2018-06-19 普元信息技术股份有限公司 The system and method for lumped modelling server integration testing is realized in cloud computing platform
CN113051169A (en) * 2021-03-31 2021-06-29 公安部第三研究所 Method and system for testing functions and interfaces of cloud computing big data platform

Also Published As

Publication number Publication date
CN104796304B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US10827008B2 (en) Integrated user interface for consuming services across different distributed networks
CN112119374B (en) Selectively providing mutual transport layer security using alternate server names
US9246765B2 (en) Apparatus and methods for auto-discovery and migration of virtual cloud infrastructure
US11349710B1 (en) Composable edge device platforms
US9910765B2 (en) Providing testing environments for software applications using virtualization and a native hardware layer
US9563459B2 (en) Creating multiple diagnostic virtual machines to monitor allocated resources of a cluster of hypervisors
US8892945B2 (en) Efficient application management in a cloud with failures
US11082499B2 (en) Browser server session transfer
CA2990252A1 (en) Systems and methods for blueprint-based cloud management
CN104679608A (en) Infrastructure visualization platform building method and mirror management structure of infrastructure visualization platform building method
US20230070224A1 (en) Using a remote pod in kubernetes
US11263037B2 (en) Virtual machine deployment
CN104468791A (en) Private cloud IaaS platform construction method
US11425054B1 (en) User-configured multi-location service deployment and scaling
KR20150124001A (en) System for web hosting based cloud service
US11765244B1 (en) Latency-based service discovery and routing for multi-location service-oriented applications
Roda-Sanchez et al. Cloud–edge microservices architecture and service orchestration: An integral solution for a real-world deployment experience
CN104796304A (en) Cloud platform test method and system
US20200106667A1 (en) System and method for live migration for software agents
US11385973B1 (en) High-availability for power-managed virtual desktop access
Wantamanee et al. Virtualising machine to machine (M2M) application using open baton as NFV-compliant framework for building energy management system
CN112351114A (en) Information processing method and device and storage medium
Akbarisamani Service based architecture with service mesh platform in the context of 5g core
NL2027692B1 (en) Pre-provisioning server hardware for deployment on an edge network
US20240028414A1 (en) Techniques for managing edge device provisioning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant