Skip to content

Commit 182173c

Browse files
committed
tests
1 parent 92ab4a0 commit 182173c

File tree

1 file changed

+6
-6
lines changed
  • roles/tests-integration/files/importer/config_changes

1 file changed

+6
-6
lines changed

roles/tests-integration/files/importer/config_changes/changeRule.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import logging
1010

1111

12-
def randomOctet():
12+
def random_octet():
1313
return str(random.randrange(0, 256))
1414

1515

16-
def randomIp():
17-
return randomOctet() + '.' + randomOctet() + '.' + randomOctet() + '.' + randomOctet()
16+
def random_ip():
17+
return random_octet() + '.' + random_octet() + '.' + random_octet() + '.' + random_octet()
1818

1919

20-
def randomUid():
20+
def random_uid():
2121
s = ''.join(random.choices(string.ascii_lowercase + string.digits, k=32))
2222
return s[:8] + '-' + s[8:12] + '-' + s[12:16] + '-' + s[16:20] + '-' + s[20:]
2323

@@ -76,8 +76,8 @@ def randomUid():
7676

7777
if actionChosen == 'changeSrcOrDst':
7878
if not deleteElement:
79-
newUid = randomUid()
80-
newIp = randomIp()
79+
newUid = random_uid()
80+
newIp = random_ip()
8181

8282
# cannot add to any obj, so delete it first
8383
if anyObj in ruleSide:

0 commit comments

Comments
 (0)