Skip to content

Commit

Permalink
Add test for Traceback in install @module
Browse files Browse the repository at this point in the history
The problem was triggered when modular error was handled during
"dnf install @module" command.
  • Loading branch information
j-mracek committed Mar 27, 2019
1 parent 90eae4f commit 212ead2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dnf-docker-test/features/module-error-1.feature
@@ -0,0 +1,20 @@
Feature: Show modular errors

@setup
Scenario: Testing repository Setup
Given I run steps from file "modularity-repo-1.setup"
When I enable repository "modularityABDE"
And I successfully run "dnf makecache"
And I successfully run "dnf module enable ModuleE:f26 -y"
And I successfully run "dnf module disable ModuleD --skip-broken -y"

@bz1688823
Scenario: I can install a module in presence of a modular error
When I successfully run "dnf install @ModuleB:f26 -y"
Then a module ModuleB config file should contain
| Key | Value |
| state | enabled |
| stream | f26 |
And the command stdout should match regexp "Enabling module streams:"
And the command stdout should match regexp "ModuleB +f26"
And the command stderr should not match regexp "Traceback"

0 comments on commit 212ead2

Please sign in to comment.