Skip to content

Commit 9bba6bf

Browse files
committed
(PUP-11764) Add nginx module fixture
Adds a subset of the files from the pmtacceptance-nginx module from the test forge. The github action `actions/checkout@v3` will by default convert NL to CRNL on Windows, unless disabled in git config. This commit disables text mode (-text) for those files in .gitattributes. This is necessary, because future commits will need to `puppet module changes` to compare the modules' files on disk against the `checksums` hash in metadata.json.
1 parent e4555b7 commit 9bba6bf

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Disable NL -> CRNL translation on Windows. This is necessary because the files on disk must
2+
# match the checksums in metadata.json.
3+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/README -text
4+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/metadata.json -text
5+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/Modulefile -text
6+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/manifests/init.pp -text
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nginx
2+
3+
This is the nginx module.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Class: nginx
2+
#
3+
# This module manages nginx
4+
#
5+
# Parameters:
6+
#
7+
# Actions:
8+
#
9+
# Requires:
10+
#
11+
# Sample Usage:
12+
#
13+
# [Remember: No empty lines between comments and class definition]
14+
class nginx {
15+
16+
17+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "pmtacceptance/nginx",
3+
"version": "0.0.1",
4+
"source": "UNKNOWN",
5+
"author": "pmtacceptance",
6+
"license": "UNKNOWN",
7+
"summary": "UNKNOWN",
8+
"description": "UNKNOWN",
9+
"project_page": "UNKNOWN",
10+
"dependencies": [
11+
12+
],
13+
"types": [
14+
15+
],
16+
"checksums": {
17+
"README": "5c4fbf4812d8a4d4b0fe1c13ad640b0e",
18+
"manifests/init.pp": "3a8ab171fd609a527ae0b293ced9a014"
19+
}
20+
}

0 commit comments

Comments
 (0)