blob: bff1fbece10f3e762810aab337b18ab7a997b713 [file] [log] [blame]
Vodafone84a20982019-03-18 15:08:33 +05301.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4=======================================================
5Externalized Testing & VTP Certifications Query Feature
6=======================================================
7
8The Certifications Query and VTP (External to SDC) testing
9feature was added to Dublin to allow SDC onboarding to reach
10outside of SDC for testing of VSPs being onboarded.
11
12These tests include queries for existing certification
13results for prior versions of the VSP and testing of
14CSAR or HEAT metadata via tests in or downstream of VTP.
15The design includes the ability to configure (see configuration below)
16multiple endpoints that SDC onboarding reaches out to for
17external testing.
18
19This diagram presents the architecture to be achieved in Dublin
20or a future release given the resources available.
21
22.. image:: images/sdc-vtp-opnfv.png
23
24New and Impacted Code
25=====================
26
27The new code for this feature follows the software design
kaihlavie9135d22019-05-17 14:54:25 +030028of the existing onboarding BE. New code is isolated into two
Vodafone84a20982019-03-18 15:08:33 +053029new subprojects contained within openecomp-be within minimal hooks
30elsewhere.
31
32*New code*:
33
34Code that creates an HTTP endpoint exposed to the SDC-FE for this feature is contained
35in this package:
36
37 package: api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services
38
MichaelMorrisd4a002d2022-11-08 14:14:18 +000039Code to hold data types for the VTP API and the implementation of the interface to VTP is contained
Vodafone84a20982019-03-18 15:08:33 +053040in these packages:
41
MichaelMorrisd4a002d2022-11-08 14:14:18 +000042Provide the API and serialisation classes for the REST API to VTP
Vodafone84a20982019-03-18 15:08:33 +053043
44 package: lib/openecomp-sdc-externaltesting-lib/openecomp-sdc-externaltesting-api
45
46Implementation of the interface to VTP and Registry that are available for the HTTP endpoint above.
47
48 package: lib/openecomp-sdc-externaltesting-lib/openecomp-sdc-externaltesting-impl
49
50*Updated Code*:
51
52To hook this new code into the web app, these additional changes were
53made:
54
55* api/openecomp-sdc-rest-webapp/pom.xml
56 - Updated pom to include new module to build.
57* api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml
58 - Update pom to include externaltesting libraries.
59* api/openecomp-sdc-rest-webapp/onboarding-rest-war
60 - Update src/main/webapp/WEB-INF/beans-services.xml so that the external testing service beans are instantiated.
61
62
63
64
65Configuration
66=============
67
68Configuration was added to the onboarding backend yaml in
69order to know the URLs to reach VTP and external testing sources.
70The full configuration is documented in the configuration section
kaihlavie9135d22019-05-17 14:54:25 +030071of this manual. For details, see the BE-onboarding-configuration.yaml
72section. Here is an example of the yaml.
Vodafone84a20982019-03-18 15:08:33 +053073
74::
75
76 # External Testing Configuration
77 externalTestingConfig:
78 #array of endpoints that SDC-BE should connect with for external testing
79 endpoints:
80 // ID for endpoint
81 - id: vtp
82 // what format of post request does the endpoint accept for runs - json or multi-part form
83 postStyle: application/json
84 // is this enpoint enabled or disabled.
85 enabled: false
86 // base URL for the endpoint
87 url: http://ec2-34-237-35-152.compute-1.amazonaws.com:9090
88 // optional api key to pass in header to endpoint
89 apiKey: blahblahblah
90 - id: certifications repository
91 postStyle: application/json
92 url: http://ec2-34-237-35-152.compute-1.amazonaws.com:9090
93 enabled: true
94 apiKey: blahblahblah2
95