ogc,一个跑东西的人
ogc的Python项目详细描述
ogc,一个跑东西的人
ogc-任务运行器,重点是部署/测试/报告。
说明
ogc由可以在https://pypi.org上发现的插件提供支持
前缀ogc-plugins
。安装了插件后,运行can的不同方面
通过spec文件定义,spec文件是设置插件的yaml文件
特定目标的配置。
用法
> pip install ogc
> ogc --spec jobs/validate/spec.yml --tag core
# Or with a ogc.yml file in same directory running ogc from
> ogc
添加插件
要使ogc更有用,请安装几个插件:
> pip install ogc-plugins-juju
这将允许您添加诸如运行脚本和准备 环境变量。有关更多信息,请参见文档的插件部分 信息。
meta:name:Validate Charmed Kubernetesdescription:|Runs validation test suite against a vanilla deployment of Charmed Kubernetesmkdocs:destination:validations/ck/index.mdplan:-&BASE_JOBenv:-SNAP_VERSION=1.16/edge-JUJU_DEPLOY_BUNDLE=cs:~containers/charmed-kubernetes-JUJU_DEPLOY_CHANNEL=edge-JUJU_CLOUD=aws/us-east-2-JUJU_CONTROLLER=validate-ck-JUJU_MODEL=validate-modelinstall:-pip install -rrequirements.txt-pip install -rrequirements_test.txt-pip install git+https://github.com/juju/juju-crashdump.git-sudo apt install -qyf build-essential-sudo snap install charm --edge --classic-sudo snap install juju --classicbefore-script:-juju:cloud:$JUJU_CLOUDcontroller:$JUJU_CONTROLLERmodel:$JUJU_MODELbootstrap:debug:nomodel-default:-test-mode=truedeploy:reuse:nobundle:$JUJU_DEPLOY_BUNDLEoverlay:|applications:kubernetes-master:options:channel: $SNAP_VERSIONkubernetes-worker:options:channel: $SNAP_VERSIONwait:yeschannel:$JUJU_DEPLOY_CHANNELscript:-|#!/bin/bashset -euxpytest jobs/integration/validation.py \--cloud $JUJU_CLOUD \--controller $JUJU_CONTROLLER \--model $JUJU_MODELafter-script:-juju-crashdump -a debug-layer -a config -m $JUJU_CONTROLLER:$JUJU_MODEL-aws s3 sync *.log s3://jenkaas/$JUJU_DEPLOY_BUNDLE/$SNAP_VERSION-aws s3 sync juju-crashdump* s3://jenkaas/$JUJU_DEPLOY_BUNDLE/$SNAP_VERSION-juju destroy-controller -y --destroy-all-models --destroy-storage $JUJU_CONTROLLERtags:[core]-<<:*BASE_JOBenv:-SNAP_VERSION=1.15/edge-JUJU_DEPLOY_BUNDLE=charmed-kubernetestags:[core]-<<:*BASE_JOBenv:-SNAP_VERSION=1.14/edge-JUJU_DEPLOY_BUNDLE=charmed-kubernetestags:[core]-<<:*BASE_JOBenv:-JUJU_DEPLOY_BUNDLE=charmed-kubernetes-SNAP_VERSION=1.13/edgetags:[core]-<<:*BASE_JOBenv:-SNAP_VERSION=1.16/edge-JUJU_DEPLOY_BUNDLE=kubernetes-calicotags:[calico]-<<:*BASE_JOBenv:-SNAP_VERSION=1.15/edge-JUJU_DEPLOY_BUNDLE=kubernetes-calicotags:[calico]-<<:*BASE_JOBenv:-SNAP_VERSION=1.14/edge-JUJU_DEPLOY_BUNDLE=kubernetes-calicotags:[calico]-<<:*BASE_JOBenv:-JUJU_DEPLOY_BUNDLE=kubernetes-calico-SNAP_VERSION=1.13/edgetags:[calico]