Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config_enforce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
config_enforce
Merge requests
!19
Issue
#3357733
: Provide Drush command to enforce configs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3357733
: Provide Drush command to enforce configs
issue/config_enforce-3357733:3357733-drush-command
into
1.0.x
Overview
0
Commits
3
Pipelines
0
Changes
7
Merged
Christopher Gervais
requested to merge
issue/config_enforce-3357733:3357733-drush-command
into
1.0.x
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
7
Expand
0
0
Merge request reports
Compare
1.0.x
1.0.x (base)
and
latest version
latest version
60585a16
3 commits,
2 years ago
7 files
+
126
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
features/drush-command.feature
0 → 100644
+
53
−
0
Options
@drush-command
Feature
:
A Drush command to enforce configs
In order to reliably import configs from the filesystem
As a DevOps Engineer
I need to run a Drush command to enforce configs.
Background
:
Given
I run 'cd ..; make install'
Scenario
:
The `config-enforce
:
enforce`
Drush
command
exists.
When
I run 'drush list'
Then I should get
:
"""
config-enforce:enforce
"""
When I run 'drush config-enforce
:
enforce
--help'
Then I should get
:
"""
Import any configuration that has changed from that on the filesystem.
Examples:
config-enforce:enforce Enforce configuration.
Aliases: cee
"""
When
I run 'drush cee --help'
Then I should get
:
"""
Import any configuration that has changed from that on the filesystem.
Examples:
config-enforce:enforce Enforce configuration.
Aliases: cee
"""
Scenario
:
A
target module's optional configs are not imported when it is enabled.
When
I am on the homepage
Then
I should see
"Config Enforce Devel"
And
I should not see
"Config Enforce Devel -- Test for Drush"
And
I should not see
"Drush command appears to work!"
When
I run 'drush pm-enable -y ce_test_drush_command'
And
I am on the homepage
Then
I should see
"Config Enforce Devel"
And
I should not see
"Config Enforce Devel -- Test for Drush"
And
I should not see
"Drush command appears to work!"
Scenario
:
Configs in a module's `config/optional` are imported when our Drush command is run.
When
I run 'drush pm-enable -y ce_test_drush_command'
And I run 'drush config-enforce
:
enforce'
Then I should get
:
"""
Config Enforce enforced configs.
"""
And
I am on the homepage
Then
I should see
"Config Enforce Devel -- Test for Drush"
And
I should see
"Drush command appears to work!"
Loading