Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
5940ed2
Use Markdown Architectural Decision Records https://adr.github.io/madr/
s2oBCN Nov 18, 2021
6044cc7
test ok
s2oBCN Jan 12, 2022
452c8e5
leva and docgen connected with IOC
s2oBCN Jan 13, 2022
ceec3a2
remove components: clean code
s2oBCN Jan 13, 2022
352f44a
refactor structure
s2oBCN Jan 13, 2022
3b6d366
add controller
s2oBCN Jan 13, 2022
f744057
all tests ok
s2oBCN Jan 18, 2022
837b429
removed PipelineSteps
s2oBCN Jan 25, 2022
9f24910
remove code
s2oBCN Jan 25, 2022
70d5c3a
remove code
s2oBCN Jan 25, 2022
96bfad5
solved tests errors
s2oBCN Jan 26, 2022
dd1227a
clean code
s2oBCN Jan 26, 2022
85efa39
clean code
s2oBCN Jan 26, 2022
7940ac3
refactor structure
s2oBCN Jan 26, 2022
22bc475
upgrade gradle
s2oBCN Jan 27, 2022
219b1d7
Tmp commit of utils we need to implement.
Jan 27, 2022
9749006
Removing jenkins dependencies
Jan 27, 2022
68f4ab5
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Jan 27, 2022
2c3620a
Removal of not needed methods.
Jan 27, 2022
4fe4c94
Removing token
Jan 27, 2022
b304eb9
Needed projectData param.
Jan 27, 2022
998be65
projectDataKey
Jan 27, 2022
81cc5c5
fixes url generation problem.
Jan 27, 2022
ec76ea8
add bitbucketServer
s2oBCN Jan 31, 2022
9d19159
Fixes bug in replacement.
Jan 31, 2022
0ca791f
better solution to bug.
Jan 31, 2022
056c9de
startServer(RECORD)
Jan 31, 2022
ab0af96
Adds non-fixed project id in calls.
Feb 1, 2022
62e07f5
imrpove controller params
s2oBCN Feb 3, 2022
cba6cfd
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
s2oBCN Feb 3, 2022
8e5734d
imrpove controller params
s2oBCN Feb 3, 2022
c765e01
imrpove controller params
s2oBCN Feb 3, 2022
02f1d9e
removed docGen mockServer
angelmp01 Feb 4, 2022
c0a7de6
tmp commit
Feb 4, 2022
f56e318
GitRepoDownloadService
Feb 7, 2022
22cd87d
added bitbucket wiremock files for function tests
angelmp01 Feb 7, 2022
2c58a09
Still identifying problems...
Feb 7, 2022
248e74b
Merge branch 'feature/moveLevaDoc' into origin/downloadDependenciesFr…
Feb 7, 2022
e56db71
- Added compatibilty to use wkhtmltopdf service installed on a Window…
Feb 8, 2022
50ef81c
add contract testing -iteration1
s2oBCN Feb 8, 2022
896fb6e
add contract testing -iteration1
s2oBCN Feb 8, 2022
36f8900
ignre tests that have to be review later
s2oBCN Feb 8, 2022
0bde024
test ok minus ssds
s2oBCN Feb 8, 2022
70e553e
Updated bitbucket wiremock files
angelmp01 Feb 8, 2022
ab88222
Working tst
Feb 8, 2022
87b2553
Improving tests.
Feb 8, 2022
36fe9fc
Testing no copy behavior.
Feb 8, 2022
032a195
Merge branch 'feature/moveLevaDoc' into origin/downloadDependenciesFr…
Feb 8, 2022
4936f64
deprecates copyProjectDataToTemporalFolder
Feb 15, 2022
c49a25b
problems with dependencies in docker
s2oBCN Feb 19, 2022
d581725
Merge branch 'feature/moveLevaDoc' into downloadDependenciesFromBitBu…
Feb 21, 2022
271d142
- Updated bitbucket wiremock url from localhost:9001 to localhost:900…
Feb 22, 2022
bb383b4
Remove TODO.
Feb 22, 2022
d6ee4f4
Merge branch 'downloadDependenciesFromBitBucket' into feature/moveLev…
Feb 22, 2022
2e557f6
Improves error messages.
Feb 22, 2022
73149c3
fixed some errors and added some references to ordgp project
Feb 23, 2022
f9a131d
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Feb 23, 2022
7864dd7
Allows to have multiple fixtures
Feb 23, 2022
8b50f77
Bug to be fixed...
Feb 23, 2022
65a80f3
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Feb 23, 2022
33ac22c
- Fixed some tests and WIP for WiremockReleaseRepository
Feb 23, 2022
d697675
- Fixed tests, WiremockReleaseRepository in progress
Feb 24, 2022
049e227
- Fixed func tests and WiremockReleaseRepository
Feb 24, 2022
55b0cdc
Merge remote-tracking branch 'origin/feature/moveLevaDoc' into downlo…
Feb 24, 2022
711bb48
Improves test and protects implementation.
Feb 24, 2022
9c25b60
Show exception msg in jenkins logs.
Feb 24, 2022
f523e22
- Some litle fixes in GitRepoDownloadService
Feb 25, 2022
69bc1a6
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Feb 25, 2022
1188636
Downloads git repository.
Feb 25, 2022
ed00e83
Downloads repo instead of zip of repo.
Feb 25, 2022
d4cb816
- Added pact def files
Feb 26, 2022
acbecdd
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Feb 26, 2022
8b54ba5
Security issues.
Feb 28, 2022
599f161
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Feb 28, 2022
7e218e7
Fixed tests.
Feb 28, 2022
08e1400
Tests for gitCloneRepo
Feb 28, 2022
62be407
Removes problematic char in tests names.
Feb 28, 2022
a8debd3
GitRepoDownloadServiceForWireMock
Mar 1, 2022
764c6ce
contrat
s2oBCN Mar 1, 2022
42ec0d2
test ok
s2oBCN Mar 2, 2022
0ebef97
merge
s2oBCN Mar 2, 2022
11c02b2
merge
s2oBCN Mar 2, 2022
c0f5a74
merge
s2oBCN Mar 2, 2022
8f7d7bd
parse
s2oBCN Mar 2, 2022
24986a1
Fixed test.
Mar 3, 2022
482e6e7
Saved status
Mar 4, 2022
7c5c7c3
Working implementation.
Mar 4, 2022
5c6c5e5
Now test downloads example files.
Mar 4, 2022
0d9a58b
Fixed test and impl.
Mar 4, 2022
5471e87
correct null in SSDS
s2oBCN Mar 5, 2022
760e486
merge
s2oBCN Mar 5, 2022
26bd51a
releaseManagerBranch
s2oBCN Mar 5, 2022
dadb72a
download reports
s2oBCN Mar 7, 2022
f9126a3
properties
s2oBCN Mar 7, 2022
5316601
downloadZip -> downloadAndExtractZip
Mar 7, 2022
197ae24
JUnitReportsServiceSpec tests WORKING
Mar 7, 2022
30f88d6
Test download and unzip tests files
Mar 7, 2022
2835a59
Tests downloadAndExtractZip
Mar 7, 2022
700e265
Checks test result.
Mar 7, 2022
dadd398
- Added xunit files into ordgp workspace
Mar 7, 2022
29ec358
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 7, 2022
d740861
manage properties
s2oBCN Mar 7, 2022
ccd65b9
merge
s2oBCN Mar 7, 2022
6b8cd73
downloadComponentPDF
Mar 7, 2022
ee205ca
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Mar 7, 2022
a5b2a5a
Fixes test.
Mar 7, 2022
9eae7f1
- Fixed download and extract nexus zip file
Mar 8, 2022
645e5bc
- Fixed ssds
Mar 8, 2022
3c582d3
- Moved DocGenUseCase.downloadComponentPDF to NexusService and refact…
Mar 8, 2022
81415da
Please use a dynamic port to avoid problems.
Mar 8, 2022
8be69eb
- Skipped brassp project from functional tests
Mar 8, 2022
73d5960
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Mar 8, 2022
9da7425
Correct urls.
Mar 8, 2022
15546b5
- Fixed overall documents funct test
Mar 8, 2022
cdc6b7a
- Added exceptions and commented a line in LevaFunctTest
Mar 9, 2022
1e2aba6
Resources for tests
Mar 9, 2022
3e7c13f
TODO for s2o
Mar 9, 2022
7cc3de1
- Fixed overall documents
Mar 9, 2022
1e672b4
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 9, 2022
d7c8865
Removed ref to missing var.
Mar 9, 2022
e31680c
Keeps if part of no_neux=true, as S2o did before.
Mar 9, 2022
01fcf37
- Updated wiremock files
Mar 9, 2022
d685e78
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 9, 2022
a588810
Upgrades wkhtmltox to 0.12.6-1
Mar 9, 2022
55bc453
Upgrades wkhtmltox to 0.12.6-1
Mar 9, 2022
b497e7a
- Updated wiremock files
Mar 9, 2022
2e5d2be
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 9, 2022
a42db19
Install wkhtmltox dependencies.
Mar 9, 2022
1c2089d
Merge branch 'feature/moveLevaDoc' of github.com:/opendevstack/ods-do…
Mar 9, 2022
54d702d
TODOs for s2o (please help us!!)
Mar 9, 2022
cd49cd1
Fixes docker img generation
Mar 10, 2022
b800668
- Updated Wiremock config within funct test
Mar 10, 2022
e4dc122
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 10, 2022
9852b3d
- Added wiremock files
Mar 10, 2022
d582505
Utility to run commands in docker container.
Mar 10, 2022
2e41be8
Merge branch 'feature/moveLevaDoc' of github.com:/opendevstack/ods-do…
Mar 10, 2022
d0de3e1
Fixes usage of wkhtmltopdf in docker container.
Mar 11, 2022
3f70e6b
Fixes needed to use docker img to run wkhtmltopdf
Mar 11, 2022
e33f5e4
Fixes wkhtmltopdf tests.
Mar 11, 2022
e5ae7aa
Fixes test that works from templates
Mar 11, 2022
c452a9c
Cleaning tmp files.
Mar 11, 2022
9a6e964
Wiremock and expected resources.
Mar 11, 2022
fdeead9
Use proxy only in local env.
Mar 11, 2022
795e674
Removes not needed gradle step: dockerTest
Mar 11, 2022
2dfd410
expose needed ports
Mar 14, 2022
30e0f07
Revert "Removes not needed gradle step: dockerTest"
Mar 14, 2022
68c0fa6
build pdf with docker
s2oBCN Mar 14, 2022
0f3b988
docker with proxy
s2oBCN Mar 14, 2022
c1d6693
Merge branch 'feature/moveLevaDoc' into feature/moveLevaDocPdfDocker
s2oBCN Mar 14, 2022
4e763e1
changelog
s2oBCN Mar 14, 2022
2d64e81
api check
s2oBCN Mar 14, 2022
5886973
- Fixed funct test
Mar 14, 2022
b241d24
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 14, 2022
11ba429
port to windows with docker
s2oBCN Mar 14, 2022
3d8c79c
Merge pull request #77 from opendevstack/feature/moveLevaDocPdfDocker
s2oBCN Mar 14, 2022
854bae7
- Fixed some tmp folder stuff
Mar 15, 2022
727125b
Feature/all funct test with same temp folder (#78)
angelmp01 Mar 15, 2022
3829002
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 15, 2022
d1455e7
Feature/remove from cache test data (#79)
angelmp01 Mar 15, 2022
c7ff4b6
Feature/move leva doc gradle (#80)
s2oBCN Mar 16, 2022
a6ca341
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 16, 2022
30f01cb
use proxy from environment
s2oBCN Mar 16, 2022
cd2c570
use proxy from environment
s2oBCN Mar 16, 2022
f70e6d4
Feature/wiremock document repository changes (#81)
angelmp01 Mar 17, 2022
c9bb91d
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 17, 2022
34750c7
Correct null checking.
Mar 17, 2022
c4a9825
Feature/move leva doc record and play (#82)
s2oBCN Mar 18, 2022
1642eba
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 18, 2022
86dbaea
add buildNumber (#83)
s2oBCN Mar 18, 2022
dfde863
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Mar 21, 2022
8e1cba3
- Removed host from jenkins log url and test results urls
Mar 21, 2022
de12b25
Removes host part in payloads for tests and jenkins logs..
Mar 21, 2022
8ccd529
Removes deprecated param repoURL
Mar 22, 2022
7042bf1
Removes unused param repoURL.
Mar 22, 2022
bbb0375
Wiremock resources updated.
Mar 22, 2022
faacbcc
github actions (#84)
s2oBCN Mar 22, 2022
b72e36a
Update README.md
s2oBCN Mar 22, 2022
74c2d03
Merge branch 'feature/moveLevaDoc' into feature/removeHostsFromBodyUrls
Mar 22, 2022
45b61dc
changelog changes
Mar 22, 2022
423264d
New resources and pdfs needed by wiremock tests.
Mar 22, 2022
c8d8ac3
wiremock resources
Mar 22, 2022
1487dd7
merge
s2oBCN Mar 22, 2022
7023128
Removes outdated wiremock resources.
Mar 22, 2022
e001b41
Downloads unit tests when required to do it.
Mar 22, 2022
cc6a7b3
new wiremock resources and resulting pdfs.
Mar 23, 2022
31c673a
Fixes typos in showing urls
Mar 23, 2022
4d778b9
Logging levels when running tests.
Mar 23, 2022
e5c2f42
Missing wiremock resources.
Mar 23, 2022
e522f80
fixes tests that were failing.
Mar 23, 2022
1eb3cbe
Merge pull request #85 from opendevstack/feature/removeHostsFromBodyUrls
victorpablosceruelo Mar 23, 2022
0f4a436
Feature/move leva doc fixtures (#86)
s2oBCN Mar 25, 2022
b10f266
rebuildGitRepoUrl
Mar 29, 2022
993b097
Improves error msgs in nexus upload.
Mar 29, 2022
90340eb
typo
Mar 29, 2022
90a93bd
Fixes error generating bitbucket url.
Mar 29, 2022
28cb21f
Improves text in tests description
Mar 30, 2022
00095cb
Adds test to check upload to nexus.
Mar 30, 2022
b8e9727
Fixes nexus upload problem.
Mar 30, 2022
1106366
Needed debug info.
Mar 30, 2022
30ca570
Adds extra checks when combining test results.
Mar 30, 2022
3af473f
reviewed levaDocWithTests
s2oBCN Mar 30, 2022
e017741
component ok
s2oBCN Mar 30, 2022
d077725
xml
s2oBCN Mar 30, 2022
a748e14
donwload repo with fallback (#89)
s2oBCN Mar 31, 2022
39540b1
Revert "Adds extra checks when combining test results."
Mar 31, 2022
2ff0457
Revert "Needed debug info."
Mar 31, 2022
7de32e0
Merge branch 'feature/moveLevaDoc' into testingInaBox
Mar 31, 2022
4addf36
xml ok
s2oBCN Mar 31, 2022
047243b
Typo: need an extra /
Mar 31, 2022
95619aa
urls normalization.
Apr 1, 2022
81d037e
Mofications requested in PR.
Apr 1, 2022
a457016
changelog enforcer
Apr 1, 2022
5957b89
Merge branch 'feature/modeLevaXMLresults' into testingInaBox
Apr 1, 2022
139d1ce
Feature/mode leva xm lresults (#90)
s2oBCN Apr 4, 2022
2750164
Merge branch 'master' into feature/moveLevaDoc
s2oBCN Apr 4, 2022
690d0c1
merged and re-recorded test
s2oBCN Apr 4, 2022
8d025eb
overide bitbucket url
s2oBCN Apr 4, 2022
8af414e
Merge pull request #88 from opendevstack/testingInaBox
victorpablosceruelo Apr 4, 2022
88d976d
two typos little fixes
Apr 4, 2022
6f57e1a
copy expected doc comp (#91)
s2oBCN Apr 5, 2022
707aaed
Merge branch 'feature/moveLevaDoc' of https://github.com/opendevstack…
Apr 5, 2022
1b093ac
Accept nexus base url with and without slash at the end (#93)
angelmp01 Apr 5, 2022
5aa0e48
jenkinLog -> jenkinsLog
Apr 5, 2022
7218b83
Feature/move leva doc cache temporal (#92)
s2oBCN Apr 5, 2022
8754b78
Merge branch 'feature/moveLevaDoc' of github.com:opendevstack/ods-doc…
Apr 6, 2022
e665e9c
Logs result sent back to shared lib.
Apr 6, 2022
6a7b61f
updated repositories source from project.repositories to data.reposit…
Apr 8, 2022
78912f1
Merge branch 'testingInaBox' into feature/add-component-params-to-ove…
Apr 11, 2022
82897b0
changelog.
Apr 11, 2022
200595f
Merge branch 'testingInaBox' into feature/add-component-params-to-ove…
Apr 11, 2022
579d65c
Merge pull request #95 from opendevstack/testingInaBox
victorpablosceruelo Apr 11, 2022
ae116c0
Need to normalize uris before calling to nexus.
Apr 11, 2022
22622db
Tries to solve: Cannot resolve which method to invoke for [null] due …
Apr 11, 2022
b13179e
Tries to fix overloading problem when arg is null.
Apr 11, 2022
b398b3e
Error must show what is not going as expected.
Apr 12, 2022
c136731
Log problem: no test files found.
Apr 12, 2022
4834fbf
Fixes bug null test results when not reported by shared library.
Apr 12, 2022
e2cf8d2
Merge branch 'feature/moveLevaDoc' into feature/add-component-params-…
victorpablosceruelo Apr 12, 2022
062e0a3
Merge pull request #98 from opendevstack/feature/add-component-params…
victorpablosceruelo Apr 12, 2022
6c05a04
Removes failing tests: TIP and overall TIR.
Apr 12, 2022
eaca53a
Seems that class attribute in not updated as it should.
Apr 12, 2022
ccab108
Tries to log when changing url.
Apr 12, 2022
6f57cbb
Correct way to change hardcoded urls.
Apr 12, 2022
fba1242
Typo.
Apr 12, 2022
33c6edc
Restore bounded memory consumption when fixing PDF destinations (#96)
Apr 12, 2022
30f370e
Fix CVE-2022-22965 (#97)
Apr 12, 2022
3a185a4
Feature/remove byte array (#94)
hrcornejo Apr 13, 2022
9d7935b
Add pending commits from master of Shared Library (#102)
hrcornejo Apr 21, 2022
16b76c2
update readme and restructure code (#103)
s2oBCN Apr 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and test

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest
container:
# TODO https://github.com/opendevstack/ods-quickstarters/issues/766
image: s2obcn/jdk-11_openj9-wkhtmltopdf-ubi:main
env:
WKHTML_TO_PDF_WITH_DOCKER: false
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build with Gradle
run: ./gradlew clean test --stacktrace --no-daemon

- name: TestReport
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: JUnit Report
path: build/reports/**/**
2 changes: 1 addition & 1 deletion .github/workflows/changelog-enforcer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: dangoslen/changelog-enforcer@v2
with:
changeLogPath: 'CHANGELOG.md'
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/continuous-integration-workflow.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/e2e-tests-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: e2e and performance Test

on: [ pull_request ]

jobs:
e2eTest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Docker test
run: ./gradlew dockerTest --stacktrace --no-daemon

- name: TestReport
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: JUnit e2e Report
path: build/reports/**/**

performanceTest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Performance test
run: ./gradlew gatlingRun --stacktrace --no-daemon

- name: TestReport
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: JUnit performance test Report
path: build/reports/**/**
26 changes: 19 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
# Changelog

- Temporal change with add LevaDoc 3.


## Unreleased
- Fix TIR and DTR documents are not properly indexed ([#55](https://github.com/opendevstack/ods-document-generation-svc/pull/55))
- Fix wkhtmltox hangs ([#66](https://github.com/opendevstack/ods-document-generation-svc/pull/66))
- Improve memory management and error handling ([#70](https://github.com/opendevstack/ods-document-generation-svc/pull/70))
- ODS AMI build failing due to broken x11 fonts package installation ([#74](https://github.com/opendevstack/ods-document-generation-svc/pull/74))
- Use Markdown Architectural Decision Records https://adr.github.io/madr/
- Improve maintainability by adding SpringBoot framework
- Added IT (Docker tests)
- Added performance tests
- logback.xml can be overridden from command line
- removed unused params from payloads.
- removed param jekins to jenkins
- Removed byte[] use
- Set test summary for empty description in TCR ([#837](https://github.com/opendevstack/ods-jenkins-shared-library/pull/837))
- Set test summary for empty description in TCR for acceptance tests ([#837](https://github.com/opendevstack/ods-jenkins-shared-library/pull/844))

## [4.0] - 2021-18-11
=======
### Added
- Added log to print /document endpoint input

### Fixed
- Github template tests fail in proxy environment ([#56](https://github.com/opendevstack/ods-document-generation-svc/issues/56))
-

## [4.0] - 2021-15-11

### Added
- Added log to print /document endpoint input
- Fix TIR and DTR documents are not properly indexed ([#55](https://github.com/opendevstack/ods-document-generation-svc/pull/55))

### Changed
- Updated maxRequestSize value from 100m to 200m
Expand Down
71 changes: 0 additions & 71 deletions Jenkinsfile

This file was deleted.

53 changes: 35 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,61 @@

# ODS Document Generation Service

A document generation service that transforms document templates in a remote Bitbucket repository into PDF documents.
A document generation service that:
- Transforms document templates in a remote Bitbucket repository into PDF documents.
- Generate LeVA documentation and uploads them to a Nexus service

## Distribute
In order to generate a distributed app a Docker client needs to be configured.
- The _gradle_ task: __dockerBuildImage__ generates a Docker image with the application

### Environment
The file src/main/resources/application.yml has the properties and parameters that the app admit.

## Unit Tests
In order to execute the tests a Docker client needs to be configured.

```
make shadowJar
gradle test
```

## Run
## Integration Tests
In order to execute the tests a Docker client needs to be configured.

```
make run
gradle dockerTest
```

## Test
## Performance Tests
In order to execute the tests a Docker client needs to be configured.

```
make test
gradle gatlingRun
```

## Document Templates

When processing a template `type` at a specific `version`, and data into a document, the DocGen service expects the BitBucket repository to have a `release/${version}` branch that contains the template type at `/templates/${type}.html.tmpl`.

## Requirements
## LeVA Doc generation
When generating LeVA documentation, the app expects the xml tests results and the Jenkins Logs to be in a Nexus service.

### Packages
## Structure package
Main groovy code in src/main/groovy:
- org.ods.doc.gen.core: common 'utilities'
- org.ods.doc.gen.adapters: clients to other systems. They translate the interfaces of external systems to the interfaces required.
- org.ods.doc.gen.doc: LeVA document generation functional module
- org.ods.doc.pdf.builder: PDF generation document functional module

- [wkhtmltopdf](https://wkhtmltopdf.org/)

### Environment
## History
The module __"leva.doc"__ is a refactor extracted from the LevaDoc functionality of the [shared-library](https://github.com/opendevstack/ods-jenkins-shared-library).
You can see the shared-library before the refactor here: https://github.com/opendevstack/ods-jenkins-shared-library/tree/feature/beforeMoveLevaDoc

- `BITBUCKET_URL`
- `BITBUCKET_USERNAME`
- `BITBUCKET_PASSWORD`
- `BITBUCKET_DOCUMENT_TEMPLATES_PROJECT`
- `BITBUCKET_DOCUMENT_TEMPLATES_REPO`
Some correspondences between the shared-lib classes and this project:
- org.ods.orchestration.util.Project => org.ods.doc.gen.project.data.ProjectData
- org.ods.orchestration.usecase.LeVADocumentUseCase => org.ods.doc.gen.leva.doc.services.LeVADocumentService
- org.ods.orchestration.usecase.DocGenUseCase => org.ods.doc.gen.leva.doc.services.DocGenService
- org.ods.orchestration.util.DocumentHistory => org.ods.doc.gen.leva.doc.services.DocumentHistory
- org.ods.orchestration.usecase.PDFUtil => org.ods.doc.gen.leva.doc.services.PDFService

## Reference

This project is based on https://github.com/jooby-project/gradle-starter.
Loading