-
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
Support azure migrate assessments #424
Conversation
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
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.
azureStorageRedundancy has other 4 types : GeoRedundant, ReadAccessGeoRedundant, Unknown, ZoneRedundant.
Shouldn't we provide this value as default value in variable.tf and other values like scalingFactor as well?
sorry I didn't understand, this PR is about Azure Migrate Assessments and not about Azure Storage Redundancy .. |
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.
There are minor comments please check.
|
||
| Name | Description | | ||
|----------------|----------------------------------------------------------------------------------| | ||
| name | Name of the Azure Migrate Assessments to test. | |
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.
Name is twice .Please check once .
opts[:resource_path] = [opts[:project_name], 'groups', opts[:group_name], 'assessments'].join('/') | ||
super(opts, true) | ||
end | ||
end |
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.
to_s implementation is missing .
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.
done
@table << resource.merge(resource[:properties]) | ||
end | ||
end | ||
end |
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.
to_s implementation is missing .
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.
done
…azure-migrate-assessments
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
…ure-migrate-assessments Signed-off-by: Sathish <sbabu@progress.com>
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.
LGTM
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.
Feedback for @dkumaras
|
||
## Syntax | ||
|
||
`name` is a required parameter, and `resource_group` is an optional parameter. |
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.
Line 52 shows four required parameters, not two.
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.
this is done
`name` is a required parameter, and `resource_group` is an optional parameter. | ||
|
||
```ruby | ||
describe azure_migrate_assessment(resource_group: 'MIGRATED_VMS', project_name: 'ZONEA_MIGRATE_ASSESSMENT_PROJECT', group_name: 'ZONEA_MACHINES_GROUP', NAME: 'ZONEA_MACHINES_MIGRATE_ASSESSMENT') do |
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.
The placeholder values for the parameters should be more generic. So MIGRATED_VMS
can just be RESOURCE_GROUP
, ZONEA_MIGRATE_ASSESSMENT_PROJECT
can just be PROJECT_NAME
, ZONEA_MACHINES_GROUP
can just be GROUP_NAME
, and ZONEA_MACHINES_MIGRATE_ASSESSMENT
should be MIGRATE_ASSESSMENT_NAME
.
The same goes for the other code examples.
|
||
# azure_migrate_assessment | ||
|
||
Use the `azure_migrate_assessment` InSpec audit resource to test the properties related to Azure Migrate Assessments. |
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.
Assessment is a generic term so it should be lowercase. The same goes for all the other uses of "assessment". It's also singular "assessment" in this resource, but plural in the other resource.
|
||
The parameter set should be provided for a valid query: | ||
|
||
- `resource_group` and `project_name` and `group_name` and `name` |
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.
The and
s can be replaced with commas.
@@ -31,7 +31,7 @@ where | |||
|
|||
The following parameters can be passed for targeting a specific Azure resource. | |||
|
|||
| Name | Description | | |||
| Name |Description | |
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 need this change.
Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
Signed-off-by: Sathish <sbabu@progress.com>
…ure-migrate-assessments
@dkumaras , Could you please amend your signature to your commits that is causing the DCO to fail? |
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
…e.md Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
…/inspec-azure into support-azure-migrate-assessments
…ure-migrate-assessments
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
Support singular and plural resource for Azure Migrate Assessment(s)
Also fixed #425 as part of this
Issues Resolved
#425
Check List
rake lint
passes