added make for test cases

This commit is contained in:
2021-07-16 17:27:54 +04:00
parent 0069308a2a
commit 1a0184406d
5 changed files with 25 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
Test if it's detected

12
deploy/TestAnsible/hosts Normal file
View 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

View File

@@ -0,0 +1,8 @@
---
- hosts: all
tasks:
- name: simple-ansibleplaybook
debug:
msg: Your are running 'simple-ansibleplaybook' example

View File

@@ -1 +1 @@
cp -r TestAnsible/ deploy/ cp -r plugin/TestAnsible/ deploy/