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 Docs cleanup - For Clinton's Review #663

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dkumaras
Copy link
Contributor

Signed-off-by: Deepa Kumaraswamy dkumaras@progress.com

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

Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
@dkumaras dkumaras requested a review from a team as a code owner June 29, 2022 14:11
@netlify
Copy link

netlify bot commented Jun 29, 2022

Deploy Preview for inspec-azure ready!

Name Link
🔨 Latest commit 5a4c0f2
🔍 Latest deploy log https://app.netlify.com/sites/inspec-azure/deploys/62bc5d7c31a7610008deb914
😎 Deploy Preview https://deploy-preview-663--inspec-azure.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -142,9 +142,9 @@ end

{{% inspec_matchers_link %}}

### exists
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

end
```

## Matchers

{{% inspec_matchers_link %}}

### exists
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists


# DDoS protection plan resources that aren't found will not exist
### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Not Exists

@@ -103,7 +101,7 @@ end

{{% inspec_matchers_link %}}

### exists
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

it { should exist }
end
```

### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Not Exists

For more examples, please see the [integration tests](/test/integration/verify/controls/azure_generic_resource.rb).

## Matchers

{{% inspec_matchers_link %}}

### exist
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

it { should_not exist }
end
```

### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Not Exists

@@ -217,24 +219,26 @@ For more examples, please see the [integration tests](/test/integration/verify/c

{{% inspec_matchers_link %}}

### exist
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

it { should_not exist }
end
```

### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

it { should exist }
end
```

### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Not Exists

it { should exist }
end
```

### Not Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Not Exists

@@ -97,7 +97,7 @@ end

{{% inspec_matchers_link %}}

### exists
### Exists
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Exists
### exists

Copy link
Contributor

@soumyo13 soumyo13 left a 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.

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.

None yet

2 participants