Giuseppe Lavagetto has uploaded a new change for review. https://gerrit.wikimedia.org/r/297558
Change subject: Debianization ...................................................................... Debianization Change-Id: Ia155de0f2a348d19bf7d4a34e251c97dddb37690 --- A debian/changelog A debian/compat A debian/control A debian/copyright A debian/rules A debian/service-checker.1 A debian/source/format 7 files changed, 116 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/software/service-checker refs/changes/58/297558/1 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ddebcac --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +service-checker (0.0.1) unstable; urgency=medium + + * Initial release + + -- Giuseppe Lavagetto <[email protected]> Tue, 05 Jul 2016 17:51:24 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..0e4f1a2 --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: service-checker +Section: python +Priority: optional +Maintainer: Giuseppe Lavagetto <[email protected]> +Build-Depends: debhelper (>=9),dh-python,python-all (>= 2.6.6-3~),python-setuptools,python3-all,python3-setuptools +Standards-Version: 3.9.8 +Homepage: https://github.com/wikimedia/operations-software-service-checker +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.2 + +Package: python-service-checker +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Description: Generic swagger-based webservice checker (Python 2) + Service-checker can perform http(s) requests based on the 'x-amples' + sections of the paths part of the spec, and match responses to what + the expected response is. It is able to check both headers and the + body of the response and its exit codes are compatible with nagios. + . + This package installs the library for Python 2. + +Package: python3-service-checker +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: Generic swagger-based webservice checker (Python 3) + Service-checker can perform http(s) requests based on the 'x-amples' + sections of the paths part of the spec, and match responses to what + the expected response is. It is able to check both headers and the + body of the response and its exit codes are compatible with nagios. + . + This package installs the library for Python 3. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0728049 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: service-checker +Source: https://github.com/wikimedia/operations-software-service-checker + +Files: * +Copyright: 2016 Wikimedia Foundation Inc +License: GPL-3+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..29a23dd --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +export DH_VERBOSE = 1 + +export PYBUILD_NAME=checker + +export PYBUILD_INSTALL_ARGS_python3 = --install-scripts=/dev/null + + +%: + dh $@ --with python2,python3 --buildsystem=pybuild diff --git a/debian/service-checker.1 b/debian/service-checker.1 new file mode 100644 index 0000000..7757ec0 --- /dev/null +++ b/debian/service-checker.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2016 Giuseppe Lavagetto <[email protected]>, +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Service-checker 1 "July 5 2016" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp <n> insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +service-checker \- generic swagger-based webservice checker. +.SH SYNOPSIS +.B service-checker +[OPTIONS] host-ip http-url +.RI +.SH DESCRIPTION +\fBservice-checker\fP can fetch the swagger spec of a webservice +and perform http requests based on the x-amples sections of the paths part of +the spec, and match responses to what the expected response is. It is +able to check both headers and the body of the response. + + +.SH OPTIONS +.IP host-ip +The IP (or hostname) of the server we want to test +.IP http-url +The url of the service (including the HTTP Host) +.IP -t +Timeout for each request, in seconds. Default is 5 +.IP -s +URL relative to \fBhttp-url\fP where the swagger spec can be +found. Defaults to "/?spec" diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- To view, visit https://gerrit.wikimedia.org/r/297558 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia155de0f2a348d19bf7d4a34e251c97dddb37690 Gerrit-PatchSet: 1 Gerrit-Project: operations/software/service-checker Gerrit-Branch: master Gerrit-Owner: Giuseppe Lavagetto <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
