Граф коммитов

415 Коммитов

Автор SHA1 Сообщение Дата
Rich Halliday 9621aaf470 Removed ScreenSaver class entirely. 2018-05-17 12:42:19 -07:00
Rich Halliday 79c7d429fb Continued refactoring the ScreenSaver class. disabled? now returns a value based on a decision rather than always returning false. 2018-05-10 14:15:01 -07:00
Rich Halliday f5ed63c09e First crack at refactoring the ScreenSaver class to user static methods. 2018-05-03 12:48:33 -07:00
Jacob Zaval 16e8270bc5
Release/1.14 (#106)
* bump version

* remove spec tests for plist

* consolidate tests and contexts for formfactor

* Don't require stubbing `machine_model` when wrapping `keep_awake` (#105)

* handle node['hardware'] being nil during ChefSpec testing

* remove documentation about stubbing machine_model since it's not needed

* update tests to pass node attribute

* fix case bugs with model identifer matchers

* fix case bugs in recipe spec

* update context and behavior language

* add a Code of Conduct
2018-05-01 10:45:45 -07:00
Eric Hanko f5d46b602d Hotfix/1.13.1 (#103) 2018-04-25 13:39:58 -07:00
Jacob Zaval 465c29d5f7
Release/1.13 (#102)
* bump version

* New Keep Awake Tests (#99)

* Add test case for portable bare metal

* rename systemsetup to system

* Fix spec_helper to use system

* cookstyle changes

* Add CONTRIBUTING.md and reference Contributing to Chef Managed Community Cookbooks (#97)

* Add keychain guards (#100)

* update keep_awake documentation regarding spec testing (#101)

* refactor location of shared_examples

* don't stub git

* don't test library specific methods in recipe testing

* remove nil and any references to node attributes in system library

* add tests for when node attributes are nil

* make variable names more descriptive
2018-04-25 10:32:20 -07:00
Eric Hanko cb551382c9 Release/1.12 (#95)
* split up keychain resource into its own suite

* Modify security library for new keychain resource
Create new keychain resource

* test recipe for keychain resource

* preliminary documentation for keychain resource

* Add smoke and inspec tests

* cookstyle -a fix

* Add basic integration tests

- macOS 10.11.6 stores the keychain differently than 10.12 or 10.13.

* Get test to pass with correct way of checking for OS version

* test code for the new keychain resource

* simplify down to basic keychain support for now

* Update readmes

* edit documentation on the keychain resource

* Fix up integration and tests and recipes

* Remove default and login keychain capabilities for future use

* Remove unneeded routines

* Fix for Issue 85

When query_type is 'read', modify our regex to do an exact match
on expected_value. Proceed as it was, when not.

* Refactor: Introduce two new classes Power and ScreenSaver

* Deal with some consequences of the systemsetup refactor for Rspec tests

* Refactor of systemsetup library

- Put machine_model and virtualization_systems in initialize method
- Remove power_button_model and replace with desktop? and portable?

desktop?: Verfiies that the machine_model is either a MacMini, MacPro
or iMac

portable?: Verifies that machine_model is a Macbook

* replace guard of power_button_model to desktop?

* Fix failing spec tests

* Cleanup commented out code and make sure virtualization_systems uses class variables

* Introduce new Environment class

* Check for Chef.node.nil instead of the attribute for FormFactor
Change desktop? to use machine_model instead of Chef.node['hardware']['machine_model']

* spec test testing FormFactor and ScreenSaver classes

* fix check for Chef.node.nil?

* Fix up ScreenSaver class to initialize the user on object creation. This makes cleaner rspec tests for the query routine

* add more ScreenSaver class unit tests

* remove unused spec tests

* Add spec tests for Environment class in systemsetup library

* add readme for macos_user resource

* Add missing macos_user documentation
Update README.md to point to new macos_user documentation

* Fix typo

* Change Macos to macOS

* Skip disk sleep integration tests, update README

- We are skipping the disk sleep tests temporarily since there have been
intermittent failures with that setting in particular. We think it may
be a race condition or potentially a bug with `kitchen test`
- Update the README to include the parallel CI badge -- the current
build definition tests the entire kitchen test matrix in parallel
- Update the README with the correct Xcode recipe attributes

* add multiple converge to power management suite

* don't skip the disk sleep tests

* - Use .empty? checks
- Change property_is_set? to new_resource.property_is_set.

* make disk sleep Never the default

* update pmset smoke

* Show nightly master build badge
2018-04-16 12:08:24 -07:00
Jacob Zaval e743b2b557
Merge pull request #87 from Microsoft/release/1.11
Release/1.11
2018-04-11 10:08:39 -07:00
Jacob Zaval 6947f9aedb
Merge pull request #88 from Microsoft/feature/chef_13
Add suites for Chef 13 into Kitchen
2018-04-11 10:08:14 -07:00
Jacob Zaval d5cff29f66 update high sierra box 2018-04-10 20:29:57 -07:00
Jacob Zaval ba3caa1851 run beta suite on other platforms, but don't actually do anything 2018-04-10 14:22:09 -07:00
Jacob Zaval 6cce310449 update platforms to handle chef client versions 2018-04-10 14:06:19 -07:00
Jacob Zaval f7c4e9154b kitchen typo 2018-04-10 13:42:35 -07:00
Jacob Zaval 9d42049621 kitchen fiddlin 2018-04-10 13:28:50 -07:00
Jacob Zaval 26dc259fe2 explicity state 14 instead of latest 2018-04-10 13:16:01 -07:00
Jacob Zaval d0655f0cce add suites for compatibility with chef 13 2018-04-10 13:07:51 -07:00
Jacob Zaval 03a186f760
Merge pull request #86 from Microsoft/feature/chef-14
Ensure compatibility with Chef 14
2018-04-05 16:08:51 -07:00
Jacob Zaval 77857ff50f don't attempt to call `property_is_set?` from provider 2018-04-05 15:13:02 -07:00
Jacob Zaval ba80120ba8 fix copy/paste bug 2018-04-05 13:33:52 -07:00
Jacob Zaval 2d813ec26d move the pins 2018-04-05 13:28:50 -07:00
Jacob Zaval b415e943ef match default xcode recipe 2018-04-04 14:55:18 -07:00
Jacob Zaval f3e4db2342 bump 2018-04-04 14:50:32 -07:00
Jacob Zaval de439f965e
Merge pull request #84 from Microsoft/feature/xcode_beta
Support Xcode beta and GM installation
2018-04-04 14:49:30 -07:00
Jacob Zaval c2c6e15b7a remove duplicate 'iOS' 2018-04-04 14:32:45 -07:00
Jacob Zaval 0094f91bb4 apparently Xcode 8.0 doesn't have any available simulators anymore 2018-04-04 14:16:05 -07:00
Jacob Zaval 34d77e12af move pseudosemantic method into Version class, update available_versions 2018-04-04 13:43:57 -07:00
Jacob Zaval 8c6e05fa9d refactor credentials 2018-04-04 13:41:16 -07:00
Jacob Zaval 316688eeec create Version class to handle version comparisions, spec and implement 2018-04-04 12:08:41 -07:00
Jacob Zaval 2feca9dd8d update default xcode recipe to handle all three platforms 2018-04-03 16:53:37 -07:00
Jacob Zaval 35bc841b54 remove explicit default attribute for simulator installation 2018-04-03 16:37:52 -07:00
Jacob Zaval e407876464 add spec for included_with_xcode?, apple_pseudosemantic_version 2018-04-03 16:03:36 -07:00
Jacob Zaval ebd3b1b76a make included_with_xcode? more testable 2018-04-03 16:02:59 -07:00
Jacob Zaval 8b96d4f133 refactor apple_pseudosemantic_version into two methods 2018-04-03 15:25:55 -07:00
Jacob Zaval 6df6754a32 refactor available_versions and installed? 2018-04-03 15:16:07 -07:00
Jacob Zaval c11428a952 fix bug in included_with_xcode? 2018-04-03 15:15:47 -07:00
Jacob Zaval 2afb2be8d1 hotfix to stay on Chef 13 2018-04-03 15:15:06 -07:00
Jacob Zaval bf57dc4302 don't use arg for included_with_xcode 2018-04-03 13:25:16 -07:00
Jacob Zaval 3e42daf7c0 implement included_with_xcode? 2018-04-03 13:24:47 -07:00
Jacob Zaval 5693096969 transform included_major_version into boolean method included_with_xcode 2018-04-03 13:24:34 -07:00
Jacob Zaval dc3fc50317 use instance method for included_major_simulator 2018-04-03 13:18:29 -07:00
Jacob Zaval 81f88ea371 extra end 2018-04-03 12:27:05 -07:00
Jacob Zaval 57078b3dc8 make Simulator installation the same model as Xcode 2018-04-03 12:02:57 -07:00
Jacob Zaval b2fbc3b694 refactor Simulator implementation 2018-04-03 11:56:09 -07:00
Jacob Zaval f3af43dbed simplify control 2018-04-03 11:35:12 -07:00
Jacob Zaval 25f98c33ca update smoke 2018-04-03 11:30:02 -07:00
Jacob Zaval 71988409d5 update test cookbook since 9.3 can't install on Sierra 2018-04-03 11:26:39 -07:00
Jacob Zaval 544c1dd142 update docs 2018-04-03 10:48:27 -07:00
Jacob Zaval 692dd5e0ce remove simulator n-1 test from default recipe 2018-04-03 09:41:42 -07:00
Jacob Zaval 02ae30a858 use semantic version when checking installed? 2018-04-02 16:13:12 -07:00
Jacob Zaval 210d2af4c7 restore installed? method 2018-04-02 16:01:49 -07:00