-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Radoslav Dimitrov <[email protected]>
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
tests: | ||
- name: "File should be present" | ||
def: | ||
file: README | ||
params: {} | ||
expect: "pass" | ||
git: | ||
repo_base: file_present | ||
- name: "File is missing" | ||
def: | ||
file: README | ||
params: {} | ||
expect: "fail" | ||
git: | ||
repo_base: file_missing | ||
- name: "File present and matches content" | ||
def: | ||
file: README | ||
content: "Test content" | ||
params: {} | ||
expect: "pass" | ||
git: | ||
repo_base: file_present | ||
- name: "File present, but has different content" | ||
def: | ||
file: README | ||
content: "Different content" | ||
params: {} | ||
expect: "fail" | ||
git: | ||
repo_base: file_present | ||
- name: "File present, but has more content than expected" | ||
def: | ||
file: README | ||
content: "Test" | ||
params: { } | ||
expect: "fail" | ||
git: | ||
repo_base: file_present | ||
- name: "File present, but has less content than expected" | ||
def: | ||
file: README | ||
content: "Test content with a subset" | ||
params: { } | ||
expect: "fail" | ||
git: | ||
repo_base: file_present |
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 @@ | ||
Test content |