Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource creation guide, edited #139

Merged
merged 4 commits into from
Oct 4, 2018

Conversation

TrevorBramble
Copy link
Contributor

Description

Replaces #129. Same great nutritional value, bold new flavor.

mmclane and others added 3 commits September 5, 2018 09:33
Signed-off-by: mmclane <m.mclane@criteo.com>
Signed-off-by: Trevor Bramble <tbramble@chef.io>
@TrevorBramble TrevorBramble added do not merge WIP Work in Progress labels Sep 15, 2018
@TrevorBramble TrevorBramble requested a review from a user September 15, 2018 00:30
Copy link
Contributor

@dmccown dmccown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a typo and I have a recommendation for updating the reference code. Otherwise looking good!

The singular resource (`azurerm_subnet`) is used to test a specific resource of that type and should include all of the properties available. A plural resource (`azurerm_subnets`) is used to test the collection of resources of that type. This allows for tests to be written based on the group of resources.

## Update libraries/support/azure/management.rb
The files in `libraries/support/azure` define how things are downloaded by the API. A definition needs to be added for the types of resources your going to be testing for (i.e. virtual machine, virtual networks, subnets, etc). This definition will need to include the location of the resource in the API. This is essentially the type of object. The [Azure Resource Explorer](https://resources.azure.com) can be used to determine the location by browsing for an object and referencing the object type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/resources your going/resources you're going/

```
def initialize(resource_group: nil, name: nil)
resp = client.subnet(resource_group, name)
return if resp.nil? || resp.key?('error')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should also be added to the style guide.

Signed-off-by: Trevor Bramble <tbramble@chef.io>
@TrevorBramble TrevorBramble removed WIP Work in Progress do not merge labels Oct 3, 2018
@TrevorBramble TrevorBramble requested a review from dmccown October 3, 2018 18:57
@TrevorBramble TrevorBramble changed the title [WIP] Resource creation guide, edited Resource creation guide, edited Oct 4, 2018
@TrevorBramble TrevorBramble merged commit 79bcef3 into master Oct 4, 2018
@TrevorBramble TrevorBramble deleted the resource-creation-guide-edited branch October 4, 2018 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants