Node Feature Discovery repo setup for FluxCD

Story: 2010769
Task: 48084

Change-Id: Ib6e25bef8fc2acda1ab61a95deeca461337bf9fd
Signed-off-by: Marcos Paulo Oliveira Silva <Marcos.PauloOliveiraSilva@windriver.com>
This commit is contained in:
Marcos Paulo Oliveira Silva 2023-05-23 14:15:46 -03:00
parent b423860445
commit 524479ff99
4 changed files with 163 additions and 0 deletions

106
.zuul.yaml Normal file
View File

@ -0,0 +1,106 @@
---
- project:
vars:
ensure_tox_version: '<4'
check:
jobs:
- openstack-tox-linters
gate:
jobs:
- openstack-tox-linters
post:
jobs:
- stx-app-node-feature-discovery-upload-git-mirror
- job:
name: stx-app-node-feature-discovery-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/app-node-feature-discovery to
github.com/starlingx/app-node-feature-discovery
vars:
git_mirror_repository: starlingx/app-node-feature-discovery
secrets:
- name: git_mirror_credentials
secret: stx-app-node-feature-discovery-github-secret
pass-to-parent: true
- secret:
name: stx-app-node-feature-discovery-github-secret
data:
user: git
host: github.com
# yamllint disable-line rule:line-length
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2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sYpnQU7pjz2al3rIabCI9CqQ3xi
7yc7k7C1+I0fjLwzJgbBEXTZlGYoo2O45drsuxrsI6Z5k8LPRNoT5vSd9DuhO89d9bV6g
c/JKNtSanNL/bzm9mU/krGscdk8bqIUo7aQWP0YxsLuYqlCV2QdUiQo/E0SNKyoQqwE5O
hz4VSF2egVz3nQrjLuYBLuQFExASI9qNULqMB4bSZaO7WLbzlCp3ZiyMkcp6fpcecGcFU
YGjxhPBShWGfsYbCpzLuNcB/eWtRP8QEVxIJ3/XrbxHOo0/1HjIee1C9XtCUDZETQJ4i/
pKHE535JtKq5kTzZWxOGD+n+IVNenmSNnUYJmwUdtZ0g8ndpnBfyiRZR2eP8PpRAkpgHL
25swCr6MlsoczVuWtXRLZC5MPgr85r34s5QioNPue+Fs9lWyw2WDsYZZv4IRbZ0h4Rlym
9fEA+cQON+bOOq9TL+hGwzL8bmFpcMCMFPqLhWQqRmtvB++0TWA585fu9vKCmHlmFgnq2
9urYYW2x5vWl5oVlEbCZKr6Re0jm0OmkQI5CsPiFD5g4wjdCI/FM62KGtH+FZbesVBv9H
iJ6h+y6vU0jKNpmXWo5iP8xbibXS9t3sfKsOHuJxxrIReJJ3ruoE1gJ7gtQDBs=

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
# Nothing

4
test-requirements.txt Normal file
View File

@ -0,0 +1,4 @@
# hacking pulls in flake8
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
bashate >= 0.2

52
tox.ini Normal file
View File

@ -0,0 +1,52 @@
[tox]
envlist = linters
minversion = 2.3
skipsdist = True
sitepackages=False
[testenv]
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
allowlist_externals =
bash
passenv =
XDG_CACHE_HOME
[testenv:bashate]
# Treat all E* codes as Errors rather than warnings using: -e 'E*'
commands =
bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -r -n 1 -0 bashate -v \
-e 'E*'"
[testenv:linters]
commands =
{[testenv:bashate]commands}
[testenv:flake8]
basepython = python3
description = Dummy environment to allow flake8 to be run in subdir tox
[testenv:pylint]
basepython = python3
description = Dummy environment to allow pylint to be run in subdir tox
[testenv:bandit]
basepython = python3
description = Dummy environment to allow bandit to be run in subdir tox