Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Fix for invalid IPv6 or IPv4 ipaddress and subnet#29

Merged
nemesifier merged 1 commit intoopenwisp:masterfrom
anurag-ks:master
Jul 6, 2018
Merged

Fix for invalid IPv6 or IPv4 ipaddress and subnet#29
nemesifier merged 1 commit intoopenwisp:masterfrom
anurag-ks:master

Conversation

@anurag-ks
Copy link
Contributor

Implements and closes #28

@anurag-ks anurag-ks requested a review from nemesifier July 5, 2018 16:28
@coveralls
Copy link

coveralls commented Jul 5, 2018

Pull Request Test Coverage Report for Build 86

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 84: 0.0%
Covered Lines: 222
Relevant Lines: 222

💛 - Coveralls

@anurag-ks anurag-ks self-assigned this Jul 6, 2018
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

see my comments for minor cleanups and please reply to my concern:

after removing your fix, only test_ipaddress_invalid_entry fails, when are the other two tests supposed to fail?

self.assertContains(response, '<h3>Used IP address</h3>')

def test_subnet_invalid_entry(self):

Copy link
Member

Choose a reason for hiding this comment

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

please remove this blank line


def test_ipaddress_invalid_entry(self):
subnet = self._create_subnet(dict(subnet="10.0.0.0/24", description="Sample Subnet"))

Copy link
Member

Choose a reason for hiding this comment

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

remove this blank line

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

I'll handle the fixes (see my comments in the general chat).

@nemesifier nemesifier merged commit 9758fff into openwisp:master Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle invalid IPv4 or IPv6

3 participants