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

Create test_ios_l2_interface.py #53646

Closed
wants to merge 6 commits into
base: devel
from

Conversation

Projects
None yet
5 participants
@smolz
Copy link
Contributor

smolz commented Mar 11, 2019

Add test for #52892

SUMMARY

Add test for #52892

Fixes #52892

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ios_l2_interface

ADDITIONAL INFORMATION

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Mar 11, 2019

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

test/units/modules/network/ios/test_ios_l2_interface.py:66:14: E126 continuation line over-indented for hanging indent

click here for bot help

@ansibot

This comment has been minimized.

@ansibot ansibot removed the ci_verified label Mar 12, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Mar 12, 2019

The test ansible-test sanity --test pylint [explain] failed with 24 errors:

test/units/modules/network/ios/test_ios_l2_interface.py:31:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:33:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:34:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:36:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:37:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:39:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:40:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:42:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:43:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:44:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:45:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:47:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:48:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:49:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:51:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:52:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:53:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:54:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:60:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:62:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:63:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:64:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:65:0: mixed-indentation Found indentation with tabs instead of spaces
test/units/modules/network/ios/test_ios_l2_interface.py:73:0: mixed-indentation Found indentation with tabs instead of spaces

The test ansible-test sanity --test pep8 [explain] failed with 42 errors:

test/units/modules/network/ios/test_ios_l2_interface.py:31:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:31:2: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:33:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:34:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:34:3: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:36:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:37:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:39:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:40:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:42:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:43:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:43:3: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:44:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:45:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:47:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:48:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:48:3: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:49:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:51:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:52:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:52:3: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:53:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:54:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:55:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:56:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:57:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:58:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:59:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:60:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:62:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:63:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:63:3: E117 over-indented
test/units/modules/network/ios/test_ios_l2_interface.py:64:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:65:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:66:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:67:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:68:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:69:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:70:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:71:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:72:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:73:1: W191 indentation contains tabs

click here for bot help

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Mar 12, 2019

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

test/units/modules/network/ios/test_ios_l2_interface.py:36:0: syntax-error inconsistent use of tabs and spaces in indentation (<unknown>, line 36)

The test ansible-test sanity --test compile --python 3.5 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:36:89: SyntaxError: self.mock_get_config = patch('ansible.modules.network.ios.ios_l2_interface.get_config')

The test ansible-test sanity --test compile --python 3.6 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:36:89: SyntaxError: self.mock_get_config = patch('ansible.modules.network.ios.ios_l2_interface.get_config')

The test ansible-test sanity --test compile --python 3.7 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:36:89: SyntaxError: self.mock_get_config = patch('ansible.modules.network.ios.ios_l2_interface.get_config')

The test ansible-test sanity --test compile --python 3.8 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:36:89: SyntaxError: self.mock_get_config = patch('ansible.modules.network.ios.ios_l2_interface.get_config')

The test ansible-test sanity --test pep8 [explain] failed with 41 errors:

test/units/modules/network/ios/test_ios_l2_interface.py:36:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:36:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:37:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:39:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:40:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:42:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:43:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:43:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:44:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:45:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:47:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:48:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:48:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:49:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:51:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:52:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:52:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:53:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:53:4: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:53:5: E128 continuation line under-indented for visual indent
test/units/modules/network/ios/test_ios_l2_interface.py:54:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:55:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:56:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:57:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:58:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:59:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:60:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:61:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:63:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:64:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:64:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:65:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:66:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:67:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:68:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:69:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:70:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:71:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:72:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:73:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:74:1: W191 indentation contains tabs

click here for bot help

@rcarrillocruz rcarrillocruz requested a review from NilashishC Mar 13, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Mar 13, 2019

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

test/units/modules/network/ios/test_ios_l2_interface.py:31:0: syntax-error invalid syntax (<unknown>, line 31)

The test ansible-test sanity --test compile --python 2.6 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:6: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test compile --python 2.7 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:6: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test compile --python 3.5 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:6: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test compile --python 3.6 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:6: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test compile --python 3.7 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:6: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test compile --python 3.8 [explain] failed with 1 error:

test/units/modules/network/ios/test_ios_l2_interface.py:31:1: SyntaxError: module = ios_l2_interface

The test ansible-test sanity --test pep8 [explain] failed with 35 errors:

test/units/modules/network/ios/test_ios_l2_interface.py:31:1: E112 expected an indented block
test/units/modules/network/ios/test_ios_l2_interface.py:31:1: E305 expected 2 blank lines after class or function definition, found 0
test/units/modules/network/ios/test_ios_l2_interface.py:33:1: E302 expected 2 blank lines, found 1
test/units/modules/network/ios/test_ios_l2_interface.py:42:1: E302 expected 2 blank lines, found 1
test/units/modules/network/ios/test_ios_l2_interface.py:47:1: E302 expected 2 blank lines, found 1
test/units/modules/network/ios/test_ios_l2_interface.py:51:1: E302 expected 2 blank lines, found 1
test/units/modules/network/ios/test_ios_l2_interface.py:53:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:53:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:53:8: E128 continuation line under-indented for visual indent
test/units/modules/network/ios/test_ios_l2_interface.py:54:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:56:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:56:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:56:6: E126 continuation line over-indented for hanging indent
test/units/modules/network/ios/test_ios_l2_interface.py:57:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:57:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:58:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:58:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:59:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:59:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:60:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:63:1: E302 expected 2 blank lines, found 1
test/units/modules/network/ios/test_ios_l2_interface.py:67:1: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:67:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:67:6: E126 continuation line over-indented for hanging indent
test/units/modules/network/ios/test_ios_l2_interface.py:68:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:68:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:69:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:69:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:70:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:70:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:71:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:71:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:72:1: W191 indentation contains tabs
test/units/modules/network/ios/test_ios_l2_interface.py:72:2: E101 indentation contains mixed spaces and tabs
test/units/modules/network/ios/test_ios_l2_interface.py:73:1: E101 indentation contains mixed spaces and tabs

click here for bot help

@ansibot ansibot removed the ci_verified label Mar 13, 2019

smolz added some commits Mar 13, 2019

@NilashishC

This comment has been minimized.

Copy link
Contributor

NilashishC commented Mar 16, 2019

@smolz the units tests and the changes (features/bug fixes) have to be in the same PR.

@smolz

This comment has been minimized.

Copy link
Contributor Author

smolz commented Mar 20, 2019

@smolz the units tests and the changes (features/bug fixes) have to be in the same PR.

merged this with the original pr

@smolz smolz closed this Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.