Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Kaczmarek committed Nov 21, 2019
1 parent 1b2d95a commit f9ea0c5
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,59 @@
# Evidence Management Test Helper

This is a client library to facilitate common task during functional tests

This is a client library to facilitate common task during functional tests, like:
- IDAM user creation
- S2S authentication
- CCD case creation
- CCD DEFINITION import
- CCD definition import

Usage:

- Include EmTestConfig in your Spring Test

<pre>
@SpringBootTest(classes = {EmTestConfig.class})
@PropertySource(value = "classpath:application.yml")
@RunWith(SpringRunner.class)
public class MyTestScenario {
</pre>

- Make sure that Particular Helpers are initiated by providing URL to the respective services

<pre>
idam:
api:
url: 'http://localhost:4501'
client:
id: 'webshow'
secret: 'AAAAAAAAAAAAAAAA'
redirect_uri: 'http://localhost:8080/oauth2redirect'

s2s:
api:
url: 'http://localhost:4502'
ccdGwSecret: 'AAAAAAAAAAAAAAAA'
ccdGwServiceName: 'ccd_gw'

document_management:
url: 'http://localhost:4603'

ccd-def:
api:
url: 'http://localhost:4451'

core_case_data:
api:
url: 'http://localhost:4452'
</pre>

Then @Autowire the following components:
- IdamHelper
- S2sHelper
- DmHelper
- CcdDataHelper
- CcdDefinitionHelper

see functional tests in "aat" source folder for examples

### Prerequisites

Expand Down

0 comments on commit f9ea0c5

Please sign in to comment.