Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jan 29, 2024
1 parent 9dd8625 commit 650911e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const metadataArray = [proxyMetdata1, proxyMetdata2];
// Test scenarios for the test cases
// ===================================

export const testScneariosForV0API = [
export const testScenariosForV0API = [
{
id: 'cm360_v0_scenario_1',
name: 'campaign_manager',
Expand Down Expand Up @@ -281,7 +281,7 @@ export const testScneariosForV0API = [
},
];

export const testScneariosForV1API = [
export const testScenariosForV1API = [
{
id: 'cm360_v1_scenario_1',
name: 'campaign_manager',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { testScneariosForV0API, testScneariosForV1API } from './business';
import { testScenariosForV0API, testScenariosForV1API } from './business';
import { v0oauthScenarios, v1oauthScenarios } from './oauth';
import { otherScenariosV0, otherScenariosV1 } from './other';

export const data = [
...testScneariosForV0API,
...testScneariosForV1API,
...testScenariosForV0API,
...testScenariosForV1API,
...v0oauthScenarios,
...v1oauthScenarios,
...otherScenariosV0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const v0oauthScenarios = [
id: 'cm360_v0_oauth_scenario_1',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Oauth scneario where valid credentials are missing as mock response from destination',
'[Proxy v0 API] :: Oauth where valid credentials are missing as mock response from destination',
successCriteria:
'Since the error from the destination is 401 - the proxy should return 500 with authErrorCategory as REFRESH_TOKEN',
scenario: 'Oauth',
Expand Down Expand Up @@ -128,7 +128,7 @@ export const v0oauthScenarios = [
id: 'cm360_v0_oauth_scenario_2',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Oauth scneario where ACCESS_TOKEN_SCOPE_INSUFFICIENT error as mock response from destination',
'[Proxy v0 API] :: Oauth where ACCESS_TOKEN_SCOPE_INSUFFICIENT error as mock response from destination',
successCriteria:
'Since the error from the destination is 403 - the proxy should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
Expand Down Expand Up @@ -200,7 +200,7 @@ export const v0oauthScenarios = [
id: 'cm360_v0_oauth_scenario_3',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Oauth scneario where google.auth.exceptions.RefreshError invalid_grant error as mock response from destination',
'[Proxy v0 API] :: Oauth where google.auth.exceptions.RefreshError invalid_grant error as mock response from destination',
successCriteria:
'Since the error from the destination is 403 - the proxy should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
Expand Down Expand Up @@ -254,7 +254,7 @@ export const v0oauthScenarios = [
id: 'cm360_v0_oauth_scenario_4',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Oauth scneario where google.auth.exceptions.RefreshError refresh error as mock response from destination',
'[Proxy v0 API] :: Oauth where google.auth.exceptions.RefreshError refresh error as mock response from destination',
successCriteria: 'Should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
feature: 'dataDelivery',
Expand Down Expand Up @@ -307,7 +307,7 @@ export const v1oauthScenarios = [
id: 'cm360_v1_oauth_scenario_1',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Oauth scneario where valid credentials are missing as mock response from destination',
'[Proxy v1 API] :: Oauth where valid credentials are missing as mock response from destination',
successCriteria:
'Since the error from the destination is 401 - the proxy should return 500 with authErrorCategory as REFRESH_TOKEN',
scenario: 'Oauth',
Expand Down Expand Up @@ -370,7 +370,7 @@ export const v1oauthScenarios = [
id: 'cm360_v1_oauth_scenario_2',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Oauth scneario where ACCESS_TOKEN_SCOPE_INSUFFICIENT error as mock response from destination',
'[Proxy v1 API] :: Oauth where ACCESS_TOKEN_SCOPE_INSUFFICIENT error as mock response from destination',
successCriteria:
'Since the error from the destination is 403 - the proxy should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
Expand Down Expand Up @@ -433,7 +433,7 @@ export const v1oauthScenarios = [
id: 'cm360_v1_oauth_scenario_3',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Oauth scneario where google.auth.exceptions.RefreshError invalid_grant error as mock response from destination',
'[Proxy v1 API] :: Oauth where google.auth.exceptions.RefreshError invalid_grant error as mock response from destination',
successCriteria:
'Since the error from the destination is 403 - the proxy should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
Expand Down Expand Up @@ -496,7 +496,7 @@ export const v1oauthScenarios = [
id: 'cm360_v1_oauth_scenario_4',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Oauth scneario where google.auth.exceptions.RefreshError refresh error as mock response from destination',
'[Proxy v1 API] :: Oauth where google.auth.exceptions.RefreshError refresh error as mock response from destination',
successCriteria: 'Should return 500 with authErrorCategory as AUTH_STATUS_INACTIVE',
scenario: 'Oauth',
feature: 'dataDelivery',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const otherScenariosV0 = [
id: 'cm360_v0_other_scenario_1',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Scneario for testing Service Unavailable error from destination',
'[Proxy v0 API] :: Scenario for testing Service Unavailable error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -55,7 +55,7 @@ export const otherScenariosV0 = [
{
id: 'cm360_v0_other_scenario_2',
name: 'campaign_manager',
description: '[Proxy v0 API] :: Scneario for testing Internal Server error from destination',
description: '[Proxy v0 API] :: Scenario for testing Internal Server error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -99,7 +99,7 @@ export const otherScenariosV0 = [
{
id: 'cm360_v0_other_scenario_3',
name: 'campaign_manager',
description: '[Proxy v0 API] :: Scneario for testing Gateway Time Out error from destination',
description: '[Proxy v0 API] :: Scenario for testing Gateway Time Out error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -143,7 +143,7 @@ export const otherScenariosV0 = [
{
id: 'cm360_v0_other_scenario_4',
name: 'campaign_manager',
description: '[Proxy v0 API] :: Scneario for testing null response from destination',
description: '[Proxy v0 API] :: Scenario for testing null response from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -188,7 +188,7 @@ export const otherScenariosV0 = [
id: 'cm360_v0_other_scenario_5',
name: 'campaign_manager',
description:
'[Proxy v0 API] :: Scneario for testing null and no status response from destination',
'[Proxy v0 API] :: Scenario for testing null and no status response from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -236,7 +236,7 @@ export const otherScenariosV1 = [
id: 'cm360_v1_other_scenario_1',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Scneario for testing Service Unavailable error from destination',
'[Proxy v1 API] :: Scenario for testing Service Unavailable error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -296,7 +296,7 @@ export const otherScenariosV1 = [
{
id: 'cm360_v1_other_scenario_2',
name: 'campaign_manager',
description: '[Proxy v1 API] :: Scneario for testing Internal Server error from destination',
description: '[Proxy v1 API] :: Scenario for testing Internal Server error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -355,7 +355,7 @@ export const otherScenariosV1 = [
{
id: 'cm360_v1_other_scenario_3',
name: 'campaign_manager',
description: '[Proxy v1 API] :: Scneario for testing Gateway Time Out error from destination',
description: '[Proxy v1 API] :: Scenario for testing Gateway Time Out error from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -414,7 +414,7 @@ export const otherScenariosV1 = [
{
id: 'cm360_v1_other_scenario_4',
name: 'campaign_manager',
description: '[Proxy v1 API] :: Scneario for testing null response from destination',
description: '[Proxy v1 API] :: Scenario for testing null response from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down Expand Up @@ -474,7 +474,7 @@ export const otherScenariosV1 = [
id: 'cm360_v1_other_scenario_5',
name: 'campaign_manager',
description:
'[Proxy v1 API] :: Scneario for testing null and no status response from destination',
'[Proxy v1 API] :: Scenario for testing null and no status response from destination',
successCriteria: 'Should return 500 status code with error message',
scenario: 'Framework',
feature: 'dataDelivery',
Expand Down

0 comments on commit 650911e

Please sign in to comment.