Skip to content

mkhan004/PracticeProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Config API

Business Rules

  • This is first rule.
  • It is another rule.

To Run

npm install -g jasmine-node
npm install
jasmine-node . --config folder productConfig

Automated Test Cases

  1. Call WAYNEENTERPRISES/PRE-C/SAT/SATSGT and make sure response code is 200 and response contain data from Biz level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/PRE-C/SAT/SATSGT
  1. Call InvalidWAYNEENTERPRISES/PRE-C/SAT/SATSGT and make sure response code is 404 and response contain proper error message.
 * method: GET
 * status: 404
 * path: productconfig/InvalidWAYNEENTERPRISES/PRE-C/SAT/SATSGT
  1. Call WAYNEENTERPRISES/NURSING/NCLEX/NCLEXP and make sure response code is 200 and response contain marged content from both Biz and Sbu level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/NURSING/NCLEX/NCLEXP
  1. Call WANEENTERPRISES/InvalidNURSING/NCLEX/NCLEXP and make sure response code is 200 and response contain content only from Biz level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/InvalidNURSING/NCLEX/NCLEXP
  1. Call WAYNEENTERPRISES/K12/K12PRECO/KSPSATKT and make sure response code is 200 and response contain overwrite array content from Program level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/K12/K12PRECO/KSPSATKT
  1. Call WAYNEENTERPRISES/K12/InvalidK12PRECO/KSPSATKT and make sure response code is 200 and response contain content only from Biz level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/K12/InvalidK12PRECO/KSPSATKT
  1. Call WAYNEENTERPRISES/HEALTH/IELTS/IELTSOS and make sure response code is 200 and response contain marged content from both Biz and Product level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/HEALTH/IELTS/IELTSOS
  1. Call WAYNEENTERPRISES/HEALTH/IELTS/InvalidIELTSOS and make sure response code is 200 and response contain content only from Biz level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/HEALTH/IELTS/InvalidIELTSOS
  1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC and make sure response code is 200 and response contain marged content from all Biz, Sbu, Program and Product level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC without atom-api-key and make sure response code is 401 and response proper error message.
 * method: GET
 * status: 401
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC with invalid atom-api-key and make sure response code is 401 and response proper error message.
 * method: GET
 * status: 401
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC without Authorization Bearer Token and make sure response code is 401 and response proper error message.
 * method: GET
 * status: 401
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC with invalid Authorization Bearer Token using invalid appId and make sure response code is 404 and response proper error message.
 * method: GET
 * status: 404
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC

13.1. Call WAYNEENTERPRISES/GRAD/GRE/GRENC with invalid Authorization Bearer Token using no appId and make sure response code is 403 and response proper error message.

 * method: GET
 * status: 403
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRAD/GRE/InvalidGRENC and make sure response code is 200 and response contain content only from Biz, Sbu and Program level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/GRAD/GRE/InvalidGRENC
  1. Call WAYNEENTERPRISES/GRAD/InvalidGRE/GRENC and make sure response code is 200 and response contain content only from Biz and Sbu level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/GRAD/InvalidGRE/GRENC
  1. Call WAYNEENTERPRISES/InvalidGRAD/GRE/GRENC and make sure response code is 200 and response contain content only from Biz level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/InvalidGRAD/GRE/GRENC
  1. Call WAYNEENTERPRISES/GRADM/GRADMP/GRADMPROD and make sure response code is 500 and response contain proper error message.
 * method: GET
 * status: 500
 * path: productconfig/WAYNEENTERPRISES/GRADM/GRADMP/GRADMPROD
  1. Call WAYNEENTERPRISES/GRADM2/GRADMP/GRADMPROD and make sure response code is 500 and response contain proper error message.
 * method: GET
 * status: 500
 * path: productconfig/WAYNEENTERPRISES/GRADM2/GRADMP/GRADMPROD
  1. Call WAYNEENTERPRISES/GRADM2/InvalidGRADMP/GRADMPROD and make sure response code is 200 and response contain content only from Biz and Sbu level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/GRADM2/InvalidGRADMP/GRADMPROD
  1. Call WAYNEENTERPRISES/GRADM3/GRADMP/GRADMPROD and make sure response code is 500 and response contain proper error message.
 * method: GET
 * status: 500
 * path: productconfig/WAYNEENTERPRISES/GRADM3/GRADMP/GRADMPROD
  1. Call WAYNEENTERPRISES/GRADM3/GRADMP/InvalidGRADMPROD and make sure response code is 200 and response contain content only from Biz, Sbu and program level config.
 * method: GET
 * status: 200
 * path: productconfig/WAYNEENTERPRISES/GRADM3/GRADMP/InvalidGRADMPROD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages