What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, with some recent updates for the spryker testify updates, there were changes made for the env
Hello,
with some recent updates for the spryker testify updates, there were changes made for the env variables
```
defined('SPRYKER_ACTIVE_STORES') || define('SPRYKER_ACTIVE_STORES', 'DE,AT');
```
It gets checked and set to default values DE,AT, which are not valid stores in our case
Where do i have to set SPRYKER_ACTIVE_STORES to make it work again? When i run a printenv on the testing container, it prints our store correctly (CN) β¦ but in the stores php on the breakpoint, the default values DE, AT are fetched.
Any ideas?
Best regards and have a nice weekend.
Comments
-
you can set it in the deployment yaml configuration I think. So for local development it should be deploy.dev.yml file for example
0 -
Yes there its set correctly to only the one CN we have at the moment
0 -
oh ok, thats weird indeed
0 -
I mean you could probably just remove the fallback if it does not work for your setup, anyway. But then probably its empty...
0 -
hmmm ill try to bootstrap again β¦ maybe thats needed with the testify update
0 -
No change β¦ it seems SPRYKER_ACTIVE_STORES is not defined when running
docker/sdk cli -t vendor/bin/codecept run -c
But when i run
docker/sdk cli -t printenv | grep SPRYKER_ACTIVE_STORES
the result is
SPRYKER_ACTIVE_STORES=CN
0 -
hm ok, would be interesting if that applies to other env vars as well. Otherwise you could probably set it by prepending the command with SPRYKER_ACTIVE_STORES=CN docker/sdk ...
0 -
but this does not help much if more env vars are not initalized correctly π
0 -
ah no, probably that also does not work if php does not load it correctly
0 -
I think we changed it in the store configuration to fallback to one of our default stores, if the env variable is not set. Another way might be this file here to set env variables for testing env? default.yml -> https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202108.0/running-tests-with-the-docker-sdk.html#configure-codeception
0 -
-
It seems to be running a single modules testsuite does not work since the envs are not loaded with the corresponding codeception.yml
As far as i understood the codeception.yml on root level does only aggregate any codeception.yml in tests/PyzTest// β¦ but pointing to a specific codeception.yml wonβt inlcude any env since its simply not configured into them β¦0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random