Convert Gradle project into groovy library by using JenkinsPipelineUnit framework

Job ID: 32276865

Budget: €30 – €250 EUR

PRE-REQUISITES
AWS account : dynamoDB table required
Test secret created in Secrets manager
Gradle installed
java 8
awscli (latest version)


I have a set of tests files created for 3 java classes that need to be converted into groovy in this gradle project. The test cases are currently written in java and at the moment do not compile when running ./gradlew test . I have tried to make a start on this but I’m now stuck

This project needs to be converted into groovy as it will be used as a Jenkins shared library. I have provided the files. You may need to initialise a new gradle project if it is not working out of the box

6 scripts that need converting:

fetchCMDB + fetchCMDBTest
fetchSecrets + fetchSecretsTest
updateEnvDashboard + updateEnvDashboardTest

The framework required:

https://github.com/jenkinsci/JenkinsPipelineUnit

There are examples found in that link that may be useful. PLEASE AVOID ANYTHING RELATED TO SPOCK FRAMEWORK

Test environment setup:

Dynamodb table:

Create a Dynamodb table called “env_dashboard”:
And populate with these columns:

envName
component
component_type
appVersion
status
jenkinsUrlBuild
DateTimeDeployment

Create a secret in secrets manager called testSecret
Add keys and values to it such as:
Username : test
Password : testPassword


When running the gradle wrapper ( ./gradlew test), it should execute all of the converted tests with no issues

PLEASE DO NOT BID IF YOU HAVE NO KNOWLEDGE IN ANY OF THE FOLLOWING:
- AWS
- JAVA
- GROOVY
- JENKINS
- -GRADLE
Please add a readme when you are done as it will help out big time! Good luck!