Skip to content

Update BDD tests to redmine 5.1.3 and 5.0.9 #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*

redmine-dev:
image: redmine:5.1.2
image: redmine:5.1.3
user: "1000:1000"
ports:
- "3000:3000"
Expand All @@ -24,28 +24,30 @@ services:
- ./.docker/redmine-dev_data/files:/usr/src/redmine/files
- ./.docker/redmine-dev_data/sqlite:/usr/src/redmine/sqlite

# Make sure the following services are supported in /tests/RedmineExtension/RedmineInstance.php
# Make sure the following services are configured in:
# - /tests/RedmineExtension/RedmineInstance.php
# - /tests/Behat/behat.yml

redmine-50102:
image: redmine:5.1.2
redmine-50103:
image: redmine:5.1.3
user: "1000:1000"
ports:
- "5101:3000"
- "5103:3000"
environment:
REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-50102_data/files:/usr/src/redmine/files
- ./.docker/redmine-50102_data/sqlite:/usr/src/redmine/sqlite
- ./.docker/redmine-50103_data/files:/usr/src/redmine/files
- ./.docker/redmine-50103_data/sqlite:/usr/src/redmine/sqlite

redmine-50008:
image: redmine:5.0.8
redmine-50009:
image: redmine:5.0.9
user: "1000:1000"
ports:
- "5007:3000"
- "5009:3000"
environment:
REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-50008_data/files:/usr/src/redmine/files
- ./.docker/redmine-50008_data/sqlite:/usr/src/redmine/sqlite
- ./.docker/redmine-50009_data/files:/usr/src/redmine/files
- ./.docker/redmine-50009_data/sqlite:/usr/src/redmine/sqlite
8 changes: 4 additions & 4 deletions tests/Behat/behat.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
default:
suites:
redmine_50102:
redmine_50103:
paths:
- '%paths.base%/features'
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.1.2'
redmine_50008:
redmineVersion: '5.1.3'
redmine_50009:
paths:
- '%paths.base%/features'
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.0.8'
redmineVersion: '5.0.9'
5 changes: 3 additions & 2 deletions tests/RedmineExtension/RedmineInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ final class RedmineInstance
{
/**
* Make sure that supported versions have a service in /docker-composer.yml
* and are configured in /tests/Behat/behat.yml
*/
public static function getSupportedVersions(): array
{
return [
RedmineVersion::V5_1_2,
RedmineVersion::V5_0_8,
RedmineVersion::V5_1_3,
RedmineVersion::V5_0_9,
];
}

Expand Down
17 changes: 17 additions & 0 deletions tests/RedmineExtension/RedmineVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

enum RedmineVersion: string
{
/**
* Redmine 5.1.3
*
* @link https://www.redmine.org/versions/195
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_1#513-2024-06-12
*/
case V5_1_3 = '5.1.3';

/**
* Redmine 5.1.2
*
Expand All @@ -30,6 +38,15 @@ enum RedmineVersion: string
*/
case V5_1_0 = '5.1.0';

/**
* Redmine 5.0.9
*
* @link https://www.redmine.org/versions/194
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_5_0#509-2024-06-11
*/

case V5_0_9 = '5.0.9';

/**
* Redmine 5.0.8
*
Expand Down
Loading