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

7 Коммитов

Автор SHA1 Сообщение Дата
Jacob Zaval b639c59a5f updating TESTING 2022-04-07 15:39:31 -07:00
Mark John Merin 8eb39913aa remove references to deprecated logic and update old URLs and Chef tool names 2022-03-16 12:13:40 -07:00
Jacob Zaval 51012afc7d
Release/3.0 (#193)
* update syntax in ard_test.rb, added mojave test suites, removed test suites for el capitan

* Add deprecation notice for the machine_name resource (#146)

* bump version to 3.0 for release branch

* Drop chef13 support in .kitchen.yml

* Remove machine_name resource in favor of hostname resource in Chef14 (#145)

* update syntax in ard_test.rb, added mojave test suites, removed test suites for el capitan

* update inspec tests

* remove live_stream option

* Remove machine name custom resource and related tests

* Add deprecation notice for the machine_name resource (#146)

* Add spotlight spec test

* Add back el-cap chef14 platform in .kitchen.yml

* Release 3.0 will not support Chef 13 if this change is implemented

* Remove El Capitan support


Linting

- Remove machine_name resource in favor of hostname resource in Chef14 (#145)
* update syntax in ard_test.rb, added mojave test suites, removed test suites for el capitan
* update inspec tests
* remove live_stream option
* Remove machine name custom resource and related tests
* Add deprecation notice for the machine_name resource (#146)
* Add spotlight spec test
* Add back el-cap chef14 platform in .kitchen.yml
* Release 3.0 will not support Chef 13 if this change is implemented
- Remove El Capitan support
- Remove useless assignment in security_test
- Enable password hash unit test
- Markdown linting
- Fix headers
- Remove dollar signs from code blocks that do not include output
- Update 10.13.3 to 10.13.6

* Bump supported Chef version in metadata.rb to 14

* Remove machine_name resource documentation

* Add Azure Pipelines YAML (#185)

* Remove duplicate .gitignore from test cookbook

* Add azure-pipelines YAML with Chef unit/lint job

* Add suites and update kitchen.yml name

* Add pipelines YAML to chefignore

* Add parameter input for kitchenFile

* Remove branch ref for templates repository

* Remove Xcode recipe, tests, and documentation (#187)

* Remove default recipe and fix ChefSpec test for disable_software_updates recipe (#186)

* Delete default recipe and related spec

* Fix failing ChefSpec test for disable_software_updates recipe

* remove default Xcode version attribute

* set test recipe Xcode version

* Remove disable_software_updates recipe, related tests, and documentation (#188)

* update mailmap

* create readme and resource for macos_automatic_software_updates

* remove vagrant.rb

* change name of resource to automatic_software_updates

* add new automatic_software_updates resource

* add spec test for automatic_software_updates

* change name of resource

* group under one action block

* update spec test to check for app_store

* update property names

* update property names in resource

* update property name in spec test

* update value entry to recieve user inputed property

* add block to test both true and false

* Add Action description to software_update.md

* spec tests with seperate it blocks, work in progress

* uploaded some working tests

* update resource to pass spec tests

* make path to software update plist a variable

* lint and beautify

* create app store plist variable

* add test cases for error handling

* add exception handling for spec test cases

* add error handling to resource to check against bad configs

* add disable_software_updates.rb

* update software_updates_test.rb to include all resource values

* make software-update test suite idempotent

* add more content to resource_software_update.md documentation

* update documentation name

* remove old file

* add example to documentation

* remove disable_software_update recipe

* Revert "remove disable_software_update recipe"

This reverts commit e034db13a8dd349ac2dbc2fe2ec1133da650bdca.

* cookstyle

* add integration test for macos_test disable software update recipe

* update integration test for software update with content

* update README.md

* Revert "update README.md"

This reverts commit f1c2f881b7.

* update README.md

* Update documentation/resource_automatic_software_updates.md

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update documentation/resource_automatic_software_updates.md

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* Update spec/unit/resources/automatic_software_updates_spec.rb

Co-Authored-By: v-anshie <v-anshie@microsoft.com>

* update spec test plist path entries with variable for cleaner code -Mark Merin

* remove duplicate test file with bad InSpec syntax

* fix indentation, update wording, and add inline image of the preferences

* update wording in documentation

* Replace ard resource with remote_management (#191)

* change class name from ARD to RemoteManagement

* update resource name in test

* update resource name

* update method names

* remote unused actions

* make RemoteManagement a class, static methods

* create remote_management resource to replace ard

* remove configuration action, create contexts to check idempotence

* update test recipe to be more explicit

* update spec to use shared examples and contexts

* add full privs mask to configured? guard

* remove old library spec

* update docs

* remove duplicate conditional checking

* refactor plist to plist_content

* refactor configured? to configured_for_all_users_and_privileges?

* remove parens

* update build yaml to include software-update test suite

* update test suite name in kitchen.yml

* update changelog with 3.0 changes

* fix run_list recipe to look in macos_test folder for recipe

* update run_list for software-updates test suite

* update azure-pipelines.yml test suites list (#192)

* update azure-pipelines.yml test suites list

* Fix test recipe name for software_updates suite

* Update InSpec output file name to match azure pipelines template

* Remove Chef version from platform name

* Remove chefVersion from the matrix strategy

* Revert chefVersion removal from matrix strategy

* Revert "Revert chefVersion removal from matrix strategy"

This reverts commit ac03f78bca.

* fix keychain creation guard preventing multi-converge from passing

* add exclude for url suite

* Revert "add exclude for url suite"

This reverts commit b5ea622077.

* add guard in azure-pipelines.yml for xcode version on sierra platform

* Revert "add guard in azure-pipelines.yml for xcode version on sierra platform"

This reverts commit 5a9460d7bc.

* don't exclude sierra from xcode testing

* add '9.2' version to sierra url install

* update build badge in README.md

* fix typo

* add fix for keychain to changelog

* add removal of machine_name to changelog

* fix caps

* move spotlight resource test to resource folder

* note spotlight test additions

* note removal of default attribute for xcode version

* remove dup lines

* add changelog updates

* add mock data back

* add more mock data back

* Update resource doc links

- Fix broken link for renamed resource
- Remove link to machine_name documentation
- Update formatting to match Chef's resource links

* update xcode doc with auth steps

* officially unofficial

* remove extra lines between properties to match other resources

* update CHANGELOG with correct El Capitan prefix

* install rb-readline gem for pry compatibility with unit test guard

https://github.com/pry/pry/issues/1577
2019-03-04 10:07:16 -08:00
Jacob Zaval 39445b7880
Release/2.2 (#115)
* bump version

* update hostname property to comply with FC115 (#112)

* Adding guard config and rake tasks for testing convenience (#113)

Here's the list of rake tasks:
```
rake test:all          # Run all tests in the following order: Lint => Critic => Unit => Integration
rake test:cleanup      # Cleanup various artificats like lockfiles and running kitchen instances
rake test:critic       # Run Chef's cookbook linter, foodcritic
rake test:deploy       # Apply the cookbook to the running kitchen instances
rake test:guard        # Start `guard` for continuous testing
rake test:integration  # Run the integration tests start to finish
rake test:lint         # Run Chef's code-style linter, cookstyle
rake test:lintfix      # Run Chef's linter and attempt to auto-correct offenses
rake test:provision    # Spin up the kitchen instances for integration testing
rake test:unit         # Run the unit tests
rake test:verify       # Run the integration tests against already running kitchen instances
```

The Guardfile config is configured to run any library, recipe, or custom resource file's corresponding unit test(s) under `spec/unit/` whenever a file change is detected. Just run `bundle install && rake test:guard` to install the guard gem and start watching for changes.

* update InSpec control filenames (#114)
2018-05-29 12:08:05 -05:00
Eric Hanko 68eb38ba42
Release/1.10 (#82)
* Split up user test to its own test suite

* add delay when user is created

* move the users smoke test into a user directory for test suite

* Remove commented out flush

Safer to use the half second sleep than a flush after every
creation since they both have had the same results.

* Adds cherry-picked changes from a local commit

- A few minor changes to test recipes
- Addition of full integration test suite using InSpec profile structure

* general refinement and polishing; delete old smokes

* Fix up some integration test bugs with hostname

* add insurance test for software updates

* fix integration test

* create CommandLineTools to parse SWU output

* create sentinel file to trigger CLT install, cleanup after install

* add available_command_line_tools to simplify initialization

* implement CommandLineTools.product, control sentinel file with chain

* use squiggly heredoc to make indentation match SWU command output

* use full list argument

* bump version

* increase timeout of install execution to 2 hours

* add find_apple_id method to check data bags and node attributes

* implement find_apple_id

* remove non-functioning method

* don't use rescue twice

* address comments in PR

* suite names get converted to hyphens anyway

* update Xcode documentation

* revert incorrect simulator tests

* Fix 10.11 build badge url; fix recipe usage syntax

* remove rubocop.yml from gitignore

* add rubocop yaml
2018-03-26 14:06:33 -07:00
Eric Hanko 6764ae1d8a
Address changes in PR
- Fix 'guys' typo
- Fix link to osx-vm-templates README
- Remove 'Testing via a Pull Request' section
- Add more files to chefignore (opportunistic)
- Fix bug where a period would be added to the end of the hostname if
the dns_domain property was not set
- Remove unnecessary service restarts and sleeping from machine_name
resource/NetBIOSName modifications
- Use defaults_executable method to remove duplication
2018-03-12 11:32:46 -07:00
Eric Hanko 1c57a77d85
first pass TESTING.md 2018-03-10 22:14:29 -08:00