-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from getyoti/release-1.1.0
Release 1.1.0
- Loading branch information
Showing
78 changed files
with
3,656 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
YOTI_SANDBOX_CLIENT_SDK_ID= | ||
YOTI_KEY_FILE_PATH=./keys/privateKey.pem | ||
YOTI_DOC_SCAN_API_URL=https://api.yoti.com/sandbox/idverify/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.env | ||
composer.lock | ||
sandbox | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Doc Scan Sandbox Example | ||
|
||
An example of configuring a session response can be found in the [FeatureContext](./features/bootstrap/FeatureContext.php) | ||
|
||
## Configuring the application | ||
|
||
1. Rename the [.env.example](.env.example) file to `.env` and fill in the required configuration values | ||
|
||
## Installing dependencies | ||
|
||
1. `docker-compose up composer` | ||
|
||
## Running the test | ||
|
||
1. `docker-compose up test` | ||
|
||
## Stopping services | ||
|
||
1. `docker-compose down` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
default: | ||
extensions: | ||
Behat\MinkExtension: | ||
base_url: https://app:3000 | ||
javascript_session: selenium2 | ||
browser_name: 'chrome' | ||
selenium2: | ||
wd_host: http://selenium:4444/wd/hub | ||
capabilities: | ||
browserName: 'chrome' | ||
browser: 'chrome' | ||
chrome: | ||
switches: | ||
- '--headless' | ||
- '--no-sandbox' | ||
- '--disable-dev-shm-usage' | ||
- '--disable-gpu' | ||
- '--window-size=1280,2000' | ||
- '--ignore-certificate-errors' | ||
suites: | ||
default: | ||
contexts: | ||
- Yoti\Demo\Context\FeatureContext: | ||
- image_path: '/usr/src/resources/image.jpg' | ||
timeouts: | ||
implicit: 5000 | ||
- Behat\MinkExtension\Context\MinkContext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "yoti/yoti-php-sdk-doc-scan-sandbox-example", | ||
"description": "Yoti PHP SDK Doc Scan Sandbox Example", | ||
"license": "MIT", | ||
"require": { | ||
"yoti/yoti-php-sdk": "^3.1" | ||
}, | ||
"require-dev": { | ||
"yoti/yoti-php-sdk-sandbox": "^1.0", | ||
"behat/behat": "^3.6", | ||
"behat/mink-extension": "^2.3", | ||
"behat/mink-selenium2-driver": "^1.4" | ||
}, | ||
"scripts": { | ||
"pre-install-cmd": "@copy-sdk", | ||
"pre-update-cmd": "@copy-sdk", | ||
"copy-sdk": "grep -q 'yoti-php-sdk-sandbox' ../../composer.json && rm -fr ./sandbox && cd ../../ && git archive --prefix=sandbox/ --format=tar HEAD | (cd - && tar xf -) || echo 'Could not install Sandbox from parent directory'" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Yoti\\Demo\\Context\\": "features/bootstrap/" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "./sandbox", | ||
"options": { | ||
"symlink": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
build: https://github.com/getyoti/doc-scan-sandbox-test-app.git#0.2.0 | ||
env_file: | ||
- ./.env | ||
environment: | ||
- YOTI_KEY_FILE_PATH=/usr/src/keys/privateKey.pem | ||
- YOTI_CLIENT_SDK_ID=${YOTI_SANDBOX_CLIENT_SDK_ID} | ||
- YOTI_DOC_SCAN_API_URL=${YOTI_DOC_SCAN_API_URL} | ||
volumes: | ||
- ${YOTI_KEY_FILE_PATH}:/usr/src/keys/privateKey.pem | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- selenium | ||
|
||
selenium: | ||
image: selenium/standalone-chrome | ||
container_name: selenium | ||
volumes: | ||
- ./resources:/usr/src/resources | ||
ports: | ||
- "4444:4444" | ||
|
||
test: | ||
image: php:7-fpm-alpine | ||
command: ./vendor/bin/behat --colors | ||
env_file: | ||
- ./.env | ||
environment: | ||
- YOTI_KEY_FILE_PATH=/usr/src/keys/privateKey.pem | ||
- YOTI_SANDBOX_CLIENT_SDK_ID=${YOTI_SANDBOX_CLIENT_SDK_ID} | ||
volumes: | ||
- ./:/var/www/html | ||
- ${YOTI_KEY_FILE_PATH}:/usr/src/keys/privateKey.pem | ||
depends_on: | ||
- app | ||
|
||
composer: | ||
image: composer | ||
volumes: | ||
- ../../:/app | ||
working_dir: /app/examples/doc-scan | ||
command: update |
Oops, something went wrong.