I hereby claim:
- I am dave-shawley on github.
- I am daveshawley (https://keybase.io/daveshawley) on keybase.
- I have a public key whose fingerprint is E1B6 B144 A6D1 51F9 DD04 EFDA 2748 E69F 7CB1 DB19
To claim this, I am signing this object:
#!/usr/bin/env python | |
# | |
# Requirements: requests, beautifulsoup4 | |
# | |
import argparse | |
import dataclasses | |
import typing | |
import bs4 | |
import requests |
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Schema for Read the Docs configuration file", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"version": { | |
"type": "string", | |
"enum": [ | |
"2" |
I hereby claim:
To claim this, I am signing this object:
@test "nginx proxies to devpi-server" { | |
HOST=$(hostname --fqdn) | |
TMPFILE=$BATS_TMPDIR/root-pypi | |
wget -q -O$TMPFILE http://$HOST/root/pypi | |
grep 'type.*"indexconfig"' $TMPFILE | |
grep 'type.*"mirror"' $TMPFILE | |
} |
# | |
# nginx proxy for devpi-server | |
# | |
upstream devpi { | |
server 127.0.0.1:3141; | |
} | |
server { | |
server_name <%= node.fqdn %>; |
@test "devpi-server is enabled" { | |
test -e /etc/nginx/sites-available/devpi-server | |
test -L /etc/nginx/sites-enabled/devpi-server | |
} |
@test "nginx is installed" { | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin | |
test -n "$(which nginx)" | |
} | |
@test "default site is disabled" { | |
test ! -e /etc/nginx/sites-enabled/default | |
} |
private void runTestsNamed(String... testNames) throws Exception { | |
for (int i=0; i<testNames.length; ++i) { | |
Method testCase = this.getClass().getMethod(testNames[i]); | |
testCase.invoke(this); | |
if ((i + 1) < testNames.length) { | |
tearDown(); | |
setUp(); | |
} | |
} | |
} |