Skip to content

Commit

Permalink
Added integration-min to skip running tests w/plugins.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Aug 5, 2024
1 parent a21712a commit 28efb16
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
composer run unit
integration-test-elasticsearch:
name: Tntegration Test (Elasticsearch)
name: Integration Test (Elasticsearch)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
OPENSEARCH_URL: 'http://localhost:9200'

integration-test-opensearch:
name: Tntegration Test (OpenSearch)
name: Integration Test (OpenSearch)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
OPENSEARCH_URL: 'http://localhost:9200'

integration-test-opensearch-strong-password:
name: Tntegration Test (OpenSearch w/Strong Password)
name: Integration Test (OpenSearch w/Strong Password)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:

- name: Integration tests
run: |
composer run integration
composer run integration-min
env:
OPENSEARCH_URL: 'http://localhost:9200'
2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you don't have a running server, you can start one with Docker using `docker

The integration tests are using by default following address `https://admin:admin@localhost:9200`. This can be changed by setting the environment variable `OPENSEARCH_URL` to a different url.

To run the integration tests, you can use `composer run integration`
To run the integration tests, you can use `composer run integration-min` for just OpenSearch or `composer run integration` for OpenSearch and its plugins.

```bash
export OPENSEARCH_PASSWORD=myStrongPassword123!
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"integration": [
"phpunit --group Integration"
],
"integration-min": [
"phpunit --group Integration-Min"
],
"phpunit": [
"phpunit"
],
Expand Down
1 change: 1 addition & 0 deletions tests/ClientIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*
* @subpackage Tests
* @group Integration
* @group Integration-Min
*/
class ClientIntegrationTest extends \PHPUnit\Framework\TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*
* @subpackage Tests/SniffingConnectionPoolTest
* @group Integration
* @group Integration-Min
*/
class SniffingConnectionPoolIntegrationTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*
* @subpackage Tests/StaticConnectionPoolTest
* @group Integration
* @group Integration-Min
*/
class StaticConnectionPoolIntegrationTest extends \PHPUnit\Framework\TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/Endpoints/CreateIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*
* @subpackage Tests\Endpoints
* @group Integration
* @group Integration-Min
*/
class CreateIntegrationTest extends \PHPUnit\Framework\TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/Endpoints/CreatePointInTimeIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*
* @subpackage Tests\Endpoints
* @group Integration
* @group Integration-Min
*/
class CreatePointInTimeIntegrationTest extends \PHPUnit\Framework\TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/Endpoints/DeletePointInTimeIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*
* @subpackage Tests\Endpoints
* @group Integration
* @group Integration-Min
*/
class DeletePointInTimeIntegrationTest extends \PHPUnit\Framework\TestCase
{
Expand Down

0 comments on commit 28efb16

Please sign in to comment.