Skip to content

Commit

Permalink
Merge pull request #370 from jzelinskie/featurens
Browse files Browse the repository at this point in the history
ext/featurens: add empty filesmap tests for all
  • Loading branch information
jzelinskie authored Apr 21, 2017
2 parents ae78bdc + 34bc722 commit 558661e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/featurens/aptsources/aptsources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ BUG_REPORT_URL="https://bugs.debian.org/"`),
"etc/apt/sources.list": []byte(`deb http://httpredir.debian.org/debian unstable main`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}

featurens.TestDetector(t, &detector{}, testData)
Expand Down
4 changes: 4 additions & 0 deletions ext/featurens/lsbrelease/lsbrelease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ DISTRIB_CODENAME=wheezy
DISTRIB_DESCRIPTION="Debian 7.1"`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}

featurens.TestDetector(t, &detector{}, testData)
Expand Down
4 changes: 4 additions & 0 deletions ext/featurens/osrelease/osrelease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=20`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}

featurens.TestDetector(t, &detector{}, testData)
Expand Down
4 changes: 4 additions & 0 deletions ext/featurens/redhatrelease/redhatrelease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func TestDetector(t *testing.T) {
"etc/system-release": []byte(`CentOS Linux release 7.1.1503 (Core)`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}

featurens.TestDetector(t, &detector{}, testData)
Expand Down

0 comments on commit 558661e

Please sign in to comment.