lint fixes

This commit is contained in:
ryanmerolle 2023-01-26 01:22:02 +00:00
parent e43b5e41f1
commit 83e9915a11
8 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,4 @@
---
name: CI
on:

View File

@ -10,6 +10,7 @@ from os.path import abspath, dirname
# For reference see https://netbox.readthedocs.io/en/stable/configuration/
# Based on https://github.com/netbox-community/netbox/blob/master/netbox/netbox/configuration.example.py
# Read secret from file
def _read_secret(secret_name, default=None):
try:

View File

@ -1,3 +1,4 @@
---
version: '3.4'
services:
@ -23,7 +24,7 @@ services:
redis:
image: redis:6-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
env_file: env/redis.env

View File

@ -20,6 +20,7 @@
<h5 class="card-header">Access List</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>Access List</caption>
<tr>
<th scope="row">Type</th>
<td>{{ object.get_type_display }}</td>

View File

@ -7,6 +7,7 @@
<h5 class="card-header">ACL Extended Rule</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>ACL Extended Rule</caption>
<tr>
<th scope="row">Access List</th>
<td>
@ -32,6 +33,7 @@
<h5 class="card-header">Details</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>Details</caption>
<tr>
<th scope="row">Remark</th>
<td>{{ object.get_remark_display|placeholder }}</td>

View File

@ -8,6 +8,7 @@
<h5 class="card-header">ACL Interface Assignment</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>Host</caption>
<tr>
<th scope="row">Host</th>
<td>

View File

@ -7,6 +7,7 @@
<h5 class="card-header">ACL Standard Rule</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>ACL Standard Rule</caption>
<tr>
<th scope="row">Access List</th>
<td>
@ -32,6 +33,7 @@
<h5 class="card-header">Details</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<caption>Details</caption>
<tr>
<th scope="row">Remark</th>
<td>{{ object.get_remark_display|placeholder }}</td>

View File

@ -1,11 +1,12 @@
from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Site
from django.contrib.contenttypes.models import ContentType
from django.urls import reverse
from netbox_acls.choices import *
from netbox_acls.models import *
from rest_framework import status
from utilities.testing import APITestCase, APIViewTestCases
from netbox_acls.choices import *
from netbox_acls.models import *
class AppTest(APITestCase):
def test_root(self):