-- README needs updating.
This template can be used as the starting point for a project that will produce docker images. These docker images act as micro engiines for our products.
To get started with this template, you will need to first fork it and make it your own. Execute the following to get your repository set up:
- Fork this repository
- By default your new repository will have the same name. This will need to
be changed to something meaningful. From the repository's main page, select
edit project
from the settings button. - From the
Rename repository
section, change the project name and the path values to your desired name. Make sure you keep path and name consistent to avoid confusion. When ready, rename the project. - From the same settings page, locate the option to break the fork relationship and break the relationship. This will simplify future merge requests. Note that if this step is not taken, future merge request will default to the original repository.
Now that your repository has been named, you are ready to configure the build
script. Start by cloning the repository. The first thing to do is to edit
the master/build.gradle
file. You will want to change the product
and group
variables to something relevant to your repository. Note that these values will
be used in both the SonarQube scans and the binary repository. If needed,
change the version variable as well.
With the build script changed, you can now start adding your code to the repository.
Go ahead and delete the example project, add your projects and update the master/settings.gradle
file accordingly.
When the repository is ready for others to contribute, update CONTRIBUTING.md
file and
add this repository's masters to the "List of masters for this project"
This template project provides the ability to set up a RAD 9.5 based development environment. Before setting up an environment for the first time, you will need to configure Gradle with the location of your RAD 9.5 installation:
- Edit the
gradle.properties
file in your<user home>/.gradle
directory. E.g.c:\users\blima\.gradle
. - If the file doesn't exist, create a new empty file.
- Add a new property named
radHome
pointing to your RAD installation directory. E.g.radHome=c:\software\SDP95
- Add a new property named
libertyHome
pointing to your Liberty installation directory. E.g.libertyHome=c:\software\liberty
- Save the file.
To set up a new workspace, perform the following steps:
- Clone this repository.
- From your local directory, cd into master
cd master
. - From the master directory, run
gradlew newWorkspace
. - This will create a new RAD workspace and import all configured projects. The workspace is now useable in RAD.
To execute a local build, run gradlew build
from your master
directory.
When commits are pushed to GitLab, they are automatically built and the results
are available in the Builds
section of the project. When feature branches are
merged into master
, the master
branch is built and if successful artifacts
are published to our Nexus server.
In addition, a SonarQube validation scan is run and the results are available on
the SonarQube server.
Follow the README
file in subproject idc-admin-console
.
Usage
gradlew clean build pushWCHAssets -PpushType=QA
- Before run the command, you need have all the WCH tenant credentials in your system environment, the environment variable names are
QA_WCH_USER
,QA_WCH_PASSWORD
,QA_WCH_API_URL
. Otherwise you will get GradleException. - pushWCHAssets has dependency on prepareWCHAssets and prepareWCHManifest, prepareWCHAssets will copy the contents under
idc-admin-console/build/dist
toidc-admin-console/build/wchAssets/assets
. - After prepareWCHAssets, prepareWCHManifest task will generate WCH manifest file based on the assets under
idc-admin-console/build/wchAssets/assets
. - when prepareWCHManifest task finished, pushWCHAssets will get the WCH Credentials based on the pushType, then it will push all the assets under
idc-admin-console/build/wchAssets/assets
to Watson Content Hub.
Check the Unit Test Guideline with Karma and Jasmine to get an idea of the unit tests.
Steps to run the test cases under the orgadmin-fvt-tests project
- Import the
commerce-management-fixture
andorgadmin-fvt-tests projects
to your IDE workspace. - Update config.properties: Most likely you will need to modify MACHINE.1.HOSTNAM, 2FA_ENABLED, and CHROME_DRIVER_SERVER_PATH, change others as your environment details.
- Update the xml files under the data folder, since they include information required by the automation scripts. For example, UserInfo.xml includes the user info used to log into the machine.
- Run all of the orgadmin tests as junit by running allTest.java under
com.ibm.commerce.orgadmin.fvt.testbuckets
, or you can run each of the test case undercom.ibm.commerce.orgadmin.fvt.test
.
Check the UI Automation Guideline to get an idea of the UI Automation Tests.