mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
lint fixes
This commit is contained in:
parent
e43b5e41f1
commit
83e9915a11
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -1,3 +1,4 @@
|
||||
---
|
||||
name: CI
|
||||
|
||||
on:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user