Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
81882ac
updated workflow script
ParameswaranSajeenthiran Apr 1, 2025
c355441
Merge branch 'wso2:main' into main
ParameswaranSajeenthiran Apr 1, 2025
4074dd2
Merge branch 'wso2:main' into main
ParameswaranSajeenthiran Apr 2, 2025
2d9c514
Merge branch 'wso2:main' into main
ParameswaranSajeenthiran Apr 6, 2025
04f5d49
added test.sh, is-setup and maven.yml
ParameswaranSajeenthiran Apr 6, 2025
8837f6c
reverted pom.xml
ParameswaranSajeenthiran Apr 6, 2025
8a5297e
reverted pom.xml
ParameswaranSajeenthiran Apr 6, 2025
0a0bf73
added geckodrivers download
ParameswaranSajeenthiran Apr 6, 2025
42e29d6
added geckodrivers download
ParameswaranSajeenthiran Apr 6, 2025
2c0d801
added other tests in consent
ParameswaranSajeenthiran Apr 6, 2025
d07817e
added other tests in consent
ParameswaranSajeenthiran Apr 6, 2025
604dc4a
revert pom.xml
ParameswaranSajeenthiran Apr 6, 2025
675895a
attach logs
ParameswaranSajeenthiran Apr 7, 2025
c253715
attach logs
ParameswaranSajeenthiran Apr 7, 2025
15fa84d
added event table
ParameswaranSajeenthiran Apr 7, 2025
183ca5c
added event table
ParameswaranSajeenthiran Apr 7, 2025
50b4967
added event table
ParameswaranSajeenthiran Apr 7, 2025
95f1ed9
configured ttp in before tests
ParameswaranSajeenthiran Apr 7, 2025
13d35a5
reverted pom.xml
ParameswaranSajeenthiran Apr 7, 2025
fd4a924
updated test.sh to disable the SSA JIT Validator
ParameswaranSajeenthiran Apr 7, 2025
057a668
removed unwanted import in DRC flow Test
ParameswaranSajeenthiran Apr 7, 2025
01a9ffd
trigger build
ParameswaranSajeenthiran Apr 7, 2025
6cc5fbb
update deployment.toml
ParameswaranSajeenthiran Apr 7, 2025
f809042
test build fail
ParameswaranSajeenthiran Apr 7, 2025
633fc36
test build pass
ParameswaranSajeenthiran Apr 7, 2025
d750315
added handling maven state
ParameswaranSajeenthiran Apr 7, 2025
7156423
Merge pull request #5 from ParameswaranSajeenthiran/test-script
ParameswaranSajeenthiran Apr 7, 2025
ae9ae81
added handling maven state
ParameswaranSajeenthiran Apr 7, 2025
62603a5
Merge pull request #6 from ParameswaranSajeenthiran/test-script
ParameswaranSajeenthiran Apr 7, 2025
8a5e166
re-arraganed user input script to top
ParameswaranSajeenthiran Apr 7, 2025
bf42beb
Merge pull request #7 from ParameswaranSajeenthiran/test-script
ParameswaranSajeenthiran Apr 7, 2025
609205f
re-arraganed user input script to top
ParameswaranSajeenthiran Apr 7, 2025
42a58c0
Merge pull request #8 from ParameswaranSajeenthiran/test-script
ParameswaranSajeenthiran Apr 7, 2025
e2d1188
added wso2server stop command
ParameswaranSajeenthiran Apr 8, 2025
fd6dc6e
restructured folder
ParameswaranSajeenthiran Apr 8, 2025
1f70b27
Remove geckodriver file from previous commit
ParameswaranSajeenthiran Apr 8, 2025
854f1e0
addded wso2update+linux
ParameswaranSajeenthiran Apr 8, 2025
e2a4f8d
updated deployment.properties with correct uri
ParameswaranSajeenthiran Apr 8, 2025
ccf2d96
Merge pull request #9 from ParameswaranSajeenthiran/test-script
ParameswaranSajeenthiran Apr 8, 2025
0977ad1
added consent rest api module
ParameswaranSajeenthiran Apr 10, 2025
b1ba094
added consent rest api module
ParameswaranSajeenthiran Apr 10, 2025
425d908
deleted .github workflow scripts form the consent api module
ParameswaranSajeenthiran Apr 10, 2025
67e7e3b
updated .gitignore to remove smarttomcat folder
ParameswaranSajeenthiran Apr 10, 2025
18a9825
removed smarttocatt
ParameswaranSajeenthiran Apr 10, 2025
af2f053
Merge branch 'main' into consent-core-service
ParameswaranSajeenthiran Apr 10, 2025
350efbd
Merge pull request #10 from ParameswaranSajeenthiran/consent-core-ser…
ParameswaranSajeenthiran Apr 10, 2025
6346ea8
Merge remote-tracking branch 'upstream/main'
ParameswaranSajeenthiran Apr 22, 2025
8c2e2bc
merged upstream main to fork main
ParameswaranSajeenthiran Apr 22, 2025
5bf5073
Update maven.yml with solutions bot password name
ParameswaranSajeenthiran Apr 23, 2025
87f8eb2
Update test.sh
ParameswaranSajeenthiran Apr 23, 2025
c2e896d
Update maven.yml
ParameswaranSajeenthiran Apr 23, 2025
f98bb29
Update maven.yml
ParameswaranSajeenthiran Apr 23, 2025
c8c17a4
Update maven.yml
ParameswaranSajeenthiran Apr 23, 2025
00257f2
Update maven.yml
ParameswaranSajeenthiran Apr 23, 2025
de94bb1
Merge remote-tracking branch 'upstream/main'
ParameswaranSajeenthiran Apr 28, 2025
42a91b5
Merge remote-tracking branch 'origin/main'
ParameswaranSajeenthiran Apr 28, 2025
47bc3d0
trigger build
ParameswaranSajeenthiran Apr 28, 2025
a812ff1
updated workflow
ParameswaranSajeenthiran Apr 28, 2025
ee3486b
updated workflow
ParameswaranSajeenthiran Apr 28, 2025
d2ffefb
updated workflow
ParameswaranSajeenthiran Apr 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 25 additions & 49 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# specific language governing permissions and limitations
# under the License.

#test
name: Build Financial Services Repository

on:
Expand All @@ -24,57 +25,32 @@ on:

jobs:

Build-repo-check:

Run-Test-Suite:
runs-on: ubuntu-latest
env: # Or as an environment variable
WSO2_PASSWORD: ${{secrets.SOLUTIONS_BOT_PASSWORD}}
STMP_ROOT_PASSWORD: ${{secrets.SOLUTIONS_BOT_PASSWORD}}



steps:
- uses: actions/checkout@v2
- name: Set up Adopt JDK 11
uses: actions/setup-java@v2
with:
java-version: 11.0.16+8
distribution: 'temurin'
- uses: actions/checkout@v3
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Setup Maven settings.xml
uses: whelk-io/maven-settings-xml-action@v11
with:
mirrors: >
[
{
"id": "wso2-nexus",
"mirrorOf": "wso2-nexus",
"url": "http://maven.wso2.org/nexus/content/groups/wso2-public/"
},
{
"id": "wso2.releases",
"mirrorOf": "wso2.releases",
"url": "http://maven.wso2.org/nexus/content/repositories/releases/"
},
{
"id": "wso2.snapshots",
"mirrorOf": "wso2.snapshots",
"url": "http://maven.wso2.org/nexus/content/repositories/snapshots/"
},
{
"id": "knopflerfish",
"mirrorOf": "knopflerfish",
"url": "http://resources.knopflerfish.org/repo/maven2/release"
}
]
- name: Build with Maven
- name: Run Tests
run: |
export MAVEN_OPTS="-Xmx4g -XX:MaxPermSize=512m"
mvn -B install --file pom.xml

if [ -z "$WSO2_PASSWORD" ]; then
echo "❌ WSO2_PASSWORD is not set!"
# exit 1
else
echo "✅ WSO2_PASSWORD is set."
fi

RUNNER_HOME=`pwd`
bash $RUNNER_HOME/test-automation/test.sh -u [email protected] -p ${{ secrets.SOLUTIONS_BOT_PASSWORD }} -o "$HOME" -h "$HOME"







5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ node_modules/
**/dist/
**/package-lock.json

fs-integration-test-suite/accelerator-test-framework/src/main/resources/TestConfiguration.xml

/.smarttomcat/


Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com/) All Rights Reserved.
#
# WSO2 LLC. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# +required The configuration file schema version
schemaVersion: 1.1

# +optional Incoming connection details for the component
endpoints:
# +required Unique name for the endpoint.
# This name will be used when generating the managed API
- name: consent-mgt
# +optional Display name for the endpoint.
displayName: Consent Mgt
# +required Service section has the user service endpoint details
service:
# +optional Base path of the API that gets exposed via the endpoint.
# This is mandatory if the endpoint type is set to REST or GraphQL.
basePath: /
# +required Numeric port value that gets exposed via the endpoint
port: 8080
# +required Type of traffic that the endpoint is accepting.
# Allowed values: REST, GraphQL, GRPC, TCP, UDP.
type: REST
# +optional Network level visibilities of the endpoint.
# Accepted values: Project|Organization|Public(Default).
networkVisibilities:
- Public
# +optional The path to the schema definition file.
# Defaults to wildcard route if not specified.
# This is only applicable to REST endpoint types.
# The path should be relative to the docker context.
schemaFilePath: financial-services-accelerator/internal-webapps/org.wso2.financial.services.accelerator.consent.mgt.endpoint/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Consent Management API

A lightweight RESTful API for managing user consent records, built using JAX-RS with Apache CXF.

## 🧰 Features

- Create, retrieve, update, and revoke and track consent records
- Clean and minimal implementation for quick integration or extension
- Dockerized for easy deployment

## 🛠️ Technologies

- Java
- Apache CXF (JAX-RS)
- Maven
- Tomcat
- Docker

---

## 🚀 Getting Started

Follow these steps to build and run the project using Docker.

### 1. Clone the Repository

```bash

git clone https://github.com/ParameswaranSajeenthiran/consent-mgt-api.git

cd consent-mgt-api
```

### 2. Configure Database

Copy the context.xml to same folder and configure the database credentials

| Placeholder | Description | Example |
|-------------------|--------------------------------------|-------------------------|
| `<USER_NAME>` | Your MySQL database username | `wso2_user` |
| `<PASSWORD>` | Your MySQL database password | `your_secure_password` |
| `<DATABASE_HOST>` | Hostname or IP address of the DB | `localhost` or `db` |
| `<DATABASE_NAME>` | Name of your MySQL database | `wso2_consent_db` |



```bash

cp deployment/context.xml.example deployment/context.xml
```


### 3. Build the Docker Image

```bash

docker build -t consent-rest-api -f deployment/Dockerfile .

```

### 4. Run the Docker Container

```bash

docker run -p 8080:8080 consent-rest-api

```

Explore the APIs available in the Swagger UI at http://localhost:8080/swagger-ui/index.html?url=http://localhost:8080/api/openapi.json





Loading