Skip to content

Commit

Permalink
[MOSIP-29918] added db-test.yml and updated pms-oidc_client.sql (#614)
Browse files Browse the repository at this point in the history
* [MOSIP-29918] added db-test.yml

Signed-off-by: Rakshithb1 <[email protected]>

* [MOSIP-29918] updated pms-oidc_client.sql

Signed-off-by: Rakshithb1 <[email protected]>

---------

Signed-off-by: Rakshithb1 <[email protected]>
  • Loading branch information
Rakshithb1 authored Nov 24, 2023
1 parent 9c6bbfd commit a639fe4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 13 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/db-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PostgreSQL Test

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'db_scripts/**'
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- release*
- master
- 1.*
- develop*
- MOSIP*
paths:
- 'db_scripts/**'

jobs:
build-db-test:
strategy:
matrix:
include:
- DB_LOCATION: 'db_scripts/mosip_pms'
DB_NAME: 'mosip_pms'
fail-fast: false
name: ${{ matrix.DB_NAME }}
uses: mosip/kattu/.github/workflows/db-test.yml@master
with:
DB_LOCATION: ${{ matrix.DB_LOCATION}}
24 changes: 12 additions & 12 deletions db_scripts/mosip_pms/ddl/pms-oidc_client.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,28 @@ CREATE TABLE pms.oidc_client(
CONSTRAINT uq_oidc_client_public_key UNIQUE (public_key)
);
-- ddl-end --
COMMENT ON TABLE oidc_client.id IS 'Client ID: Unique id assigned to registered OIDC client.';
COMMENT ON TABLE pms.oidc_client IS 'Client ID: Unique id assigned to registered OIDC client.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.name IS 'Client Name: Registered name of OIDC client.';
COMMENT ON COLUMN pms.oidc_client.name IS 'Client Name: Registered name of OIDC client.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.logo_uri IS 'Client Logo URL: Client logo to be displayed on IDP UI.';
COMMENT ON COLUMN pms.oidc_client.logo_uri IS 'Client Logo URL: Client logo to be displayed on IDP UI.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.redirect_uris IS 'Recirect URLS: Comma separated list of client redirect URLs.';
COMMENT ON COLUMN pms.oidc_client.redirect_uris IS 'Recirect URLS: Comma separated list of client redirect URLs.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.rp_id IS 'Relaying Party Id: Id of the partner id who has created this OIDC client.';
COMMENT ON COLUMN pms.oidc_client.rp_id IS 'Relaying Party Id: Id of the partner id who has created this OIDC client.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.policy_id IS 'Policy Id: Id of the policy ';
COMMENT ON COLUMN pms.oidc_client.policy_id IS 'Policy Id: Id of the policy ';
-- ddl-end --
COMMENT ON COLUMN oidc_client.status IS 'Client status: Allowed values - ACTIVE / INACTIVE.';
COMMENT ON COLUMN pms.oidc_client.status IS 'Client status: Allowed values - ACTIVE / INACTIVE.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.public_key IS 'Public key: JWK data.';
COMMENT ON COLUMN pms.oidc_client.public_key IS 'Public key: JWK data.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.grant_types IS 'Grant Types: Allowed grant types for the client.';
COMMENT ON COLUMN pms.oidc_client.grant_types IS 'Grant Types: Allowed grant types for the client.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.auth_methods IS 'Client Auth methods: Allowed token endpoint authentication methods.';
COMMENT ON COLUMN pms.oidc_client.auth_methods IS 'Client Auth methods: Allowed token endpoint authentication methods.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.claims IS 'Requested Claims: claims json as per policy defined for relaying party.';
COMMENT ON COLUMN pms.oidc_client.claims IS 'Requested Claims: claims json as per policy defined for relaying party.';
-- ddl-end --
COMMENT ON COLUMN oidc_client.acr_values IS 'Allowed Authentication context References(acr) json';
COMMENT ON COLUMN pms.oidc_client.acr_values IS 'Allowed Authentication context References(acr) json';
-- ddl-end --

2 changes: 1 addition & 1 deletion db_scripts/mosip_pms/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

## Properties file
set -e
properties_file="$1"
Expand Down

0 comments on commit a639fe4

Please sign in to comment.