Skip to content

Commit

Permalink
completed unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Bhatt <[email protected]>
  • Loading branch information
pranav-bhatt committed Mar 15, 2022
1 parent c46b2ea commit 30647fa
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def __init__(self, **kwargs):
"size": {"type": "str"},
"world_readable": {"type": "bool"},
},
"required": True,
"type": "dict",
},
"flag": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _state_merged(self, want, _have):
log_node = build_child_xml_node(pre_id_node, "log")
if "session_close" in pre_id["log"]:
build_child_xml_node(log_node, "session-close")
elif "session_init" in pre_id["log"]:
if "session_init" in pre_id["log"]:
build_child_xml_node(log_node, "session-init")

if "session_timeout" in pre_id:
Expand Down Expand Up @@ -348,9 +348,7 @@ def _state_merged(self, want, _have):
flag_node = build_child_xml_node(traceoptions_node, "flag")
build_child_xml_node(flag_node, "name", "lookup")
elif traceoptions["flag"] == "routing-socket":
build_child_xml_node(
traceoptions_node, "flag", "routing-socket"
)
flag_node = build_child_xml_node(traceoptions_node, "flag")
build_child_xml_node(flag_node, "name", "routing-socket")
elif traceoptions["flag"] == "rules":
flag_node = build_child_xml_node(traceoptions_node, "flag")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
based on the configuration.
"""
from __future__ import absolute_import, division, print_function
from inspect import trace

__metaclass__ = type

Expand Down
1 change: 0 additions & 1 deletion plugins/modules/junos_security_policies_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@
file:
description: A dictionary to configure the trace file options
type: dict
required: true
suboptions:
files:
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ replaced:
files: 4
match: /[A-Z]*/gm
size: 10k
flag: all
flag: all
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<match>/[A-Z]*/gm</match>
</file>
<flag>
<name>all</name>
<name>lookup</name>
</flag>
</traceoptions>
<default-policy>
Expand Down
Loading

0 comments on commit 30647fa

Please sign in to comment.