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

more integration test improvements #41184

Merged
merged 17 commits into from
Jun 12, 2018

Conversation

zikalino
Copy link
Contributor

@zikalino zikalino commented Jun 6, 2018

SUMMARY

Fixing issues related to Azure integration tests.
This PR is supposed to fix too many azure_rm_publicip resources create and not deleted by tests.
Also assigning random names to resources to avoid conflicts.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_networkinterface
azure_rm_publicipaddress
azure_rm_image
azure_rm_managed_disk
azure_rm_loadbalancer

ANSIBLE VERSION

2.6

ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Jun 6, 2018

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

test/integration/targets/azure_rm_image/tasks/main.yml:51:46: error syntax error: expected <block end>, but found '<scalar>'

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Jun 6, 2018

cc @yuwzho
click here for bot help

@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.7 This issue/PR affects Ansible v2.7 azure cloud feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Jun 6, 2018
@ansibot
Copy link
Contributor

ansibot commented Jun 6, 2018

cc @brusMX
click here for bot help

@ansibot ansibot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jun 6, 2018
@ansibot
Copy link
Contributor

ansibot commented Jun 6, 2018

@ansibot ansibot added support:certified This issue/PR relates to certified code. and removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jun 6, 2018
@ansibot
Copy link
Contributor

ansibot commented Jun 6, 2018

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

test/integration/targets/azure_rm_managed_disk/tasks/main.yml:416:1: empty-lines too many blank lines (1 > 0)

click here for bot help

@webknjaz
Copy link
Member

webknjaz commented Jun 6, 2018

Could you please fill in the issue template correctly?

@ansibot ansibot added bug This issue/PR relates to a bug. and removed needs_triage Needs a first human triage before being processed. labels Jun 6, 2018
@zikalino zikalino changed the title [WIP] more integration test improvements more integration test improvements Jun 8, 2018
@ansibot ansibot removed the WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. label Jun 8, 2018
@zikalino zikalino requested a review from yungezz June 8, 2018 01:28
account_type: Standard_LRS

- name: Create virtual network
azure_rm_virtualnetwork:
resource_group: "{{ resource_group }}"
name: testvm001
name: "vn{{ rpfx }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

set this as variable?

state: absent
vm_size: Standard_A0
register: output

- name: Delete public ip
Copy link
Contributor

Choose a reason for hiding this comment

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

will deletion fail caused test fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, already tested

@ansibot
Copy link
Contributor

ansibot commented Jun 8, 2018

@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 8, 2018
@ansibot ansibot removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 8, 2018
@zikalino
Copy link
Contributor Author

zikalino commented Jun 8, 2018

@nitzmahone do you think we could merge this pr?

@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Jun 8, 2018
@yungezz
Copy link
Contributor

yungezz commented Jun 12, 2018

merge this purely test fixing.

storage_name: "st{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
storage_container_name: "sc{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
public_ip_name: "pip{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
security_group_name: "pip{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

another prefix instead of 'pip'?

storage_blob: testvm001.vhd
storage_account: "{{ storage_name }}"
storage_container: "{{ storage_container_name }}"
storage_blob: "blob.vhd"
Copy link
Contributor

Choose a reason for hiding this comment

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

randomize the blob name?

@zikalino zikalino closed this Jun 12, 2018
@zikalino zikalino reopened this Jun 12, 2018
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Jun 12, 2018
@yungezz yungezz merged commit e921472 into ansible:devel Jun 12, 2018
jacum pushed a commit to jacum/ansible that referenced this pull request Jun 26, 2018
@yungezz yungezz deleted the more-integration-test-improvements branch April 9, 2019 02:13
@ansible ansible locked and limited conversation to collaborators Jun 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 azure bug This issue/PR relates to a bug. cloud needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:certified This issue/PR relates to certified code. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants