Skip to content

Merge pull request #101 from contentstack/feat/endpoints-integration

4d8a951
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Development #102

Merge pull request #101 from contentstack/feat/endpoints-integration
4d8a951
Select commit
Loading
Failed to load commit list.
GitHub Actions / Mocha Unit test succeeded Oct 29, 2025 in 0s

207 passed, 0 failed and 0 skipped

Tests passed successfully

✅ report.json

207 tests were completed in 39s with 207 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/unit/index.js 207✅ 39s

✅ test/unit/index.js

Concurrency queue test
  ✅ Concurrency retry delay with base request test
  ✅ Concurrency retry on custome backoff test
  ✅ Concurrency update authorization to not pass authtoken
  ✅ Concurrency with 10 asset upload with rate limit error
  ✅ Concurrency with 10 failing requests with retry tests
  ✅ Concurrency with 10 rate limit requests Queue tests
  ✅ Concurrency with 10 timeout requests
  ✅ Concurrency with 10 timeout requests retry
  ✅ Concurrency with 100 failing requests retry on error false tests
  ✅ Concurrency with 100 failing requests retry on error with no retry condition tests
  ✅ Concurrency with 100 passing requests Queue tests
  ✅ Concurrency with 20 request and 1 rate limit request tests
  ✅ Concurrency with 20 request and 1 rate limit request tests
  ✅ Detach interceptors test
  ✅ Initialization with custom config negative value test
  ✅ Initialization with custom config retry delay value test
  ✅ Initialization with custom config retry limit negative value test
  ✅ Initialization with custom config test
  ✅ Initialization with default config test
  ✅ Initialize with bad axios instance
  ✅ Refresh Token on 401 with 1000 concurrent request
  ✅ Request to fail with no response
Contentstack app oauth
  ✅ Get oAuth configuration failing test
  ✅ Get oAuth configuration test
  ✅ List Scopes
  ✅ List Scopes failing test
  ✅ Update oAuth configuration failing test
  ✅ Update oAuth configuration test
Contentstack apps authorization test
  ✅ Authorization with app uid
  ✅ Authorization with app uid org uid as Param
  ✅ Authorization with app uid, org uid as content
  ✅ Authorization without app uid
  ✅ Authorization without content
  ✅ test find all authorization for apps
  ✅ test find all authorization for apps fail request
  ✅ test revoke all authorization for apps
  ✅ test revoke all authorization for apps fail request
  ✅ test revoke authorization for apps
  ✅ test revoke authorization for apps fail request
Contentstack apps installation test
  ✅ Fetch Installation failing test
  ✅ Fetch Installation test
  ✅ Get app installation failing test
  ✅ Get app installation test
  ✅ Get installation configuration failing test
  ✅ Get installation configuration test
  ✅ Get installation installationData failing test
  ✅ Get installation installationData failing test
  ✅ Get installation installationData test
  ✅ Get installation installationData test
  ✅ Get installation server config failing test
  ✅ Get installation server config test
  ✅ getConfigLocation call should retrieve uilocation configuration details of an installation
  ✅ getConfigLocation call should retrieve uilocation configuration details of an installation failing test
  ✅ getInstalledApps call should fetch all the installed apps in your Contentstack organization
  ✅ getInstalledApps call should fetch all the installed apps in your Contentstack organization failing test
  ✅ getInstalledStacks call should fetch all the installed Stacks in your Contentstack organization
  ✅ getInstalledStacks call should fetch all the installed Stacks in your Contentstack organization failing test
  ✅ getInstalledUsers call should fetch all the installed Users in your Contentstack organization
  ✅ getInstalledUsers call should fetch all the installed Users in your Contentstack organization failing test
  ✅ Install app test
  ✅ Installation with app uid
  ✅ Installation with installation uid
  ✅ Installation without installation uid
  ✅ Organization uid params for installation
  ✅ Params for installation
  ✅ Params in data for installation
  ✅ Set installation configuration failing test
  ✅ Set installation configuration test
  ✅ should get object of WebHook class when webhooks function is called with uid
  ✅ Uninstall Installation failing test
  ✅ Uninstall Installation test
  ✅ Update Installation failing test
  ✅ Update Installation test
Contentstack apps request test
  ✅ test create request for app uid
  ✅ test create request for app uid fail request
  ✅ test delete request for organization
  ✅ test delete request for organization fail request
  ✅ test find all request for organization
  ✅ test find all request for organization fail request
  ✅ test request with app uid and org uid
  ✅ test request without app uid
  ✅ test request without contents
Contentstack apps test
  ✅ app install test
  ✅ app upgrade test
  ✅ App with app uid
  ✅ App with app uid and org uid
  ✅ App without app uid
  ✅ Create app test
  ✅ Delete app from UID test
  ✅ Get app from UID test
  ✅ Get app installation test
  ✅ should reinstall the app
  ✅ test authorize app
  ✅ test authorize app fail request
  ✅ test authorize app fail request
  ✅ test fetch request for app uid
  ✅ test fetch request for app uid fail request
  ✅ Update app test
Contentstack Client
  ✅ Contentstack Client login success
  ✅ Contentstack Client login success with region AZURE-EU
  ✅ Contentstack Client login success with region AZURE-NA
  ✅ Contentstack Client login success with region GCP-NA
  ✅ Contentstack Client Logout
  ✅ Contentstack Client Logout with Authtoken
  ✅ Contentstack Client Marketplace with app UID test
  ✅ Contentstack Client Marketplace without app UID test
  ✅ Contentstack Client Object successful
Contentstack collection test
  ✅ Collection with no Data
  ✅ Stack Collection
  ✅ Stack Collection with headers
Contentstack error test
  ✅ Throw error
  ✅ Throw error with additional details
  ✅ Throw error with Config details
  ✅ Throw error with Config details
  ✅ Throw error with details
Contentstack hosting test
  ✅ fail test create signed url for hosting
  ✅ fail test hosting isEnable request
  ✅ fail test latest deployment for hosting
  ✅ fail test set hosting disble
  ✅ fail test set hosting enable
  ✅ Hosting with app uid
  ✅ Hosting with app uid and org uid
  ✅ Hosting without app uid
  ✅ Hosting without contents
  ✅ should fail test to disconnect hosting
  ✅ should test to disconnect hosting
  ✅ signedDownloadUrl test
  ✅ test create deployment from signed url
  ✅ test create deployment from signed url with advance options
  ✅ test create signed url for hosting
  ✅ test deployment with app uid
  ✅ test deployment with app uid and org uid
  ✅ test deployment with deployment uid
  ✅ test deployment without app uid
  ✅ test deployment without contents
  ✅ test get all deployment for hosting
  ✅ test get deployment from uid
  ✅ test get deployment from uid fail test
  ✅ test get deployment logs from uid
  ✅ test hosting is enable request
  ✅ test latest deployment for hosting
  ✅ test set hosting disble
  ✅ test set hosting enable
Contentstack HTTP Client
  ✅ Contentstack default retryCondition test
  ✅ Contentstack Http Client Authtoken
  ✅ Contentstack Http Client blank Access Token
  ✅ Contentstack Http Client blank API key
  ✅ Contentstack Http Client Default Host
  ✅ Contentstack Http Client Default Host Custom
  ✅ Contentstack Http Client Default Host with Azure NA region
  ✅ Contentstack Http Client Default Host with EU region
  ✅ Contentstack Http Client Default Host with GCP EU region
  ✅ Contentstack Http Client Default Host with NA region
  ✅ Contentstack Http Client Default Host with uppercase region
  ✅ Contentstack Http Client Host
  ✅ Contentstack Http Client Host with basePath
  ✅ Contentstack Http Client Host with GCP NA region
  ✅ Contentstack Http Client Host with region
  ✅ Contentstack Http Client Host without port
  ✅ Contentstack Http Client Object successful
  ✅ Contentstack Http Client Object successful
  ✅ Contentstack Http Client Param Serializer
  ✅ Contentstack Http Client User-Agent Header
  ✅ Contentstack Http Client User-Agent Header Custom
  ✅ Contentstack Http Client X-User-Agent Header
  ✅ Contentstack retryCondition test
  ✅ Contentstack retryDelayOption base test
  ✅ Contentstack retryDelayOption customBackoff test
Get Region Endpoint
  ✅ should return all regions developerHub endpoints
  ✅ should return AU region contentManagement endpoint
  ✅ should return Azure EU region application endpoint
  ✅ should return Azure NA region developerHub endpoint
  ✅ should return Azure NA region developerHub endpoint using alias
  ✅ should return default NA region developerHub endpoint
  ✅ should return EU region contentDelivery endpoint
  ✅ should return EU region developerHub endpoint
  ✅ should return GCP EU region developerHub endpoint
  ✅ should return GCP NA region developerHub endpoint
  ✅ should return NA region auth endpoint
  ✅ should return NA region developerHub endpoint using alias
  ✅ should throw error for invalid region
Get User Agent
  ✅ Browser user agent
  ✅ Contentstack host test
  ✅ Fail User agent
  ✅ Node user agent
  ✅ ReactNative ios user agent
  ✅ ReactNative user agent
Installation WebHook function
  ✅ should create Webhook object when WebHook function is called
  ✅ should create Webhook object when WebHook function is called without data
  ✅ should fail in listing all the execution logs when listExecutionLogs function is called
  ✅ should fail in retry execution and get data when execution uid is passed
  ✅ should fail to get detailed of an execution when execution uid is passed
  ✅ should get detailed of an execution when execution uid is passed
  ✅ should list all the execution logs when listExecutionLogs function is called
  ✅ should retry the execution and get data when execution uid is passed
Marketplace test
  ✅ Get all authorized apps in organization fail request
  ✅ Get all authorized apps in organization test
  ✅ should create Marketplace object with params when marketplace function is called with data
  ✅ should create Marketplace object without params when marketplace function is called without data
  ✅ should get all apps in organization when findAllApps is called
  ✅ should get object of App when app function is called with uid
  ✅ should get object of AppRequest when appRequests function is called
  ✅ should get object of Installation when installation function is called with uid
  ✅ should provide proper error response when findAllApps fails
  ✅ should search apps successfully when search term is provided
  ✅ should throw error when search term is not provided
Region Test
  ✅ Contentstack Client login success with region NA