Skip to content
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

[WIP][CI] Fix contract tests #125

Closed
wants to merge 3 commits into from
Closed
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
8 changes: 0 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Build

on:
push:
branches-ignore:
- "dependabot/**"
paths-ignore:
- "*.md"
pull_request:
paths-ignore:
- "*.md"
release:
types: [created]
schedule:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/contract_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Contract tests

on:
push: ~
pull_request: ~
schedule:
- cron: "0 1 * * *" # Run at 1am every Saturday
workflow_dispatch: ~
Expand All @@ -23,7 +25,7 @@ jobs:
env:
APP_ENV: test
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}"
SAFERPAY_TEST_API_URL: "https://test.saferpay.com/api"
SAFERPAY_TEST_API_URL: "https://test.saferpay.com/api/"
SAFERPAY_TEST_API_USER: ${{ secrets.SAFERPAY_TEST_API_USER }}
SAFERPAY_TEST_API_PASSWORD: ${{ secrets.SAFERPAY_TEST_API_PASSWORD }}

Expand Down
8 changes: 4 additions & 4 deletions tests/Contract/SaferpayApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ abstract class SaferpayApiTestCase extends JsonApiTestCase
use PantherTestCaseTrait;
use SaferpayHelperTrait;

protected const ASSERT_ENDPOINT = '/Payment/v1/PaymentPage/Assert';
protected const ASSERT_ENDPOINT = 'Payment/v1/PaymentPage/Assert';

protected const CAPTURE_ENDPOINT = '/Payment/v1/Transaction/Capture';
protected const CAPTURE_ENDPOINT = 'Payment/v1/Transaction/Capture';

protected const INITIALIZATION_ENDPOINT = '/Payment/v1/PaymentPage/Initialize';
protected const INITIALIZATION_ENDPOINT = 'Payment/v1/PaymentPage/Initialize';

protected const REFUND_ENDPOINT = '/Payment/v1/Transaction/Refund';
protected const REFUND_ENDPOINT = 'Payment/v1/Transaction/Refund';

protected const CONTENT_TYPE_HEADER = ['CONTENT_TYPE' => 'application/json', 'HTTP_ACCEPT' => 'application/json'];

Expand Down
Loading