- Bootstrap
$ juju bootstrap --no-gui lxd lxd-original --bootstrap-series=xenial \
--debug --model-default "logging-config=<root>=INFO"| import argparse | |
| import json | |
| import sys | |
| def read_state(path): | |
| if path == '-': | |
| state = json.load(sys.stdin) | |
| else: | |
| with open(path) as f: |
| package foo | |
| import "testing" | |
| func createSource(b *testing.B) []int { | |
| source := make([]int, b.N) | |
| for i := range source { | |
| source[i] = i | |
| } | |
| b.ResetTimer() |
| import logging | |
| import ops.charm | |
| import ops.framework | |
| class MySQLNRPEClient(os.framework.Object): | |
| _stored = ops.framework.StoredState() | |
| def __init__(self, charm, relation_name: str): |
| "options": | |
| "extra_packages": | |
| "description": > | |
| Space separated list of extra deb packages to install. | |
| "type": "string" | |
| "default": "" | |
| "package_status": | |
| "default": "install" | |
| "type": "string" | |
| "description": > |
You can run this with: go build -flags chaos and go build
And then run it (./chaostest)