blob: ffb6456f552c7e49c28fecebd41b8986512fd79e [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
28of the existing onboarding BE. New code is isolated into two
29new 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
39Code to hold data types for the VTP API and the implemation of the interface to VTP is contained
40in these packages:
41
42Provide the API and serialization classes for the REST API to VTP
43
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
71of this manual. For details, see the BE-onboarding-configuration.yaml
72section. Here is an example of the yaml.
73
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