Beispiel #1
0
def getPersons(ignore):
    """Uses the GET on people:people resource to get all persons in the store using RESTCONF

    <note>
        This also returns the dummy entry created for routed RPC
        with personId being user0
    </note>
    """
    resp = util.get(settings.getPersonsUrl(), "admin", "admin")
    print(resp)
    return resp
Beispiel #2
0
def getPersons(ignore):
    """Uses the GET on people:people resource to get all persons in the store using RESTCONF

    <note>
        This also returns the dummy entry created for routed RPC
        with personId being user0
    </note>
    """
    resp = util.get(settings.getPersonsUrl(), "admin", "admin")
    print(resp)
    return resp
def deleteAllPersons(ignore):
    util.delete(settings.getPersonsUrl(),"admin","admin")
    resp = getPersons(ignore)
    print("Persons in store after deletion:"+ str(resp))
def getPersons(ignore):
    resp = util.get(settings.getPersonsUrl(),"admin","admin")
    print (resp)
    return resp
Beispiel #5
0
def deleteAllPersons(ignore):
    """delete all persons in the store using RESTCONF"""
    util.delete(settings.getPersonsUrl(), "admin", "admin")
    resp = getPersons(ignore)
    print("Persons in store after deletion:" + str(resp))
Beispiel #6
0
def deleteAllPersons(ignore):
    """delete all persons in the store using RESTCONF"""
    util.delete(settings.getPersonsUrl(), "admin", "admin")
    resp = getPersons(ignore)
    print("Persons in store after deletion:" + str(resp))
Beispiel #7
0
def deleteAllPersons(ignore):
    util.delete(settings.getPersonsUrl(), "admin", "admin")
    resp = getPersons(ignore)
    print("Persons in store after deletion:" + str(resp))
Beispiel #8
0
def getPersons(ignore):
    resp = util.get(settings.getPersonsUrl(), "admin", "admin")
    print(resp)
    return resp