def test_get_schema(self):
     schema = dictify(QdSchema().dump())
     got = self.node.call(
         self.node.request(operation="GET-JSON-SCHEMA",
                           identity="self")).body
     self.assertEqual(schema, dictify(json.loads(got)))
     got = self.node.call(
         self.node.request(operation="GET-SCHEMA", identity="self")).body
     self.assertEqual(schema, got)
Exemplo n.º 2
0
 def __init__(self):
     super(ManPageWriter, self).__init__(sys.stdout, QdSchema())
Exemplo n.º 3
0
 def test_get_schema(self):
     schema = dictify(QdSchema().dump())
     actual = self.run_qdmanage("get-json-schema")
     self.assertEqual(schema, dictify(json.loads(actual)))
     actual = self.run_qdmanage("get-schema")
     self.assertEqual(schema, dictify(json.loads(actual)))
Exemplo n.º 4
0
    def __init__(self):
        self.schema = QdSchema()
        self.prefix = ['qd_schema']

        self.generate_enums()
 def test_ssl(self):
     """Simple test for SSL connection. Note system_tests_qdstat has a more complete SSL test"""
     url = Url(self.router_1.addresses[1], scheme="amqps")
     schema = dictify(QdSchema().dump())
     actual = self.run_qdmanage("GET-JSON-SCHEMA")
     self.assertEquals(schema, dictify(json.loads(actual)))
Exemplo n.º 6
0
def main():
    """Generate schema markdown documentation from L{QdSchema}"""
    BookSchemaWriter(sys.stdout, QdSchema()).run()
Exemplo n.º 7
0
def main():
    """Generate Jinja2 qdrouterd.conf template"""
    if args.output is not None:
        sys.stdout = open(args.output, 'w')

    Jinja2Writer(sys.stdout, QdSchema(), defaults=args.defaults).entity_types_extending("configurationEntity")