fabiobrz / eap-microprofile-test-suite

a small standalone test suite for MicroProfile on WF/EAP
Apache License 2.0
0 stars 0 forks source link

File a new PR for first iteration (TP req.: RHOAR QE migration + customer scenario App) #4

Closed fabiobrz closed 4 years ago

fabiobrz commented 4 years ago
fabiobrz commented 4 years ago

Extract test opportunities to satisfy TP requirements: RHOAR QE migration + customer scenario APP

Two type of tests have been migrated with a 1-1 mapping from RHOAR QE TS to EAP MP TS, see [1]:

[1] https://github.com/jboss-eap-qe/eap-microprofile-test-suite/issues/11

fabiobrz commented 4 years ago

Design/develop application first stub

fabiobrz commented 4 years ago

Extract test opportunities to satisfy TP requirements: RHOAR QE migration + customer scenario APP

fabiobrz commented 4 years ago

Design/develop application first stub

fabiobrz commented 4 years ago

Design/develop application first stub

fabiobrz commented 4 years ago

PR was sent, see https://github.com/jboss-eap-qe/eap-microprofile-test-suite/pull/79

Testing scenario

The scenario involves a Services Provider deployment which services - which are mainly get* operations, i.e. just for consultation - are meant to be accessed only by Local Service Routers. This scenario comes from previous personal working experience cases and provides with several testing opportunities which could be mapped to TP requirements. First iteration is supposed to add coverage for tests migrated from [1] for which following test case scenario has been implemented (Note: no Local Service Router app has been developed yet because not needed for this initial work).

Services Provider (SP) is exposing services that can be accessed only by authorized and well known Local Service Routers (LSR), which in turn are available to the public. For this reason LSR are requested to expose the same services that the SP expose and to route the call to it in order to get results which will be finally sent to the end-user.

MP OpenAPI fits perfectly this scenario - see the specs [2] - thus the JAX-RS resource (DistrictResource) provided by SP application has JAX-RS or proper MP OpenAPI annotations to let the /openapi endpoint return correspondent OpenAPI compliant document for LSRs to implement both their own facade to public audience and to internally call the SP services, too.

Testing opportunities to cover TP requirements for [1]:

  1. Services Provider developers must provide PoC to guarantee that Local Service Routers vendors can easily manipulate generated doc contents to modify some properties, e.g. the operation extension used to document which local router is actually exposing the service to the public.
  2. Services Provider developers must provide PoC to guarantee that operations having just JAX-RS annotations are properly documented for params.
  3. Services Provider developers must provide PoC to guarantee that operations having just JAX-RS and @ApiResponse (to specify @Schema) annotations are properly documented.
  4. Services Provider developers must provide PoC to guarantee that new annotations/features available in v11 are properly documented.
  1. ProgrammingModelTest provides coverage for Java EE Microprofile samples - which operate through the programming model for MP OpenAPI - and verifying programmatic modification to the generated document [see case 1.].
  2. OpenApi10OnJaxRsAnnotationsTest provides coverage for RHOAR QE TS v10 tests, verifying that the generated YAML contains both information generated from JAX-RS annotations and from @ApiResponse/@Content/@Schema` definition [see case 2. and 3.].
  3. MicroProfileOpenApi11Test provides coverage for RHOAR QE TS v11 tests, verifying new features as: patch being documented, example attribute for @Content and parseValue for @Extension[see case 4.].

[1] jboss-eap-qe#11

[2] https://download.eclipse.org/microprofile/microprofile-open-api-1.1/microprofile-openapi-spec.html#_introduction