fauxhai 4.1.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +71 -12
- data/CONTRIBUTING.md +32 -20
- data/PLATFORMS.md +13 -73
- data/README.md +4 -4
- data/Rakefile +5 -1
- data/fauxhai.gemspec +3 -3
- data/lib/fauxhai/fetcher.rb +1 -1
- data/lib/fauxhai/mocker.rb +19 -17
- data/lib/fauxhai/platforms/amazon/2012.09.json +526 -178
- data/lib/fauxhai/platforms/amazon/2013.09.json +561 -235
- data/lib/fauxhai/platforms/amazon/2014.03.json +586 -291
- data/lib/fauxhai/platforms/amazon/2014.09.json +552 -218
- data/lib/fauxhai/platforms/amazon/2015.03.json +576 -222
- data/lib/fauxhai/platforms/amazon/2015.09.json +542 -238
- data/lib/fauxhai/platforms/amazon/2016.03.json +552 -246
- data/lib/fauxhai/platforms/amazon/2016.09.json +539 -237
- data/lib/fauxhai/platforms/amazon/2017.03.json +667 -0
- data/lib/fauxhai/platforms/arch/4.10.13-1-ARCH.json +1674 -0
- data/lib/fauxhai/platforms/arch/4.5.4-1-ARCH.json +2 -1
- data/lib/fauxhai/platforms/arch/4.9.11-1-ARCH.json +1 -0
- data/lib/fauxhai/platforms/centos/5.0.json +1 -0
- data/lib/fauxhai/platforms/centos/5.1.json +1 -0
- data/lib/fauxhai/platforms/centos/5.10.json +4536 -496
- data/lib/fauxhai/platforms/centos/5.11.json +4485 -318
- data/lib/fauxhai/platforms/centos/5.2.json +1 -0
- data/lib/fauxhai/platforms/centos/5.3.json +1 -0
- data/lib/fauxhai/platforms/centos/5.4.json +1 -0
- data/lib/fauxhai/platforms/centos/5.5.json +1 -0
- data/lib/fauxhai/platforms/centos/5.6.json +1 -0
- data/lib/fauxhai/platforms/centos/5.7.json +1 -0
- data/lib/fauxhai/platforms/centos/5.8.json +1 -0
- data/lib/fauxhai/platforms/centos/5.9.json +1 -0
- data/lib/fauxhai/platforms/centos/6.0.json +1 -0
- data/lib/fauxhai/platforms/centos/6.1.json +1 -0
- data/lib/fauxhai/platforms/centos/6.2.json +1 -0
- data/lib/fauxhai/platforms/centos/6.3.json +1 -0
- data/lib/fauxhai/platforms/centos/6.4.json +1 -0
- data/lib/fauxhai/platforms/centos/6.5.json +1 -0
- data/lib/fauxhai/platforms/centos/6.6.json +1 -0
- data/lib/fauxhai/platforms/centos/6.8.json +2278 -422
- data/lib/fauxhai/platforms/centos/6.9.json +5910 -0
- data/lib/fauxhai/platforms/centos/7.0.1406.json +2 -1
- data/lib/fauxhai/platforms/centos/7.0.json +2 -1
- data/lib/fauxhai/platforms/centos/7.1.1503.json +2 -1
- data/lib/fauxhai/platforms/centos/7.2.1511.json +3620 -547
- data/lib/fauxhai/platforms/centos/7.3.1611.json +3781 -561
- data/lib/fauxhai/platforms/clearos/7.0.json +1985 -0
- data/lib/fauxhai/platforms/debian/7.0.json +1 -0
- data/lib/fauxhai/platforms/debian/7.1.json +1 -0
- data/lib/fauxhai/platforms/debian/7.10.json +3568 -522
- data/lib/fauxhai/platforms/debian/7.11.json +3340 -311
- data/lib/fauxhai/platforms/debian/7.2.json +1 -0
- data/lib/fauxhai/platforms/debian/7.4.json +1 -0
- data/lib/fauxhai/platforms/debian/7.5.json +1 -0
- data/lib/fauxhai/platforms/debian/7.6.json +1 -0
- data/lib/fauxhai/platforms/debian/7.7.json +1 -0
- data/lib/fauxhai/platforms/debian/7.8.json +1 -0
- data/lib/fauxhai/platforms/debian/7.9.json +1 -0
- data/lib/fauxhai/platforms/debian/8.0.json +1 -0
- data/lib/fauxhai/platforms/debian/8.1.json +2 -1
- data/lib/fauxhai/platforms/debian/8.2.json +2 -1
- data/lib/fauxhai/platforms/debian/8.4.json +2 -1
- data/lib/fauxhai/platforms/debian/8.5.json +1 -0
- data/lib/fauxhai/platforms/debian/8.6.json +1 -0
- data/lib/fauxhai/platforms/debian/8.7.json +3398 -544
- data/lib/fauxhai/platforms/debian/8.8.json +3620 -0
- data/lib/fauxhai/platforms/fedora/21.json +2 -1
- data/lib/fauxhai/platforms/fedora/22.json +2 -1
- data/lib/fauxhai/platforms/fedora/23.json +2 -1
- data/lib/fauxhai/platforms/fedora/24.json +5120 -668
- data/lib/fauxhai/platforms/fedora/25.json +5140 -560
- data/lib/fauxhai/platforms/freebsd/10.1.json +2 -1
- data/lib/fauxhai/platforms/freebsd/10.2.json +2 -1
- data/lib/fauxhai/platforms/freebsd/10.3.json +276 -137
- data/lib/fauxhai/platforms/freebsd/11.0.json +270 -137
- data/lib/fauxhai/platforms/freebsd/9.3.json +2 -1
- data/lib/fauxhai/platforms/linuxmint/18.1.json +10773 -0
- data/lib/fauxhai/platforms/mac_os_x/10.10.json +618 -542
- data/lib/fauxhai/platforms/mac_os_x/10.11.1.json +1 -0
- data/lib/fauxhai/platforms/mac_os_x/10.11.json +982 -0
- data/lib/fauxhai/platforms/mac_os_x/10.12.json +658 -645
- data/lib/fauxhai/platforms/mac_os_x/10.9.2.json +1 -0
- data/lib/fauxhai/platforms/omnios/151014.json +2 -1
- data/lib/fauxhai/platforms/opensuse/12.3.json +2 -1
- data/lib/fauxhai/platforms/opensuse/13.1.json +1 -0
- data/lib/fauxhai/platforms/opensuse/13.2.json +4667 -558
- data/lib/fauxhai/platforms/opensuse/42.1.json +5544 -461
- data/lib/fauxhai/platforms/opensuse/42.2.json +7674 -545
- data/lib/fauxhai/platforms/oracle/5.8.json +1 -0
- data/lib/fauxhai/platforms/oracle/6.5.json +1 -0
- data/lib/fauxhai/platforms/oracle/6.6.json +1 -0
- data/lib/fauxhai/platforms/oracle/7.0.json +1 -0
- data/lib/fauxhai/platforms/oracle/7.1.json +1 -0
- data/lib/fauxhai/platforms/redhat/5.6.json +2 -1
- data/lib/fauxhai/platforms/redhat/5.7.json +2 -1
- data/lib/fauxhai/platforms/redhat/5.8.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.0.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.1.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.2.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.3.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.4.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.5.json +2 -1
- data/lib/fauxhai/platforms/redhat/6.6.json +1 -0
- data/lib/fauxhai/platforms/redhat/7.0.json +1 -0
- data/lib/fauxhai/platforms/redhat/7.1.json +1 -0
- data/lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json +2 -1
- data/lib/fauxhai/platforms/solaris2/5.11.json +10884 -3268
- data/lib/fauxhai/platforms/suse/11.3.json +2 -1
- data/lib/fauxhai/platforms/suse/12.0.json +1 -0
- data/lib/fauxhai/platforms/ubuntu/12.04.json +2 -1
- data/lib/fauxhai/platforms/ubuntu/14.04.json +2800 -272
- data/lib/fauxhai/platforms/ubuntu/15.04.json +2 -1
- data/lib/fauxhai/platforms/ubuntu/15.10.json +2 -1
- data/lib/fauxhai/platforms/ubuntu/16.04.json +3487 -541
- data/lib/fauxhai/platforms/windows/10.json +119 -82
- data/lib/fauxhai/platforms/windows/2003R2.json +1 -0
- data/lib/fauxhai/platforms/windows/2008R2.json +156 -5734
- data/lib/fauxhai/platforms/windows/2012R2.json +157 -3592
- data/lib/fauxhai/platforms/windows/7.json +116 -77
- data/lib/fauxhai/platforms/windows/8.1.json +100 -98
- data/lib/fauxhai/platforms/windows/8.json +1 -0
- data/lib/fauxhai/runner.rb +6 -3
- data/lib/fauxhai/runner/default.rb +133 -67
- data/lib/fauxhai/version.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b8d663e94c02a869eec4b51d28c72e93228330e
|
4
|
+
data.tar.gz: 4dd4ca11d9cd5be74b1dd76f24cb9e55103b91e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc24dac4c9d312ef1af52227375b147a90bf7eccf42ee523a4f1438d7646425b0791d921a7ac2067583d43d5257a781b70d56ac876cec180eaf15e2773a769e
|
7
|
+
data.tar.gz: 446e5b6c2e11a7177dbcea765a96749bc76af5321b8b0cd15efd45905cf42752263590a2af4112809f275fd3dbd984a8f7333cc7774a709a013477345bd789c0
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,64 @@
|
|
1
1
|
# Fauxhai Changelog
|
2
2
|
|
3
|
+
## v5.0.0 (2017-06-12)
|
4
|
+
|
5
|
+
- Added new platform data:
|
6
|
+
|
7
|
+
- `Arch` 4.10.13-1-ARCH
|
8
|
+
- `Amazon` Linux 2017.03
|
9
|
+
- `CentOS` 6.9
|
10
|
+
- `ClearOS` 7.0
|
11
|
+
- `Debian` 8.8
|
12
|
+
- `Linux Mint` 18.1
|
13
|
+
|
14
|
+
- Regenerated multiple platform data files to include Ohai 13 data, better mocked network data, and additional Ohai plugin data that is now whitelisted:
|
15
|
+
|
16
|
+
- `Amazon Linux`
|
17
|
+
- `CentOS`
|
18
|
+
- `Debian`
|
19
|
+
- `Fedora`
|
20
|
+
- `macOS`
|
21
|
+
- `openSUSE`
|
22
|
+
- `Solaris`
|
23
|
+
- `Ubuntu`
|
24
|
+
- `Windows`
|
25
|
+
|
26
|
+
- Added a new system to allow deprecating old Fauxhai platform data with a warning shown during ChefSpec. This will allow us to deprecate data for platforms which have been marked End of Life by their maintainers. The following platforms have been marked as deprecated, but will continue to function until they are removed at a future date:
|
27
|
+
|
28
|
+
- `Arch`: 4.5.4-1-ARCH, 4.9.11-1-ARCH
|
29
|
+
- `CentOS`: 5.0, 5.1, 5.2, 5.3, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 7.0, 7.0.1406, 7.1.1503
|
30
|
+
- `Debian`: 7.2, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.4, 8.5, 8.6
|
31
|
+
- `Fedora`: 21, 22, 23
|
32
|
+
- `FreeBSD`: 9.3, 10.1, 10.2
|
33
|
+
- `MacOS`: 10.9.2, 10.11.1 (replaced by 10.11)
|
34
|
+
- `omnios`: 151014
|
35
|
+
- `openSUSE`: 12.3, 13.1
|
36
|
+
- `oracle`: 5.8, 6.5, 6.6, 7.0, 7.1
|
37
|
+
- `redhat`: 5.6, 5.7, 5.8, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 7.0, 7.1
|
38
|
+
- `smartos`: joyent_20130111T180733Z
|
39
|
+
- `suse`: 11.3, 12.0
|
40
|
+
- `ubuntu`: 12.04, 15.04, 15.10
|
41
|
+
- `windows`: 2003R2, 8
|
42
|
+
|
43
|
+
- Data provided by the chef_packages will no longer be mocked, but instead the actual Ohai data will be used. This corrects incorrect paths to the Chef/Ohai binaries on many platforms
|
44
|
+
- Update the chef/ohai dependencies to allow for Chef/Ohai 13
|
45
|
+
- Improve the mocked Network data to return more platform appropriate network information.
|
46
|
+
- Whitelisted additional Ohai plugins to provide better mocked data
|
47
|
+
|
48
|
+
- idletime_seconds
|
49
|
+
- idle
|
50
|
+
- machinename
|
51
|
+
- packages
|
52
|
+
- fips
|
53
|
+
- block_device
|
54
|
+
- time
|
55
|
+
- shard_seed
|
56
|
+
- shells
|
57
|
+
|
58
|
+
- Remove backwards compatibility with ChefSpec < 0.9.0 which was released 5 years ago
|
59
|
+
- Improve error messages when the platform data cannot be fetched remotely
|
60
|
+
- Fix the logic for enabling / disabling the Github fetching being backwards
|
61
|
+
|
3
62
|
## v4.1.0 (2017-03-27)
|
4
63
|
|
5
64
|
- Add a new config option "github_fetching" that disables fetching platform mocks from Github
|
@@ -193,18 +252,18 @@ Released: 2013-05-09
|
|
193
252
|
- Add Debian 7.0 (Wheezy) ([@tmatilai], [#24])
|
194
253
|
- <!-- - The following link definition list is generated by PimpMyChangelog - -->
|
195
254
|
|
196
|
-
[#133]: https://github.com/
|
197
|
-
[#18]: https://github.com/
|
198
|
-
[#19]: https://github.com/
|
199
|
-
[#21]: https://github.com/
|
200
|
-
[#23]: https://github.com/
|
201
|
-
[#24]: https://github.com/
|
202
|
-
[#25]: https://github.com/
|
203
|
-
[#26]: https://github.com/
|
204
|
-
[#29]: https://github.com/
|
205
|
-
[#30]: https://github.com/
|
206
|
-
[#32]: https://github.com/
|
207
|
-
[#51]: https://github.com/
|
255
|
+
[#133]: https://github.com/chefspec/fauxhai/issues/133
|
256
|
+
[#18]: https://github.com/chefspec/fauxhai/issues/18
|
257
|
+
[#19]: https://github.com/chefspec/fauxhai/issues/19
|
258
|
+
[#21]: https://github.com/chefspec/fauxhai/issues/21
|
259
|
+
[#23]: https://github.com/chefspec/fauxhai/issues/23
|
260
|
+
[#24]: https://github.com/chefspec/fauxhai/issues/24
|
261
|
+
[#25]: https://github.com/chefspec/fauxhai/issues/25
|
262
|
+
[#26]: https://github.com/chefspec/fauxhai/issues/26
|
263
|
+
[#29]: https://github.com/chefspec/fauxhai/issues/29
|
264
|
+
[#30]: https://github.com/chefspec/fauxhai/issues/30
|
265
|
+
[#32]: https://github.com/chefspec/fauxhai/issues/32
|
266
|
+
[#51]: https://github.com/chefspec/fauxhai/issues/51
|
208
267
|
[@anujbiyani]: https://github.com/anujbiyani
|
209
268
|
[@benbytheway]: https://github.com/benbytheway
|
210
269
|
[@mapleoin]: https://github.com/mapleoin
|
data/CONTRIBUTING.md
CHANGED
@@ -1,47 +1,59 @@
|
|
1
|
-
Contributing to Fauxhai
|
2
|
-
|
3
|
-
Fauxhai is community-maintained and updated. Aside from the initial files, all of the ohai system mocks have been created by the community. If you have a system that you think would benefit the community, here's how you get it into [fauxhai](https://github.com/
|
1
|
+
# Contributing to Fauxhai
|
2
|
+
|
3
|
+
Fauxhai is community-maintained and updated. Aside from the initial files, all of the ohai system mocks have been created by the community. If you have a system that you think would benefit the community, here's how you get it into [fauxhai](https://github.com/chefspec/fauxhai):
|
4
4
|
|
5
5
|
1. Build a system to your liking (on a virtual machine, for example)
|
6
6
|
2. Install chef, ohai, and fauxhai
|
7
7
|
3. Run the following at the command line:
|
8
8
|
|
9
|
-
|
9
|
+
Unix:
|
10
10
|
|
11
|
-
|
11
|
+
```
|
12
|
+
sudo fauxhai > /tmp/fauxhai.json
|
13
|
+
```
|
12
14
|
|
13
|
-
|
15
|
+
Windows (in Administrator mode):
|
14
16
|
|
15
|
-
|
17
|
+
```
|
18
|
+
fauxhai > C:\SomePath\fauxhai.json
|
19
|
+
```
|
16
20
|
|
17
21
|
4. This will create a file `fauxhai.json` at the specified path. As with any tool, inspect the contents of the file before continuing
|
22
|
+
|
18
23
|
5. Copy the contents of this file to your local development machine (using scp or sftp, for example)
|
19
24
|
6. Fork, clone and `bundle`:
|
20
25
|
|
21
|
-
|
22
|
-
|
23
|
-
|
26
|
+
```
|
27
|
+
git clone https://github.com/<your username>/fauxhai.git
|
28
|
+
cd fauxhai
|
29
|
+
bundle
|
30
|
+
```
|
24
31
|
|
25
32
|
7. Create a new branch named `add_[platform]_[version]` (e.g. `add_ubuntu_12_04`) without dashes and dots replaced with underscores. Be sure to use the official version number, not a package name (e.g. '12_04', not 'precise') if available:
|
26
33
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
34
|
+
```
|
35
|
+
Ubuntu Precise, 12.04 add_ubuntu_12_04
|
36
|
+
Ubuntu Lucid, 10.04 add_ubuntu_10_04
|
37
|
+
OSX Lion, 10.7.4 add_osx_10_7_4
|
38
|
+
Windows XP add_windows_xp
|
39
|
+
```
|
31
40
|
|
32
|
-
|
41
|
+
**Q:** Is there a reason for this super-specific naming convention?
|
33
42
|
|
34
|
-
|
43
|
+
**A:** No, but it helps in tracking problems and analyzing pull requests. Ultimately it just ensures your pull request is merged as quickly as possible
|
35
44
|
|
36
45
|
8. Create a new json file in `lib/fauxhai/platforms/[os]/[version].json` (e.g. `lib/fauxhai/platforms/ubuntu/12.04.json`)
|
46
|
+
|
37
47
|
9. Copy-paste the contents of the file from `Step 4` into this file and save
|
38
48
|
10. Verify the installation was successful by doing the following:
|
39
49
|
|
40
|
-
|
41
|
-
|
50
|
+
```
|
51
|
+
bundle console
|
52
|
+
Fauxhai.mock(platform: '[os]', version: '[version]') # e.g. Fauxhai.mock(platform: 'ubuntu', version: '12.04')
|
53
|
+
```
|
42
54
|
|
43
|
-
|
55
|
+
As long as that does not throw an error, you're good to go!
|
44
56
|
|
45
57
|
11. Submit a pull request on github
|
46
58
|
|
47
|
-
**Note:** I do
|
59
|
+
**Note:** I do _not_ need to release a new version of Fauxhai for your changes to be pulled and used. Unless you are updating an existing platform, Fauxhai will automatically pull new versions from GitHub via HTTP and cache them.
|
data/PLATFORMS.md
CHANGED
@@ -17,38 +17,19 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
17
17
|
- 2015.09
|
18
18
|
- 2016.03
|
19
19
|
- 2016.09
|
20
|
+
- 2017.03
|
20
21
|
|
21
22
|
### arch
|
22
23
|
|
23
|
-
- 4.
|
24
|
-
- 4.9.11-1-ARCH
|
24
|
+
- 4.10.13-1-ARCH
|
25
25
|
|
26
26
|
### centos
|
27
27
|
|
28
|
-
- 5.0
|
29
|
-
- 5.1
|
30
28
|
- 5.10
|
31
29
|
- 5.11
|
32
|
-
- 5.2
|
33
|
-
- 5.3
|
34
|
-
- 5.4
|
35
|
-
- 5.5
|
36
|
-
- 5.6
|
37
|
-
- 5.7
|
38
|
-
- 5.8
|
39
|
-
- 5.9
|
40
|
-
- 6.0
|
41
|
-
- 6.1
|
42
|
-
- 6.2
|
43
|
-
- 6.3
|
44
|
-
- 6.4
|
45
|
-
- 6.5
|
46
|
-
- 6.6
|
47
30
|
- 6.7
|
48
31
|
- 6.8
|
49
|
-
-
|
50
|
-
- 7.0
|
51
|
-
- 7.1.1503
|
32
|
+
- 6.9
|
52
33
|
- 7.2.1511
|
53
34
|
- 7.3.1611
|
54
35
|
|
@@ -56,26 +37,16 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
56
37
|
|
57
38
|
- 0.6.1
|
58
39
|
|
59
|
-
###
|
40
|
+
### clearos
|
60
41
|
|
61
42
|
- 7.0
|
62
|
-
|
43
|
+
|
44
|
+
### debian
|
45
|
+
|
63
46
|
- 7.10
|
64
47
|
- 7.11
|
65
|
-
- 7.2
|
66
|
-
- 7.4
|
67
|
-
- 7.5
|
68
|
-
- 7.6
|
69
|
-
- 7.7
|
70
|
-
- 7.8
|
71
|
-
- 7.9
|
72
|
-
- 8.0
|
73
|
-
- 8.1
|
74
|
-
- 8.2
|
75
|
-
- 8.4
|
76
|
-
- 8.5
|
77
|
-
- 8.6
|
78
48
|
- 8.7
|
49
|
+
- 8.8
|
79
50
|
|
80
51
|
### dragonfly4
|
81
52
|
|
@@ -83,19 +54,13 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
83
54
|
|
84
55
|
### fedora
|
85
56
|
|
86
|
-
- 21
|
87
|
-
- 22
|
88
|
-
- 23
|
89
57
|
- 24
|
90
58
|
- 25
|
91
59
|
|
92
60
|
### freebsd
|
93
61
|
|
94
|
-
- 10.1
|
95
|
-
- 10.2
|
96
62
|
- 10.3
|
97
63
|
- 11.0
|
98
|
-
- 9.3
|
99
64
|
|
100
65
|
### gentoo
|
101
66
|
|
@@ -105,12 +70,15 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
105
70
|
|
106
71
|
- 6.0.0.14I
|
107
72
|
|
73
|
+
### linuxmint
|
74
|
+
|
75
|
+
- 18.1
|
76
|
+
|
108
77
|
### mac_os_x
|
109
78
|
|
110
79
|
- 10.10
|
111
|
-
- 10.11
|
80
|
+
- 10.11
|
112
81
|
- 10.12
|
113
|
-
- 10.9.2
|
114
82
|
|
115
83
|
### nexus
|
116
84
|
|
@@ -118,7 +86,6 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
118
86
|
|
119
87
|
### omnios
|
120
88
|
|
121
|
-
- 151014
|
122
89
|
- 151018
|
123
90
|
|
124
91
|
### openbsd
|
@@ -127,8 +94,6 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
127
94
|
|
128
95
|
### opensuse
|
129
96
|
|
130
|
-
- 12.3
|
131
|
-
- 13.1
|
132
97
|
- 13.2
|
133
98
|
- 42.1
|
134
99
|
- 42.2
|
@@ -136,12 +101,7 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
136
101
|
### oracle
|
137
102
|
|
138
103
|
- 5.10
|
139
|
-
- 5.8
|
140
|
-
- 6.5
|
141
|
-
- 6.6
|
142
104
|
- 6.8
|
143
|
-
- 7.0
|
144
|
-
- 7.1
|
145
105
|
- 7.2
|
146
106
|
|
147
107
|
### raspbian
|
@@ -151,21 +111,9 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
151
111
|
### redhat
|
152
112
|
|
153
113
|
- 5.10
|
154
|
-
- 5.6
|
155
|
-
- 5.7
|
156
|
-
- 5.8
|
157
114
|
- 5.9
|
158
|
-
- 6.0
|
159
|
-
- 6.1
|
160
|
-
- 6.2
|
161
|
-
- 6.3
|
162
|
-
- 6.4
|
163
|
-
- 6.5
|
164
|
-
- 6.6
|
165
115
|
- 6.7
|
166
116
|
- 6.8
|
167
|
-
- 7.0
|
168
|
-
- 7.1
|
169
117
|
- 7.2
|
170
118
|
- 7.3
|
171
119
|
|
@@ -176,7 +124,6 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
176
124
|
### smartos
|
177
125
|
|
178
126
|
- 5.11
|
179
|
-
- joyent_20130111T180733Z
|
180
127
|
|
181
128
|
### solaris2
|
182
129
|
|
@@ -185,27 +132,20 @@ This file lists each platform known to Fauxhai and the available versions for ea
|
|
185
132
|
|
186
133
|
### suse
|
187
134
|
|
188
|
-
- 11.3
|
189
135
|
- 11.4
|
190
|
-
- 12.0
|
191
136
|
- 12.1
|
192
137
|
- 12.2
|
193
138
|
|
194
139
|
### ubuntu
|
195
140
|
|
196
|
-
- 12.04
|
197
141
|
- 14.04
|
198
|
-
- 15.04
|
199
|
-
- 15.10
|
200
142
|
- 16.04
|
201
143
|
|
202
144
|
### windows
|
203
145
|
|
204
146
|
- 10
|
205
|
-
- 2003R2
|
206
147
|
- 2008R2
|
207
148
|
- 2012
|
208
149
|
- 2012R2
|
209
150
|
- 7
|
210
151
|
- 8.1
|
211
|
-
- 8
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Fauxhai
|
2
2
|
|
3
|
-
[![Build Status Master](https://travis-ci.org/
|
3
|
+
[![Build Status Master](https://travis-ci.org/chefspec/fauxhai.svg?branch=master)](https://travis-ci.org/chefspec/fauxhai) [![Gem Version](https://badge.fury.io/rb/fauxhai.svg)](https://badge.fury.io/rb/fauxhai)
|
4
4
|
|
5
5
|
Fauxhai is a gem for mocking out [ohai](https://github.com/chef/ohai) data in your chef testing. Fauxhai is community supported, so we need **your help** to populate our dataset. Here's an example for testing my "awesome_cookbook" on Ubuntu 16.04:
|
6
6
|
|
@@ -49,7 +49,7 @@ Fauxhai ships with a command line tool - `fauxhai`. This is **not** the same as
|
|
49
49
|
|
50
50
|
## Platform and Versions
|
51
51
|
|
52
|
-
For a complete list of platforms and versions available for mocking via Fauxhai see [PLATFORMS.MD](https://github.com/
|
52
|
+
For a complete list of platforms and versions available for mocking via Fauxhai see [PLATFORMS.MD](https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md) in this repository.
|
53
53
|
|
54
54
|
## Usage
|
55
55
|
|
@@ -176,7 +176,7 @@ It's a common use case to test multiple version of the same operating system. He
|
|
176
176
|
require 'chefspec'
|
177
177
|
|
178
178
|
describe 'awesome_cookbook::default' do
|
179
|
-
['
|
179
|
+
['14.04', '16.04'].each do |version|
|
180
180
|
context "on Ubuntu #{version}" do
|
181
181
|
before do
|
182
182
|
Fauxhai.mock(platform: 'ubuntu', version: version)
|
@@ -193,4 +193,4 @@ end
|
|
193
193
|
|
194
194
|
## Contributing
|
195
195
|
|
196
|
-
See [CONTRIBUTING.md](https://github.com/
|
196
|
+
See [CONTRIBUTING.md](https://github.com/chefspec/fauxhai/blob/master/CONTRIBUTING.md).
|
data/Rakefile
CHANGED
@@ -30,7 +30,11 @@ namespace :documentation do
|
|
30
30
|
Dir.glob('./lib/fauxhai/platforms/**') do |platform_path|
|
31
31
|
f.write "\n### #{platform_path.split('/')[-1]}\n\n"
|
32
32
|
Dir.glob(File.join(platform_path, '**.json')).each do |version_path|
|
33
|
-
|
33
|
+
# skip anything marked as deprecated
|
34
|
+
data = JSON.parse(File.read(version_path))
|
35
|
+
unless data['deprecated']
|
36
|
+
f.write " - #{version_path.split('/')[-1].chomp('.json')}\n"
|
37
|
+
end
|
34
38
|
end
|
35
39
|
end
|
36
40
|
f.close
|
data/fauxhai.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ['sethvargo@gmail.com']
|
10
10
|
spec.description = 'Easily mock out ohai data'
|
11
11
|
spec.summary = 'Fauxhai provides an easy way to mock out your ohai data for testing with chefspec!'
|
12
|
-
spec.homepage = 'https://github.com/
|
12
|
+
spec.homepage = 'https://github.com/chefspec/fauxhai'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.required_ruby_version = '>= 2.2.2'
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency 'net-ssh'
|
23
23
|
|
24
|
-
spec.add_development_dependency 'chef', '
|
25
|
-
spec.add_development_dependency 'ohai', '
|
24
|
+
spec.add_development_dependency 'chef', '>= 12.0'
|
25
|
+
spec.add_development_dependency 'ohai', '>= 8.5'
|
26
26
|
spec.add_development_dependency 'rake'
|
27
27
|
end
|