# Help testing new module

**URL:** <https://forum.ansible.com/t/help-testing-new-module/25058>\
**Category:** Ansible Project\
**Created:** [July 23, 2017, 3:31pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058 "2017-07-23T15:31:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [July 23, 2017, 3:31pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/1 "2017-07-23T15:31:09Z")

</div>

I have created a pull request for a module for google cloud ([PR 27194](https://github.com/ansible/ansible/pull/27194)). There are 4 tests that fail, basically all the same:

`ansible-test sanity --test import --python xxx`

I have no idea how to fix this. The module needs libcloud to work, but perhaps I need to tell the tests where to find libcloud? Can someone give me some hints?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 23, 2017, 3:52pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/2 "2017-07-23T15:52:52Z")

</div>

Have you scrolled to the bottom and pressed details on shippable?  
( [https://app.shippable.com/github/ansible/ansible/runs/29986/1/console](https://app.shippable.com/github/ansible/ansible/runs/29986/1/console) )

If you do you will see the following error message for Python 2.6, 2.7, 3.5 and 3.6.

2017-07-23 14:40:26 Run command: importer.py lib/ansible/modules/cloud/google/gce\_firewall.py lib/ansible/modules/cloud/google/gce\_net.py  
2017-07-23 14:40:26 ERROR: Found 2 import issue(s) on python 2.6 which need to be resolved:  
2017-07-23 14:40:26 ERROR: lib/ansible/modules/cloud/google/gce\_firewall.py:181:0: NameError: name 'Provider' is not defined (100%)  
2017-07-23 14:40:26 ERROR: lib/ansible/modules/cloud/google/gce\_net.py:226:0: NameError: name 'Provider' is not defined (100%)  
2017-07-23 14:40:26 ERROR: The 1 sanity test(s) listed below (out of 2) failed. See error output above for details.

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [July 23, 2017, 4:28pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/3 "2017-07-23T16:28:07Z")

</div>

Yes, I had done that, but my understanding of the issue was wrong. Your reply was like a wake up call! Thanks.

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [July 23, 2017, 4:48pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/4 "2017-07-23T16:48:20Z")

</div>

And here I am stuck again. I have verified locally that Provider exists, but the test still fails. I found the file test/sanity/import/skip.txt. Should I include my module there?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 23, 2017, 5:09pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/5 "2017-07-23T17:09:32Z")

</div>

I can't help you, but you might have better luck in the developer list  
[https://groups.google.com/forum/#!forum/ansible-devel](https://groups.google.com/forum/#!forum/ansible-devel)

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [July 23, 2017, 5:16pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058/6 "2017-07-23T17:16:31Z")

</div>

I 'll try that, thanks.
