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

Re-write 11 static resources with the new backend #287

Merged
merged 7 commits into from
Sep 4, 2020
Merged

Re-write 11 static resources with the new backend #287

merged 7 commits into from
Sep 4, 2020

Conversation

omerdemirok
Copy link
Contributor

Signed-off-by: Omer Demirok odemirok@chef.io

Description

README

  • Update with the new resources

OLD DOCS

  • Add depreciation message

NEW DOCS

  • Add docs for the new resources
  • Fix some typos in the previously created ones

BACKEND

  • Revert this commit, and move the code into the AzurermAdUsers class.

Issues Resolved

N/A

Check List

Signed-off-by: Omer Demirok <odemirok@chef.io>
@omerdemirok omerdemirok added the Version: Bump Minor Used by github.minor_bump_labels to bump the Minor version number. label Sep 2, 2020
@omerdemirok omerdemirok requested a review from a team as a code owner September 2, 2020 14:09
Omer Demirok added 2 commits September 3, 2020 10:58
…esponse is empty

Signed-off-by: Omer Demirok <odemirok@chef.io>
Signed-off-by: Omer Demirok <odemirok@chef.io>

## Syntax

The `resource_group` and `name` must be given as a parameter.
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't strictly true based on the Parameters explanation. They could also just provide the resource_id right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would this explain this?

The `resource_group` and `name` or the `resource_id` must be given as a parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.


## Syntax

The `resource_group`, `resource_name`, `event_hub_endpoint` and `name` must be given as a parameter.
Copy link
Contributor

@rmoles rmoles Sep 4, 2020

Choose a reason for hiding this comment

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

Same as the previous comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.


## Syntax

The `resource_group` and `name` must be given as a parameter.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.


## Syntax

The `resource_group`, `server_name` and `name` must be given as a parameter.
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

name 'azure_storage_account_blob_container'
desc 'Verifies settings for a Azure Storage Account Blob Container'
example <<-EXAMPLE
describe azure_storage_account_blob_container(resource_group: 'rg',
Copy link
Contributor

@rmoles rmoles Sep 4, 2020

Choose a reason for hiding this comment

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

(optional) Might be nice to make this a single line

Omer Demirok added 2 commits September 4, 2020 15:21
Signed-off-by: Omer Demirok <odemirok@chef.io>
Signed-off-by: Omer Demirok <odemirok@chef.io>
README.md Outdated
@@ -352,7 +352,7 @@ See [azure_virtual_machine](libraries/azure_virtual_machine.rb) for a standard s
- If the properties of the resource are to be manipulated before populating the FilterTable, a `populate_table` method has to be defined. See [azure_virtual_machines](libraries/azure_virtual_machines.rb).
- If the resources exist in another resource, such as subnets of a virtual network, a `resource_path` has to be created.
For that, the identifiers of the parent resource, `resource_group` and virtual network name `vnet`, must be required from the users.
See [azure_subnets](libraries/azure_subnets.rb).
See [azure_subnet](libraries/azure_subnets.rb).
Copy link
Contributor

Choose a reason for hiding this comment

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

this looked correct before 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -26,7 +26,7 @@ For an example `inspec.yml` file and how to set up your Azure credentials, refer

## Syntax

The `resource_group` and `name` must be given as a parameter.
The `resource_group` and `name` or the `resource_id` must be given as a parameter.
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick, The is present here but not in most others

@@ -26,7 +26,7 @@ For an example `inspec.yml` file and how to set up your Azure credentials, refer

## Syntax

The `resource_group`, `resource_name`, `event_hub_endpoint` and `name` must be given as a parameter.
The `resource_group`, `resource_name`, `event_hub_endpoint` and `name` or the `resource_id` must be given as a parameter.
Copy link
Contributor

Choose a reason for hiding this comment

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

same as the previous comment

Omer Demirok added 2 commits September 4, 2020 17:08
Signed-off-by: Omer Demirok <odemirok@chef.io>
Signed-off-by: Omer Demirok <odemirok@chef.io>
Copy link
Contributor

@rmoles rmoles left a comment

Choose a reason for hiding this comment

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

Excellent. Thanks @omerdemirok . LGTM

@rmoles rmoles merged commit 8399f7e into inspec:master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Version: Bump Minor Used by github.minor_bump_labels to bump the Minor version number.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants