Skip to content

Instantly share code, notes, and snippets.

View chamilaadhi's full-sized avatar

Chamila Adhikarinayake chamilaadhi

View GitHub Profile
"LinterCustomRules": {
"rules": {
"email-rule": {
"description": "Contact email address should belong to GOGO domain.",
"given": "$",
"severity": "error",
"then": {
"field": "info.contact.email",
"function": "pattern",
"functionOptions": {
{
"openapi": "3.0.3",
"info": {
"title": "Passenger API",
"version": "1.0.0",
"description": "API for managing passenger information"
},
"servers": [
{
"url": "http://localhost:8080/train-operations/v1",
openapi: 3.0.1
info:
title: UserFull
version: 1.0.0
description: A simple API with a single resource
servers:
- url: https://api.example.com/v1
description: Production server
paths:
/users:
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"age": {
{
"type": "object",
"properties": {
"street": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
{
"type": "object",
"properties": {
"meal_preference": {
"type": "string"
},
"seat_preference": {
"type": "string"
}
}
{
"type": "object",
"properties": {
"airline": {
"type": "string"
},
"number": {
"type": "string"
},
"status": {
DROP DATABASE IF EXISTS WSO2AM_DB;
CREATE DATABASE WSO2AM_DB;
-- CREATE USER 'wso2carbon'@'%' IDENTIFIED BY 'wso2carbon';
GRANT ALL ON WSO2AM_DB.* TO 'wso2carbon'@'%';
FLUSH PRIVILEGES;
USE WSO2AM_DB;
-- Start of IDENTITY Tables--
CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE (
PRODUCT_NAME VARCHAR(20),
#!/bin/bash
wget https://gist.githubusercontent.com/chamilaadhi/e4d0ebd01e17ae262cc001e1dcdfc436/raw/6d892dafaf7f84327c7d3def1d83e02f7b9bc03a/newman-analytics-results.xml
wget https://gist.githubusercontent.com/chamilaadhi/96b08f537fd34342d0b0b50673298894/raw/57badf94703326082e1b8a3f14e8ed79b81d188f/newman-profiles-results.xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Profile_Setup_Tests" tests="64" time="24.878">
<testsuite name="Authentication for the Super Admin / Register DCR Application for Super Admin" id="9a3fe176-4df5-4f6d-b609-ac65f961280f" timestamp="2023-08-02T05:26:43.884Z" tests="1" failures="0" errors="0" time="0.796">
<testcase name="DCR application creation for super admin user" time="0.796" classname="ProfileSetupTests"/>
</testsuite>
<testsuite name="Authentication for the Super Admin / GET Access Token for Super Admin" id="3c37f3e0-7ec6-4059-bcc1-cbe4cb54a78f" timestamp="2023-08-02T05:26:43.884Z" tests="1" failures="0" errors="0" time="0.261">
<testcase name="DCR application token generation for super admin user" time="0.261" classname="ProfileSetupTests"/>
</testsuite>
<testsuite name="JSON Schema Validation Testcase / Create API with Schema Validation Enabled" id="979bcef7-661e-4ce4-bd05-1c0c7373f009" timestamp="2023-08-02T05:26:43.884Z" tests="1" failures="0" errors="0" time="0