-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57de891
commit 5b1bcaf
Showing
8 changed files
with
333 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Feature: update the ADR status | ||
|
||
In order easily maintain the ADR files | ||
As an ADR writer | ||
I want to change the status of an ADR file from the command line | ||
|
||
|
||
Background: | ||
|
||
ADRGen allows update the ADR status with the command | ||
|
||
adrgen status 1 "accepted" | ||
|
||
|
||
Scenario: update the ADR status without config to a default valid status | ||
|
||
Given there is a 0001-my-architecture-decision.md ADR file with the following content: | ||
""" | ||
--- | ||
param1: "" | ||
param2: "" | ||
--- | ||
# 1. My architecture decision | ||
Date: {date} | ||
## Status | ||
Status: proposed | ||
## Context | ||
What is the issue that we're seeing that is motivating this decision or change? | ||
## Decision | ||
What is the change that we're proposing and/or doing? | ||
## Consequences | ||
What becomes easier or more difficult to do because of this change? | ||
""" | ||
When the user executes the status command specifying "accepted" for the ADR identified by the 1 id | ||
Then the adr has the accepted status | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Feature: relation link between ADR files | ||
|
||
In order to have a clear trace and the evolution of my architecture | ||
As an ADR writer | ||
I want to be able to manager the relations between ADR files | ||
|
||
Background: | ||
|
||
ADRGen allows creating ADR Files that supersede another one with the command | ||
|
||
adrgen create "My ADR file" -s 1 | ||
|
||
ADRGen allows creating ADR Files that amends another one with the command | ||
|
||
adrgen create "My ADR file" -a 1 | ||
|
||
Given there are the following adrs in the system | ||
| 0001-new-adr.md | accepted | 1 | New adr | | ||
| 0002-new-adr.md | accepted | 2 | New adr | | ||
| 0003-new-adr.md | accepted | 3 | New adr | | ||
| 0004-new-adr.md | accepted | 4 | New adr | | ||
|
||
And there is a config file created with this configuration | ||
| default_status | directory | template_file | id_digit_number | | ||
| custom | ./ | ./template.md | 4 | | ||
|
||
Scenario Outline: relations between adr files | ||
When the user specify the <title> title | ||
And the user specify the <relation> relation with the target ADR with the <targetADR> id | ||
And the create command is executed | ||
Then the <filename> ADR file is created | ||
And the adr has the <expectedStatus> status | ||
And the adr has the <relation> link on it | ||
And the target ADR has the <relation> relation link on it and the <expectedTargetStatus> status | ||
|
||
Examples: | ||
| title | filename | relation | targetADR | expectedStatus | expectedTargetStatus | | ||
| New adr | 0005-new-adr.md | amend | 2 | custom | amended | | ||
| New adr | 0006-new-adr.md | supersede | 2 | custom | superseded | | ||
| New adr | 0007-new-adr.md | amend | 3 | custom | amended | | ||
| New adr | 0008-new-adr.md | amend | 4 | custom | amended | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.