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

Add configurable arguments via Behat Contexts. #2025

Merged
merged 8 commits into from
Jul 27, 2017
Merged

Add configurable arguments via Behat Contexts. #2025

merged 8 commits into from
Jul 27, 2017

Conversation

dkinzer
Copy link

@dkinzer dkinzer commented Jul 23, 2017

REF CIVIC-6614 GetDKAN/dkan_starter#332

By passing Context Attributes via configuration we have the option of overriding
them for custom settings and test environments.

See GetDKAN/dkan_starter#392 for dkan_starter version of this and more details.

dkinzer added 3 commits July 23, 2017 11:11
REF CIVIC-6614

By passing Context Attributes via configuration we have the option of overriding
them for custom settings and test environments.
dkinzer added a commit to GetDKAN/dkan_starter that referenced this pull request Jul 23, 2017
REF CIVIC-6614 GetDKAN/dkan#2025 #332

Adds some new build tools to allow sites to override behat cotext attributes
with custom settings set in cofig.yml

See .ahoy/site/tests/test_config-behat.rb for details of how this works, but the gist of it is
you add overriding configurations in config.yml

```
behat:
  contexts:
    datasets:
      defaults: {}
      fields: {}
      labels: {}
      sets: {}
    services:
      request_fields_map: {}
```

And this gets incorporated into the various behat.yml settings by running

```
ahoy build config`
```

as per usual.
@dkinzer dkinzer changed the title WIP: Add configurable arguments via Behat Contexts. Add configurable arguments via Behat Contexts. Jul 26, 2017
@dafeder dafeder merged commit c534535 into 1.13.6 Jul 27, 2017
@dafeder dafeder deleted the civic-6614 branch July 27, 2017 15:06
dafeder pushed a commit that referenced this pull request Apr 24, 2020
* Add configurable arguments via Behat Contexts.

REF CIVIC-6614

By passing Context Attributes via configuration we have the option of overriding
them for custom settings and test environments.

* Fix Ruby YAML does not like unquoted % token.

* Update tests.

* Add fields to ServiceContext. Fix typo in dataset key

* Fix behat.yml services params.

* Load Dataset context froom ServicesContext via Factory.

* Fix datasetContext not available form ServicesContext.

* Reformat behat.yml and fix PODContext URL.
dafeder pushed a commit that referenced this pull request Apr 24, 2020
* Add configurable arguments via Behat Contexts.

REF CIVIC-6614

By passing Context Attributes via configuration we have the option of overriding
them for custom settings and test environments.

* Fix Ruby YAML does not like unquoted % token.

* Update tests.

* Add fields to ServiceContext. Fix typo in dataset key

* Fix behat.yml services params.

* Load Dataset context froom ServicesContext via Factory.

* Fix datasetContext not available form ServicesContext.

* Reformat behat.yml and fix PODContext URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants