Skip to content

Commit 280f23a

Browse files
authored
Merge pull request #6775 from inverse-inc/feature/venom-1.0.0
Feature/venom 1.0.0
2 parents 2b8f3cf + 774fb22 commit 280f23a

149 files changed

Lines changed: 759 additions & 244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/vagrant/inventory/group_vars/localdev/packetfence_install.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
packetfence_install__centos_release_rpm: "http://packetfence.org/downloads/PacketFence/RHEL8/packetfence-release-{{ pf_minor_release }}.el8.noarch.rpm"
33

4+
# in localdev environment: we install from official repositories
5+
packetfence_install__centos:
6+
repos:
7+
- packetfence
8+
49
# override to installed test files
510
packetfence_install__centos_packages:
611
- packetfence
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
venom__version: 'v1.0.0-rc.7'
2+
venom__version: 'v1.0.1'
33

44
venom_dir: '/usr/local/pf/t/venom'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
venom__version: 'v1.0.0-rc.7'
2+
venom__version: 'v1.0.1'
33

44
venom_dir: '/usr/local/pf/t/venom'
55

addons/vagrant/playbooks/nodes/pre_prov/venom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- inverse_inc.utils
88

99
vars:
10-
venom__version: 'v1.0.0-rc.7'
10+
venom__version: 'v1.0.1'
1111

1212
roles:
1313
- role: venom

t/venom/.venomrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ variables_files:
22
- vars/all.yml
33
- vars/local.yml
44
stop_on_failure: true
5-
#format: tap
5+
format: tap
66
output_dir: results
77
lib_dir: lib
88
verbosity: 1

t/venom/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,8 @@ example_deb11:
164164
SCENARIOS_TO_RUN=example \
165165
$(MAKE_TARGET)
166166

167+
test_deb11:
168+
make \
169+
PF_VM_NAME=pfdeb11$(DEV_ENV) \
170+
SCENARIOS_TO_RUN=test_venom\
171+
$(MAKE_TARGET)

t/venom/install-venom.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ VENOM_BIN_PATH=/usr/bin
55
VENOM_BINARY=venom
66
ROOTUSER_NAME=root
77
VENOM_LATEST_URL=https://api.github.com/repos/ovh/venom/releases/latest
8-
VENOM_DEFAULT_VERSION="1.0.0-rc.7"
8+
VENOM_DEFAULT_VERSION="1.0.1"
99
VENOM_INSTALL_VERSION=${VENOM_VERSION:-${VENOM_DEFAULT_VERSION}}
1010
VENOM_LATEST_VERSION=""
1111
VENOM_INSTALLED_VERSION=""
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
executor: check_host_internet_access
2+
# By default it will use the node1
3+
input:
4+
host: "{{.node01_mgmt_ip}}"
5+
user: "{{.ssh_user}}"
6+
steps:
7+
- type: ssh
8+
host: '{{.input.host}}'
9+
user: '{{.input.user}}'
10+
command: |
11+
cd '{{.venom_dir}}' ; \
12+
sudo '{{.venom_dir}}/venom-wrapper.sh' '{{.test_suites_dir}}/common/check_internet_access.yml'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
executor: check_internet_access
2+
input:
3+
url: '{{.network_detection_url}}'
4+
steps:
5+
- type: http
6+
method: GET
7+
url: '{{.input.url}}'
8+
assertions:
9+
- result.statuscode ShouldEqual 200
10+
# retry to let node get IP by DHCP
11+
retry: 6
12+
delay: 10

t/venom/lib/customA.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
executor: customA
2+
input:
3+
myArg: "world2"
4+
steps:
5+
- type: customB
6+
myWord: "{{.input.myArg}}"
7+
vars:
8+
content:
9+
from: result.foobarb
10+
- script: echo "hello {{.content}}"
11+
assertions:
12+
- result.code ShouldEqual 0
13+
- result.systemout ShouldContainSubstring "{{.input.myArg}}"
14+
output:
15+
foobarA: "{{.result.systemout}}"

0 commit comments

Comments
 (0)