-
Notifications
You must be signed in to change notification settings - Fork 336
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 new module for Azure API management service. #333
Conversation
Hi @Fred-sun could you please review this PR ? |
1 similar comment
Hi @Fred-sun could you please review this PR ? |
tests/integration/targets/azure_rm_apimanagementservice/tasks/main.yml
Outdated
Show resolved
Hide resolved
- name: To update API Management service publisher details | ||
azure_rm_apimanagementservice: | ||
resource_group: "{{ resource_group }}" | ||
name: myService |
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: myService | |
name: "{{ name }}" |
tests/integration/targets/azure_rm_apimanagementservice/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_apimanagementservice/tasks/main.yml
Outdated
Show resolved
Hide resolved
|
Hi @Fred-sun I have made necessary changes as you mentioned. |
@Fred-sun Could you please review my changes |
tests/sanity/ignore-2.11.txt
Outdated
plugins/modules/azure_rm_apimanagementservice.py validate-modules:invalid-ansiblemodule-schema | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:required_if-requirements-unknown | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:required_if-unknown-key | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:parameter-type-not-in-doc |
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.
plugins/modules/azure_rm_apimanagementservice.py validate-modules:parameter-type-not-in-doc |
tests/sanity/ignore-2.11.txt
Outdated
plugins/modules/azure_rm_apimanagementservice.py validate-modules:required_if-requirements-unknown | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:required_if-unknown-key | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:parameter-type-not-in-doc | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-requirements-unknown |
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.
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-requirements-unknown |
tests/sanity/ignore-2.11.txt
Outdated
plugins/modules/azure_rm_apimanagementservice.py validate-modules:required_if-unknown-key | ||
plugins/modules/azure_rm_apimanagementservice.py validate-modules:parameter-type-not-in-doc | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-requirements-unknown | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-unknown-key |
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.
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-unknown-key |
tests/sanity/ignore-2.11.txt
Outdated
plugins/modules/azure_rm_apimanagementservice.py validate-modules:parameter-type-not-in-doc | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-requirements-unknown | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:required_if-unknown-key | ||
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:parameter-type-not-in-doc |
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.
plugins/modules/azure_rm_apimanagementservice_info.py validate-modules:parameter-type-not-in-doc |
Hello @Fred-sun I made all changes that you mentioned, please take look on this. Thanks |
@nikhilpatne Thanks for the update! Have you executed task/main.yml locally? An error occurred during the update. Please modify the playbook and modules and add idempotent tests to the use cases. thank you very much! |
@nikhilpatne In addition, you can refer to the link ---https://docs.ansible.com/ansible/devel/dev_guide/testing_sanity.html#testing-sanity to check the documentation. Thank you! |
Hi @Fred-sun I made all changes that you suggested, please take a look on this. |
Hi @Fred-sun could you please review my changes |
|
Hi, @Fred-sun I am following https://docs.ansible.com/ansible/devel/dev_guide/testing_sanity.html#testing-sanity for sanity checking. This module is stucked from long time, please help me. |
@nikhilpatne Yes, can you authorize me to make some updates in your branch? I will update to fixes these sanity error. Thank you very much! |
@Fred-sun I have given access to my branch. Kindly check, Thank you soo much..!!!!! |
restore change-2 remove unuse file fix sanity error update for error
@nikhilpatne Some changes have been made to solve the current problems. ApiManagement has not been updated and deleted yet. If you have any questions about the above changes, please inform us or make relevant changes. Thank you very much! |
Okay Thanks @Fred-sun Will look into it... |
@nikhilpatne Is there anything that we can help you with? |
Yes thanks, @Ompragash and @Fred-sun , Problem is, To create and activate an Azure API Management service takes nearly 30 - 40 minutes. I think Thats why it fails during the integration test. because we have to wait 40 minutes or more sometimes to activate it. So what can I do in that case ??? https://docs.microsoft.com/en-us/azure/api-management/get-started-create-service-instance |
@nikhilpatne yes, I agree. After create the API Services , The API Services is transitioning need 30 minutes. Other function is OK. So I'll disable its test cases and push this PR forward to merge. Thank you very much! |
@Fred-sun Thank you very much..!!! |
Added new module for Azure API management service
Fixes #332
https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2020-06-01-preview/service
SUMMARY
An Ansible module that allows for create, delete and update azure api management service.
ISSUE TYPE
New Module request
COMPONENT NAME
azure_rm_apimanagementservice
azure_rm_apimanagementservice_info
ADDITIONAL INFORMATION
Would be able to create, update and delete Azure API Management service.
azure_rm_apimanagementservice:
resource_group: myResourceGroup
name: myService
publisher_email: user@example.com
publisher_name: Publisher Name
sku_name: Developer
sku_capacity: 1