added make for test cases
This commit is contained in:
3
Makefile
3
Makefile
@@ -12,6 +12,9 @@ build:
|
|||||||
configfile:
|
configfile:
|
||||||
./p2prc --SetDefaultConfig
|
./p2prc --SetDefaultConfig
|
||||||
|
|
||||||
|
testcases:
|
||||||
|
sh plugin/generate_test_case.sh
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go run main.go
|
go run main.go
|
||||||
|
|
||||||
|
|||||||
1
deploy/TestAnsible/description.txt
Normal file
1
deploy/TestAnsible/description.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Test if it's detected
|
||||||
12
deploy/TestAnsible/hosts
Normal file
12
deploy/TestAnsible/hosts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
all:
|
||||||
|
vars:
|
||||||
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
main:
|
||||||
|
hosts:
|
||||||
|
host1:
|
||||||
|
ansible_host: 0.0.0.0 # Replace with your remote IP
|
||||||
|
ansible_port: 44003 # Replace with your remote SSH port
|
||||||
|
ansible_user: master # Replace wtih your username
|
||||||
|
ansible_ssh_pass: password
|
||||||
|
ansible_sudo_pass: password
|
||||||
8
deploy/TestAnsible/site.yml
Normal file
8
deploy/TestAnsible/site.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: simple-ansibleplaybook
|
||||||
|
debug:
|
||||||
|
msg: Your are running 'simple-ansibleplaybook' example
|
||||||
@@ -1 +1 @@
|
|||||||
cp -r TestAnsible/ deploy/
|
cp -r plugin/TestAnsible/ deploy/
|
||||||
|
|||||||
Reference in New Issue
Block a user