-
Notifications
You must be signed in to change notification settings - Fork 80
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 Docs cleanup - For Clinton's Review #663
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Deepa Kumaraswamy <[email protected]>
✅ Deploy Preview for inspec-azure ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -142,9 +142,9 @@ end | |||
|
|||
{{% inspec_matchers_link %}} | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
end | ||
``` | ||
|
||
## Matchers | ||
|
||
{{% inspec_matchers_link %}} | ||
|
||
### exists | ||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
@@ -85,16 +90,20 @@ end | |||
|
|||
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [Universal Matchers page](https://docs.chef.io/inspec/matchers/). | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
@@ -86,15 +86,19 @@ end | |||
|
|||
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [Universal Matchers page](https://docs.chef.io/inspec/matchers/). | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
|
||
```ruby | ||
# If a dataset should exist | ||
|
||
describe azure_data_factory_dataset(resource_group: 'RESOURCE_GROUP', factory_name: 'FACTORY_NAME', dataset_name: 'DATASET_NAME') do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
@@ -93,16 +90,20 @@ end | |||
|
|||
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [Universal Matchers page](/inspec/matchers/). | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
|
||
# DDoS protection plan resources that aren't found will not exist | ||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
@@ -103,7 +101,7 @@ end | |||
|
|||
{{% inspec_matchers_link %}} | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
@@ -82,18 +85,22 @@ end | |||
|
|||
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [Universal Matchers page](https://docs.chef.io/inspec/matchers/). | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
it { should exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
For more examples, please see the [integration tests](/test/integration/verify/controls/azure_generic_resource.rb). | ||
|
||
## Matchers | ||
|
||
{{% inspec_matchers_link %}} | ||
|
||
### exist | ||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
it { should_not exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
@@ -217,24 +219,26 @@ For more examples, please see the [integration tests](/test/integration/verify/c | |||
|
|||
{{% inspec_matchers_link %}} | |||
|
|||
### exist | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
it { should_not exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
@@ -88,18 +91,22 @@ end | |||
|
|||
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [Universal Matchers page](https://docs.chef.io/inspec/matchers/). | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
it { should exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
it { should exist } | ||
end | ||
``` | ||
|
||
### Not Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Not Exists |
@@ -97,7 +97,7 @@ end | |||
|
|||
{{% inspec_matchers_link %}} | |||
|
|||
### exists | |||
### Exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Exists | |
### exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use Not Exist. We are using exist.
Signed-off-by: Deepa Kumaraswamy [email protected]
Description
Around 10-12 InSpec Azure resource files are reviewed for language, Chef House style, formattings, headings, etc. These are shared with Clinton for his input and direction before massive cleanup work for entire Azure, AWS, and InSpec resources commences.
Issues Resolved
List any existing issues this PR resolves, or any Discourse or StackOverflow discussion that's relevant
Check List
rake lint
passes