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

Added API1600 support for HCP #421

Merged
merged 4 commits into from May 26, 2020
Merged

Added API1600 support for HCP #421

merged 4 commits into from May 26, 2020

Conversation

VenkateshRavula
Copy link
Collaborator

@VenkateshRavula VenkateshRavula commented May 21, 2020

Description

Added API1600 support for HCP

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass ($ rake test).
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
  • New endpoints supported are updated in the endpoints-support.md file.
  • Changes are documented in the CHANGELOG.

@@ -75,5 +79,7 @@
puts "\nCompliance preview details are :\n#{cp}\n"

# Deletes the created hypervisor cluster profile
hcp.delete
# Delete method accepts 2 optional arguments - soft_delete(boolean) and force(boolean)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please mention that soft_delete is mandatory in 1600

hcp.delete
# Delete method accepts 2 optional arguments - soft_delete(boolean) and force(boolean)
# The default values for both the arguments is "false"
hcp.delete(true, true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please try if hcp.delete(soft_delete = true, force = true) is working or not. If it is, change it accordingly.

# Hypervisor cluster profile resource implementation for API1600 C7000
class HypervisorClusterProfile < OneviewSDK::API1200::C7000::HypervisorClusterProfile

# Both softDelete and force are optional arguments but from API1600 softDelete is made mandatory argument
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please mention that "softDelete is mandatory in API1600"

include_context 'shared context'

it 'inherits from OneviewSDK::API1000::Synergy::HypervisorClusterProfile' do
expect(described_class).to be < OneviewSDK::API1000::Synergy::HypervisorClusterProfile
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it should inherit API1200::C7000 class. If so, please update description also accordingly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The respective lib file for API1200::Synergy file inherits from API1000::Synergy file, so mentioned the same in spec file.

Copy link
Collaborator

Choose a reason for hiding this comment

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

okay

include_context 'shared context'

it 'inherits from OneviewSDK::API800::Synergy::HypervisorClusterProfile' do
expect(described_class).to be < OneviewSDK::API800::Synergy::HypervisorClusterProfile
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it should inherit API1000::C7000 class. If so, please update description also accordingly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The respective lib file for API1000::Synergy file inherits from API800::Synergy file, so mentioned the same in spec file.

Copy link
Collaborator

Choose a reason for hiding this comment

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

okay

Copy link
Collaborator

@AsisBagga AsisBagga left a comment

Choose a reason for hiding this comment

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

Looks good to me (Y)

@VenkateshRavula VenkateshRavula merged commit e09f5ce into master May 26, 2020
@VenkateshRavula VenkateshRavula deleted the ClusterProfiles branch May 26, 2020 09:33
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

3 participants