Skip to content

Commit

Permalink
tests: update attach_invalidtoken.feature for use with behave-any
Browse files Browse the repository at this point in the history
  • Loading branch information
orndorffgrant committed Jun 28, 2023
1 parent cd93bc7 commit 6e7609b
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions features/attach_invalidtoken.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Feature: Command behaviour when trying to attach a machine to an Ubuntu
Pro subscription using an invalid token

@series.all
@uses.config.machine_type.any
@uses.config.machine_type.lxd-container
Scenario Outline: Attach command failure on invalid token
Given a `<release>` machine with ubuntu-advantage-tools installed
Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed
When I verify that running `pro attach INVALID_TOKEN` `with sudo` exits `1`
Then stderr matches regexp:
"""
Expand All @@ -23,20 +24,21 @@ Feature: Command behaviour when trying to attach a machine to an Ubuntu
"""

Examples: ubuntu release
| release |
| xenial |
| bionic |
| focal |
| jammy |
| kinetic |
| lunar |
| mantic |
| release | machine_type |
| xenial | lxd-container |
| bionic | lxd-container |
| focal | lxd-container |
| jammy | lxd-container |
| kinetic | lxd-container |
| lunar | lxd-container |
| mantic | lxd-container |

@series.all
@uses.config.machine_type.any
@uses.config.machine_type.lxd-container
@uses.config.contract_token_staging_expired
Scenario Outline: Attach command failure on expired token
Given a `<release>` machine with ubuntu-advantage-tools installed
Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed
When I attempt to attach `contract_token_staging_expired` with sudo
Then stderr matches regexp:
"""
Expand All @@ -52,11 +54,11 @@ Feature: Command behaviour when trying to attach a machine to an Ubuntu
"""

Examples: ubuntu release
| release |
| xenial |
| bionic |
| focal |
| jammy |
| kinetic |
| lunar |
| mantic |
| release | machine_type |
| xenial | lxd-container |
| bionic | lxd-container |
| focal | lxd-container |
| jammy | lxd-container |
| kinetic | lxd-container |
| lunar | lxd-container |
| mantic | lxd-container |

0 comments on commit 6e7609b

Please sign in to comment.