Exemplo n.º 1
0
    def setUp(self):
        from buildbot.REST_API_buildbot import API
        API.config["DEBUG"] = True

        neo4j_login = neo4j_credentials_from_env()
        
        
        self.gdb = enhanced_GraphDatabase(**neo4j_login)
        self.P   = self.gdb.package
        self.API = API.test_client()
        self.flow_data1 = {"description": self.test_desc,
                           "label": "flow",
                           "status": 0.75,
                           "validation": "unittest",
                           "version": 0.2}
Exemplo n.º 2
0
http://neo4j-rest-client.readthedocs.org/en/latest/info.html

Implementing flows as a graph database.
'''

import os
from buildbot.graphDB import enhanced_GraphDatabase, hard_reset
from buildbot.utils import neo4j_credentials_from_env
from buildbot.package_manager import export_package_to_swagger

if __name__ == "__main__":

    neo4j_login = neo4j_credentials_from_env()
    
    # Reload the database
    gdb = enhanced_GraphDatabase(**neo4j_login)

    print export_package_to_swagger(gdb.package)
    exit()
    
    func = gdb.package.actions["pingme"]
    print func(name="travis")
    
    ###################################################################
    exit()
    hard_reset(gdb)

    f1 = gdb.add_node(flow(description = u"Install neo4j-rest-client"))
    f2 = gdb.add_node(flow(description = u"pip install neo4jrestclient"))
    f3 = gdb.add_node(flow(description = u"Install pip"))
    f4 = gdb.add_node(flow(description = u"sudo apt-get install pip"))
Exemplo n.º 3
0
 def setUp(self):
     self.gdb = enhanced_GraphDatabase(**neo4j_login)
Exemplo n.º 4
0
 def setUp(self):
     neo4j_login = neo4j_credentials_from_env()
     neo4j_login["buildbot_package"]= "packages/checkin/checkin.json"
     self.gdb = enhanced_GraphDatabase(**neo4j_login)
     self.func = self.gdb.package.actions["pingme"]