diff --git a/.github/workflows/api-performance-test.yml b/.github/workflows/api-performance-test.yml deleted file mode 100644 index f55881b754..0000000000 --- a/.github/workflows/api-performance-test.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: "Tests: API performance test" - -on: - workflow_dispatch: - pull_request: - types: [ opened, labeled, unlabeled, synchronize ] - schedule: - - cron: '51 4 * * *' - -concurrency: - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} - cancel-in-progress: false - -jobs: - api-performance-test: - name: 'API performance test' - if: contains(github.event.pull_request.labels.*.name, 'api-performance-test!') || github.event_name != 'pull_request' - uses: ./.github/workflows/reusable-api-performance-test.yml diff --git a/.github/workflows/reusable-api-performance-test.yml b/.github/workflows/reusable-api-performance-test.yml deleted file mode 100644 index 0f6903f057..0000000000 --- a/.github/workflows/reusable-api-performance-test.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: '[reusable only] api performance tests' - -on: - workflow_call: - -jobs: - api-performance-test: - name: 'Tests: API performance tests' - runs-on: ubuntu-latest - env: - DATABASE_URL: postgresql://ecamp3:ecamp3@localhost:5432/ecamp3?serverVersion=15&charset=utf8 - - services: - postgres: - image: 'postgres:15-alpine' - env: - POSTGRES_DB: 'ecamp3test' - POSTGRES_PASSWORD: 'ecamp3' - POSTGRES_USER: 'ecamp3' - ports: - - '5432:5432' - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - --cpus 1 - --memory 1G - - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.3.13' - extensions: intl-73.1 - tools: composer:2.8.0 - coverage: pcov - - - name: Get Composer Cache Directory - id: composer-cache - run: 'echo "dir=$(composer config cache-files-dir)" | tr -d "\n" >> $GITHUB_OUTPUT' - working-directory: api - - - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - - run: composer install --prefer-dist --no-progress --no-interaction - working-directory: api - - - run: | - mkdir -p var/cache var/log - jwt_passphrase=${JWT_PASSPHRASE:-$(grep ''^JWT_PASSPHRASE='' .env | cut -f 2 -d ''='')} - echo "Generating public / private keys for JWT" - mkdir -p config/jwt - echo "$jwt_passphrase" | openssl genpkey -out config/jwt/private.pem -pass stdin -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096 - echo "$jwt_passphrase" | openssl pkey -in config/jwt/private.pem -passin stdin -out config/jwt/public.pem -pubout - setfacl -R -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt - setfacl -dR -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt - working-directory: api - - - run: php bin/console doctrine:migrations:migrate --no-interaction -e test - working-directory: api - - - run: composer performance_test - working-directory: api - env: - PERFORMANCE_TEST_DEBUG_OUTPUT: ${{ vars.PERFORMANCE_TEST_DEBUG_OUTPUT }} diff --git a/api/.env.performance_test b/api/.env.performance_test deleted file mode 100644 index 37dc6cdff4..0000000000 --- a/api/.env.performance_test +++ /dev/null @@ -1,9 +0,0 @@ -# define your env variables for the test env here -KERNEL_CLASS='App\Kernel' -APP_SECRET='$ecretf0rt3st' -SYMFONY_DEPRECATIONS_HELPER=999999 -PANTHER_APP_ENV=panther -PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots -ADDITIONAL_TRUSTED_HOSTS=example.com -COOKIE_PREFIX=example_com_ -TRANSLATE_ERRORS_TO_LOCALES="en,en_CH_scout,de,de_CH_scout,fr,fr_CH_scout,it,it_CH_scout,rm,rm_CH_scout" diff --git a/api/composer.json b/api/composer.json index 465001f5c4..e51039e319 100644 --- a/api/composer.json +++ b/api/composer.json @@ -124,14 +124,6 @@ "vendor/bin/phpunit -d memory_limit=-1 -d --update-snapshots tests/Api/SnapshotTests", "vendor/bin/phpunit -d memory_limit=-1 -d --update-snapshots tests/Util/ArrayDeepSortTest.php" ], - "performance_test": [ - "Composer\\Config::disableProcessTimeout", - "vendor/bin/phpunit -d memory_limit=-1 -c phpunit.performance_test.xml.dist" - ], - "performance_test_update-snapshots": [ - "Composer\\Config::disableProcessTimeout", - "vendor/bin/phpunit -d memory_limit=-1 -d --update-snapshots -c phpunit.performance_test.xml.dist" - ], "auto-scripts": { "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd" diff --git a/api/config/bundles.php b/api/config/bundles.php index 204c2b254d..8df45f3cfd 100644 --- a/api/config/bundles.php +++ b/api/config/bundles.php @@ -29,16 +29,16 @@ DoctrineBundle::class => ['all' => true], ApiPlatformBundle::class => ['all' => true], NelmioCorsBundle::class => ['all' => true], - WebProfilerBundle::class => ['dev' => true, 'test' => true, 'performance_test' => true], + WebProfilerBundle::class => ['dev' => true, 'test' => true], MakerBundle::class => ['dev' => true], DoctrineMigrationsBundle::class => ['all' => true], MonologBundle::class => ['all' => true], - DebugBundle::class => ['dev' => true, 'test' => true, 'performance_test' => true], + DebugBundle::class => ['dev' => true, 'test' => true], StofDoctrineExtensionsBundle::class => ['all' => true], LexikJWTAuthenticationBundle::class => ['all' => true], - NelmioAliceBundle::class => ['dev' => true, 'test' => true, 'performance_test' => true], - FidryAliceDataFixturesBundle::class => ['dev' => true, 'test' => true, 'performance_test' => true], - HautelookAliceBundle::class => ['dev' => true, 'test' => true, 'performance_test' => true], + NelmioAliceBundle::class => ['dev' => true, 'test' => true], + FidryAliceDataFixturesBundle::class => ['dev' => true, 'test' => true], + HautelookAliceBundle::class => ['dev' => true, 'test' => true], ExerciseHTMLPurifierBundle::class => ['all' => true], KnpUOAuth2ClientBundle::class => ['all' => true], SentryBundle::class => ['all' => true], diff --git a/api/config/packages/framework.yaml b/api/config/packages/framework.yaml index e3ef193849..ca3e02fe7d 100644 --- a/api/config/packages/framework.yaml +++ b/api/config/packages/framework.yaml @@ -25,7 +25,3 @@ framework: when@test: framework: test: true - -when@performance_test: - framework: - test: true diff --git a/api/config/packages/performance_test/doctrine.yaml b/api/config/packages/performance_test/doctrine.yaml deleted file mode 100644 index b60a4ba351..0000000000 --- a/api/config/packages/performance_test/doctrine.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/doctrine.yaml diff --git a/api/config/packages/performance_test/doctrine_migrations.yaml b/api/config/packages/performance_test/doctrine_migrations.yaml deleted file mode 100644 index 19085a55a0..0000000000 --- a/api/config/packages/performance_test/doctrine_migrations.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/doctrine.yaml diff --git a/api/config/packages/performance_test/hautelook_alice.yaml b/api/config/packages/performance_test/hautelook_alice.yaml deleted file mode 100644 index 2f318f4d42..0000000000 --- a/api/config/packages/performance_test/hautelook_alice.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/hautelook_alice.yaml diff --git a/api/config/packages/performance_test/http_cache.yaml b/api/config/packages/performance_test/http_cache.yaml deleted file mode 100644 index ccab94157b..0000000000 --- a/api/config/packages/performance_test/http_cache.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/http_cache.yaml diff --git a/api/config/packages/performance_test/mailer.yaml b/api/config/packages/performance_test/mailer.yaml deleted file mode 100644 index 4f5c0fe8bd..0000000000 --- a/api/config/packages/performance_test/mailer.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/mailer.yaml diff --git a/api/config/packages/performance_test/monolog.yaml b/api/config/packages/performance_test/monolog.yaml deleted file mode 100644 index 1c90e8323e..0000000000 --- a/api/config/packages/performance_test/monolog.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/monolog.yaml diff --git a/api/config/packages/performance_test/nelmio_alice.yaml b/api/config/packages/performance_test/nelmio_alice.yaml deleted file mode 100644 index e488eedeec..0000000000 --- a/api/config/packages/performance_test/nelmio_alice.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/nelmio_alice.yaml diff --git a/api/config/packages/performance_test/routing.yaml b/api/config/packages/performance_test/routing.yaml deleted file mode 100644 index ac558a375e..0000000000 --- a/api/config/packages/performance_test/routing.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/routing.yaml diff --git a/api/config/packages/performance_test/validator.yaml b/api/config/packages/performance_test/validator.yaml deleted file mode 100644 index 3264ae8401..0000000000 --- a/api/config/packages/performance_test/validator.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/validator.yaml diff --git a/api/config/packages/performance_test/web_profiler.yaml b/api/config/packages/performance_test/web_profiler.yaml deleted file mode 100644 index d7facab5f7..0000000000 --- a/api/config/packages/performance_test/web_profiler.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - resource: ../test/web_profiler.yaml diff --git a/api/config/packages/security.yaml b/api/config/packages/security.yaml index b6b2281bbe..5e9a060ede 100644 --- a/api/config/packages/security.yaml +++ b/api/config/packages/security.yaml @@ -72,25 +72,3 @@ when@test: cost: 4 # Lowest possible value for bcrypt time_cost: 3 # Lowest possible value for argon memory_cost: 10 # Lowest possible value for argon -when@performance_test: - security: - password_hashers: - # By default, password hashers are resource intensive and take time. This is - # important to generate secure password hashes. In tests however, secure hashes - # are not important, waste resources and increase test times. The following - # reduces the work factor to the lowest possible values. - App\Entity\User: - algorithm: auto - cost: 4 # Lowest possible value for bcrypt - time_cost: 3 # Lowest possible value for argon - memory_cost: 10 # Lowest possible value for argon - PasswordResetKey: - algorithm: auto - cost: 4 # Lowest possible value for bcrypt - time_cost: 3 # Lowest possible value for argon - memory_cost: 10 # Lowest possible value for argon - EmailVerification: - algorithm: auto - cost: 4 # Lowest possible value for bcrypt - time_cost: 3 # Lowest possible value for argon - memory_cost: 10 # Lowest possible value for argon diff --git a/api/fixtures/performance_test/activities.yml b/api/fixtures/performance_test/activities.yml deleted file mode 100644 index 014e9f6ea5..0000000000 --- a/api/fixtures/performance_test/activities.yml +++ /dev/null @@ -1,136 +0,0 @@ -App\Entity\Activity: - additional_activity_{1..400}: - camp: '@additionalCamp_' - title: 'Activity ' - location: - rootContentNode: '@additional_columnLayout1_' - category: '@additionalCategoryForCampNumber1_' - additional_activity_camp1_{1..200}: - camp: '@camp1' - title: 'Activity ' - location: - rootContentNode: '@additional_columnLayout_camp1_' - category: '@category1' - -App\Entity\ScheduleEntry: - additional_scheduleEntry1_{1..400}: - period: '@additionalPeriod_' - activity: '@additional_activity_' - startOffset: 480 - endOffset: 540 - additional_scheduleEntry2_{1..400}: - period: '@additionalPeriod_' - activity: '@additional_activity_' - startOffset: 1980 - endOffset: 2040 - additional_scheduleEntry_camp1_{1..200}: - period: '@period1' - activity: '@additional_activity_camp1_' - startOffset: 480 - endOffset: 540 - -# Root node -App\Entity\ContentNode\ColumnLayout: - additional_columnLayout1_{1..400}: - root: '@self' - parent: null - slot: null - position: 0 - data: { columns: [{ slot: '1', width: 12 }] } - instanceName: 'columnLayoutRoot' - contentType: '@contentTypeColumnLayout' - additional_columnLayout_camp1_{1..200}: - root: '@self' - parent: null - slot: null - position: 0 - data: { columns: [ { slot: '1', width: 12 } ] } - instanceName: 'columnLayoutRoot' - contentType: '@contentTypeColumnLayout' - -# Reponsive layout -App\Entity\ContentNode\ResponsiveLayout: - additional_responsiveLayout1_{1..400}: - root: '@additional_columnLayout1_' - parent: '@additional_columnLayout1_' - slot: '1' - position: 0 - data: { items: [{ slot: 'main' }, { slot: 'aside-top' }, { slot: 'aside-bottom' }] } - instanceName: 'responsiveLayout' - contentType: '@contentTypeResponsiveLayout' - additional_responsiveLayout_camp1_{1..200}: - root: '@additional_columnLayout_camp1_' - parent: '@additional_columnLayout_camp1_' - slot: '1' - position: 0 - data: { items: [ { slot: 'main' }, { slot: 'aside-top' }, { slot: 'aside-bottom' } ] } - instanceName: 'responsiveLayout' - contentType: '@contentTypeResponsiveLayout' - -App\Entity\ContentNode\MultiSelect: - additional_multiSelect1_{1..400}: - root: '@additional_columnLayout1_' - parent: '@additional_responsiveLayout1_' - slot: 'aside-top' - position: 0 - instanceName: 'multiSelect' - contentType: '@contentTypeMultiSelect' - data: { options: { 'key1': { 'checked': true }, 'key2': { 'checked': true } } } - additional_multiSelect_camp1_{1..200}: - root: '@additional_columnLayout_camp1_' - parent: '@additional_responsiveLayout_camp1_' - slot: 'aside-top' - position: 0 - instanceName: 'multiSelect' - contentType: '@contentTypeMultiSelect' - data: { options: { 'key1': { 'checked': true }, 'key2': { 'checked': true } } } - -App\Entity\ContentNode\MaterialNode: - additional_materialNode1_{1..400}: - root: '@additional_columnLayout1_' - parent: '@additional_responsiveLayout1_' - slot: 'aside-top' - position: 1 - instanceName: 'materialNode' - contentType: '@contentTypeMaterial' - additional_materialNode_camp1_{1..200}: - root: '@additional_columnLayout_camp1_' - parent: '@additional_responsiveLayout_camp1_' - slot: 'aside-top' - position: 1 - instanceName: 'materialNode' - contentType: '@contentTypeMaterial' - -App\Entity\ContentNode\SingleText: - additional_singleText1_{1..400}: - root: '@additional_columnLayout1_' - parent: '@additional_responsiveLayout1_' - slot: 'aside-top' - position: 2 - instanceName: 'singleText' - contentType: '@contentTypeNotes' - data: { html: } - additional_safetyConsiderations1_{1..400}: - root: '@additional_columnLayout1_' - parent: '@additional_responsiveLayout1_' - slot: 'aside-top' - position: 3 - instanceName: 'safetyConsiderations' - contentType: '@contentTypeSafetyConsiderations' - data: { html: } - additional_singleText_camp1_{1..200}: - root: '@additional_columnLayout_camp1_' - parent: '@additional_responsiveLayout_camp1_' - slot: 'aside-top' - position: 2 - instanceName: 'singleText' - contentType: '@contentTypeNotes' - data: { html: } - additional_safetyConsiderations_camp1_{1..200}: - root: '@additional_columnLayout_camp1_' - parent: '@additional_responsiveLayout_camp1_' - slot: 'aside-top' - position: 3 - instanceName: 'safetyConsiderations' - contentType: '@contentTypeSafetyConsiderations' - data: { html: } diff --git a/api/fixtures/performance_test/activity-progress-labels.yml b/api/fixtures/performance_test/activity-progress-labels.yml deleted file mode 100644 index 2def282a13..0000000000 --- a/api/fixtures/performance_test/activity-progress-labels.yml +++ /dev/null @@ -1,13 +0,0 @@ -App\Entity\ActivityProgressLabel: - additional_activityProgressLabel1_{1..400}: - camp: '@additionalCamp_' - position: 0 - title: 'In Planung' - additional_activityProgressLabel2_{1..400}: - camp: '@additionalCamp_' - position: 1 - title: 'Geplant' - additional_activityProgressLabel_camp1_{3..5}: - camp: '@camp1' - position: - title: diff --git a/api/fixtures/performance_test/activityResponsibles.yml b/api/fixtures/performance_test/activityResponsibles.yml deleted file mode 100644 index e025948b49..0000000000 --- a/api/fixtures/performance_test/activityResponsibles.yml +++ /dev/null @@ -1,7 +0,0 @@ -App\Entity\ActivityResponsible: - additionalActivityResponsible_{1..400}: - campCollaboration: '@additionalCampCollaboration_' - activity: '@additional_activity_' - additionalActivityResponsible_camp1_{1..200}: - campCollaboration: '@additionalCampCollaboration_camp1_1' - activity: '@additional_activity_camp1_' diff --git a/api/fixtures/performance_test/campCollaborations.yml b/api/fixtures/performance_test/campCollaborations.yml deleted file mode 100644 index 4a0ff92313..0000000000 --- a/api/fixtures/performance_test/campCollaborations.yml +++ /dev/null @@ -1,11 +0,0 @@ -App\Entity\CampCollaboration: - additionalCampCollaboration_{1..400}: - user: '@additionalUser_' - camp: '@additionalCamp_' - status: established - role: manager - additionalCampCollaboration_camp1_{1..10}: - user: '@additionalUser_' - camp: '@camp1' - status: established - role: manager diff --git a/api/fixtures/performance_test/camps.yml b/api/fixtures/performance_test/camps.yml deleted file mode 100644 index 2587054ac6..0000000000 --- a/api/fixtures/performance_test/camps.yml +++ /dev/null @@ -1,13 +0,0 @@ -App\Entity\Camp: - additionalCamp_{1..400}: - shortTitle: - title: - motto: - addressName: - addressStreet: - addressZipcode: - addressCity: - owner: '@admin' - creator: '@admin' - isPrototype: false - campPrototypeId: null diff --git a/api/fixtures/performance_test/categories.yml b/api/fixtures/performance_test/categories.yml deleted file mode 100644 index 7bd1c17572..0000000000 --- a/api/fixtures/performance_test/categories.yml +++ /dev/null @@ -1,17 +0,0 @@ -App\Entity\Category: - additionalCategoryForCampNumber1_{1..400}: - camp: '@additionalCamp_' - short: LA - name: Lageraktivität - color: '#FF9800' - numberingStyle: 1 - rootContentNode: '@additionalColumnLayoutForCampNumber1_' - preferredContentTypes: - - '@contentTypeSafetyConsiderations' - additionalCategoryForCampNumber2_{1..400}: - camp: '@additionalCamp_' - short: LP - name: Lagerprogramm - color: '#99CCFF' - numberingStyle: 1 - rootContentNode: '@additionalColumnLayoutForCampNumber2_' diff --git a/api/fixtures/performance_test/checklistItems.yml b/api/fixtures/performance_test/checklistItems.yml deleted file mode 100644 index 623cc12099..0000000000 --- a/api/fixtures/performance_test/checklistItems.yml +++ /dev/null @@ -1,10 +0,0 @@ -App\Entity\ChecklistItem: - additional_checklistItem1_{1..400}: - checklist: '@additional_checklist1_' - text: 'Item_' - additional_checklistItem2_{1..400}: - checklist: '@additional_checklist2_' - text: 'Item_' - additional_checklistItem_camp1_{1..12}: - checklist: '@additional_checklist_camp1_1' - text: 'Item_' diff --git a/api/fixtures/performance_test/checklists.yml b/api/fixtures/performance_test/checklists.yml deleted file mode 100644 index 43a5cd4d59..0000000000 --- a/api/fixtures/performance_test/checklists.yml +++ /dev/null @@ -1,10 +0,0 @@ -App\Entity\Checklist: - additional_checklist1_{1..400}: - camp: '@additionalCamp_' - name: 'J+S Ausbildungsziele' - additional_checklist2_{1..400}: - camp: '@additionalCamp_' - name: 'PBS Ausbildungsziele' - additional_checklist_camp1_{1..12}: - camp: '@camp1' - name: diff --git a/api/fixtures/performance_test/columnLayouts.yml b/api/fixtures/performance_test/columnLayouts.yml deleted file mode 100644 index a08e8edbaa..0000000000 --- a/api/fixtures/performance_test/columnLayouts.yml +++ /dev/null @@ -1,17 +0,0 @@ -App\Entity\ContentNode\ColumnLayout: - additionalColumnLayoutForCampNumber1_{1..400}: - root: '@self' - parent: null - slot: null - position: 0 - data: { columns: [ { slot: '1', width: 12 } ] } - instanceName: - contentType: '@contentTypeColumnLayout' - additionalColumnLayoutForCampNumber2_{1..400}: - root: '@self' - parent: null - slot: null - position: 0 - data: { columns: [ { slot: '1', width: 12 } ] } - instanceName: - contentType: '@contentTypeColumnLayout' diff --git a/api/fixtures/performance_test/dayResponsibles.yml b/api/fixtures/performance_test/dayResponsibles.yml deleted file mode 100644 index f2f9d34789..0000000000 --- a/api/fixtures/performance_test/dayResponsibles.yml +++ /dev/null @@ -1,7 +0,0 @@ -App\Entity\DayResponsible: - additional_dayResponsible1_{1..400}: - campCollaboration: '@additionalCampCollaboration_' - day: '@additional_day1period1_' - additional_dayResponsible2_{1..400}: - campCollaboration: '@additionalCampCollaboration_' - day: '@additional_day2period1_' diff --git a/api/fixtures/performance_test/days.yml b/api/fixtures/performance_test/days.yml deleted file mode 100644 index 6fd8431cd5..0000000000 --- a/api/fixtures/performance_test/days.yml +++ /dev/null @@ -1,10 +0,0 @@ -App\Entity\Day: - additional_day1period1_{1..400}: - period: '@additionalPeriod_' - dayOffset: 0 - additional_day2period1_{1..400}: - period: '@additionalPeriod_' - dayOffset: 1 - additional_day3period1_{1..400}: - period: '@additionalPeriod_' - dayOffset: 2 diff --git a/api/fixtures/performance_test/materialItems.yml b/api/fixtures/performance_test/materialItems.yml deleted file mode 100644 index e33730edf8..0000000000 --- a/api/fixtures/performance_test/materialItems.yml +++ /dev/null @@ -1,29 +0,0 @@ -App\Entity\MaterialItem: - additional_materialItem1_{1..400}: - materialList: '@additional_materialList1_' - period: null - materialNode: '@additional_materialNode1_' - article: Mehl - quantity: 1 - unit: kg - additional_materialItem2_{1..400}: - materialList: '@additional_materialList2_' - period: null - materialNode: '@additional_materialNode1_' - article: Mehl - quantity: 1 - unit: kg - additional_materialItem_camp1_1_{1..200}: - materialList: '@additional_materialList_camp1_1' - period: null - materialNode: '@additional_materialNode_camp1_' - article: - quantity: 1 - unit: kg - additional_materialItem_camp1_2_{1..200}: - materialList: '@additional_materialList_camp1_1' - period: null - materialNode: '@additional_materialNode_camp1_1' - article: - quantity: 1 - unit: kg diff --git a/api/fixtures/performance_test/materialLists.yml b/api/fixtures/performance_test/materialLists.yml deleted file mode 100644 index 02d4bfe34f..0000000000 --- a/api/fixtures/performance_test/materialLists.yml +++ /dev/null @@ -1,10 +0,0 @@ -App\Entity\MaterialList: - additional_materialList1_{1..400}: - camp: '@additionalCamp_' - name: Einkaufsliste - additional_materialList2_{1..400}: - camp: '@additionalCamp_' - name: Packliste - additional_materialList_camp1_{1..12}: - camp: '@camp1' - name: diff --git a/api/fixtures/performance_test/periods.yml b/api/fixtures/performance_test/periods.yml deleted file mode 100644 index c913727a23..0000000000 --- a/api/fixtures/performance_test/periods.yml +++ /dev/null @@ -1,6 +0,0 @@ -App\Entity\Period: - additionalPeriod_{1..400}: - camp: '@additionalCamp_' - description: Hauptlager - start: '<(new DateTime("2021-01-01"))>' - end: '<(new DateTime("2021-01-01"))>' diff --git a/api/fixtures/performance_test/profiles.yml b/api/fixtures/performance_test/profiles.yml deleted file mode 100644 index cf1853d9b0..0000000000 --- a/api/fixtures/performance_test/profiles.yml +++ /dev/null @@ -1,9 +0,0 @@ -App\Entity\Profile: - additionalProfile_{1..400}: - user: '@additionalUser_' - email: 'test\@test.@additionalUser_->id' - firstname: 'firstName@additionalUser_->id' - surname: 'lastName@additionalUser_->id' - nickname: 'nickName@additionalUser_->id' - language: en - roles: [ 'ROLE_USER' ] diff --git a/api/fixtures/performance_test/responsiveLayouts.yml b/api/fixtures/performance_test/responsiveLayouts.yml deleted file mode 100644 index ff1283de4d..0000000000 --- a/api/fixtures/performance_test/responsiveLayouts.yml +++ /dev/null @@ -1,17 +0,0 @@ -App\Entity\ContentNode\ResponsiveLayout: - additional_responsiveLayout1_{1..400}: - root: '@additionalColumnLayoutForCampNumber1_' - parent: '@additionalColumnLayoutForCampNumber1_' - slot: '1' - position: 0 - data: { items: [ { slot: 'main' }, { slot: 'aside-top' }, { slot: 'aside-bottom' } ] } - instanceName: 'additional_responsiveLayout_' - contentType: '@contentTypeResponsiveLayout' - additional_responsiveLayout2_{1..400}: - root: '@additionalColumnLayoutForCampNumber2_' - parent: '@additionalColumnLayoutForCampNumber2_' - slot: '1' - position: 0 - data: { items: [ { slot: 'main' }, { slot: 'aside-top' }, { slot: 'aside-bottom' } ] } - instanceName: 'additional_responsiveLayout_' - contentType: '@contentTypeResponsiveLayout' diff --git a/api/fixtures/performance_test/users.yml b/api/fixtures/performance_test/users.yml deleted file mode 100644 index 1640ca8d10..0000000000 --- a/api/fixtures/performance_test/users.yml +++ /dev/null @@ -1,5 +0,0 @@ -App\Entity\User: - additionalUser_{1..400}: - profile: '@additionalProfile_' - state: activated - password: '\$argon2id\$v=19\$m=65536,t=4,p=1\$/RC8YWMDDXR19wB4or6bBA\$Kq5haK2SACQgo4CB7eDUibsD3QXCE32w25ZwhKg1SGw' # test diff --git a/api/phpunit.performance_test.xml.dist b/api/phpunit.performance_test.xml.dist deleted file mode 100644 index ea73f23965..0000000000 --- a/api/phpunit.performance_test.xml.dist +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - tests/Api/SnapshotTests/EndpointPerformanceTest.php - - - - - - - - - - - - - src - - - diff --git a/api/tests/Api/SnapshotTests/__snapshots__/performance_test_EndpointPerformanceTest__testPerformanceDidNotChangeForStableEndpoints__1.yml b/api/tests/Api/SnapshotTests/__snapshots__/performance_test_EndpointPerformanceTest__testPerformanceDidNotChangeForStableEndpoints__1.yml deleted file mode 100644 index 00d3d68b59..0000000000 --- a/api/tests/Api/SnapshotTests/__snapshots__/performance_test_EndpointPerformanceTest__testPerformanceDidNotChangeForStableEndpoints__1.yml +++ /dev/null @@ -1,47 +0,0 @@ -/activities: 221 -/activities/item: 236 -/activity_progress_labels: 6 -/activity_progress_labels/item: 7 -/activity_responsibles: 6 -/activity_responsibles/item: 8 -/camps: 36 -/camps/item: 31 -/camp_collaborations: 22 -/camp_collaborations/item: 24 -/categories: 11 -/categories/item: 9 -/checklists: 6 -/checklists/item: 7 -/checklist_items: 6 -/checklist_items/item: 8 -/content_types: 6 -/content_types/item: 6 -/days: 26 -/days/item: 12 -/day_responsibles: 6 -/day_responsibles/item: 9 -/material_items: 207 -/material_items/item: 9 -/material_lists: 6 -/material_lists/item: 7 -/periods: 6 -/periods/item: 27 -/profiles: 6 -/profiles/item: 6 -/schedule_entries: 23 -/schedule_entries/item: 221 -/users/item: 6 -'/activities?camp=': 213 -'/activity_progress_labels?camp=': 6 -'/activity_responsibles?activity.camp=': 6 -'/camp_collaborations?camp=': 12 -'/camp_collaborations?activityResponsibles.activity=': 24 -'/categories?camp=': 9 -'/content_types?categories=': 6 -'/day_responsibles?day.period=': 6 -'/material_items?materialList=': 7 -'/material_items?materialNode=': 7 -'/material_items?period=': 208 -'/material_lists?camp=': 6 -'/profiles?user.collaboration.camp=': 6 -'/schedule_entries?period=': 13