Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Sebastian Stehle 1f15e493ba
Ssrf protection (#1279)
6 days ago
..
TestSuite.ApiTests Ssrf protection (#1279) 6 days ago
TestSuite.LoadTests Generate schema with ai (#1238) 7 months ago
TestSuite.Shared User info (#1278) 3 weeks ago
images Flow fixes. (#1219) 9 months ago
webhook-catcher Fix webhook tests. (#1149) 1 year ago
README.md README for api tests 9 months ago
TestSuite.sln Simplify build (#953) 3 years ago
docker-compose-base.yml Ssrf protection (#1279) 6 days ago
docker-compose-ferretdb.yml Improved mongo config. (#1272) 2 months ago
docker-compose-mysql.yml Try to run build in parallel. (#1198) 11 months ago
docker-compose-postgres.yml Try to run build in parallel. (#1198) 11 months ago
docker-compose-sqlserver.yml Try to run build in parallel. (#1198) 11 months ago
docker-compose.yml Try to run build in parallel. (#1198) 11 months ago

README.md

Api Tests

This project contains a API and load tests, written in xunit. Only the API tests are actually run in Github pipelines.

How to run them

To run the API tests you have to run the backend first.

Squidex needs MongoDB by default. The docker-compose file can be found in this repository: https://github.com/Squidex/squidex-hosting/blob/master/development/docker-compose.yml

Configuration

But before you can run the backend you have to make 2 adjustments to the app settings: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json

The recommendation is to either create an appsettings.Development.json file or to configure the following value with environment variables:

Client ID

  • Key: identity:adminClientId
  • Value: root
  • Environment Variable: IDENTITY__ADMINCLIENTID

Client Secret

  • Key: identity:adminClientSecret
  • Value: xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0=
  • Environment Variable: IDENTITY__ADMINCLIENTSECRET

Settings File

appsettings.Development.json

{
    "identity": {
        "adminClientId": "root",
        "adminClientSecret": "xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0="
    }
}

Run the backend

Just go to the backend folder and run the backend. The full instructions can be found under: https://docs.squidex.io/id-01-getting-started/contributing-and-developing/developing

Run the tests

The tests are written with xunit. So you can just run them via your IDE or with

dotnet test