Feature/mock server bundle recipe 1.0 (#1492)

* Add default configuration file

* Add manifest.json

* Update default config to ensure http_client service is available in dev

* Remove http_client config; this is enabled in the bundle via prepend

* Update default config to only load in test and dev environments
This commit is contained in:
Alex Harpin
2023-03-13 19:24:52 +00:00
committed by GitHub
parent 7774cded1c
commit 05da691b43
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
when@test: &test
mock_server:
host_url: '%env(MOCK_SERVER_HOST)%'
mocks_directory: '%kernel.project_dir%/tests/apiMocks'
when@dev: *test

View File

@@ -0,0 +1,11 @@
{
"bundles": {
"YourITServices\\MockServerBundle\\MockServerBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MOCK_SERVER_HOST": "http://mock-api:1080"
}
}