generated from Luis/nextjs-python-web-template
added c2 and more services +4 resolve git problem
This commit is contained in:
@@ -84,125 +84,6 @@ def test_producer(api: TestClient) -> None:
|
||||
# get_request = "entity_did=did%3Asov%3Atest%3A1234"
|
||||
make_test_post_and_get(api, request_body, paramter)
|
||||
|
||||
def test_producer2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d1",
|
||||
"service_name": "Luis'''s Fax",
|
||||
"service_type": "Fax",
|
||||
"endpoint_url": "http://127.0.0.1:8001",
|
||||
"status": "unknown",
|
||||
"other": {"faxen": "dicke"},
|
||||
"entity_did": default_entity_did2,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did="+url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
def test_producer3(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d2",
|
||||
"service_name": "Erdem'''s VR-Stream",
|
||||
"service_type": "VR-Stream",
|
||||
"endpoint_url": "http://127.0.0.1:8002",
|
||||
"status": "unknown",
|
||||
"other": {"oculos": "rift"},
|
||||
"entity_did": default_entity_did3,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did="+url.quote(default_entity_did3)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_producer4(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d3",
|
||||
"service_name": "Onur'''s gallary",
|
||||
"service_type": "gallary",
|
||||
"endpoint_url": "http://127.0.0.1:8003",
|
||||
"status": "unknown",
|
||||
"other": {"nice": "pics"},
|
||||
"entity_did": default_entity_did4,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did="+url.quote(default_entity_did4)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_producer5(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d4",
|
||||
"service_name": "Sara'''s Game-Shop",
|
||||
"service_type": "Game-Shop",
|
||||
"endpoint_url": "http://127.0.0.1:8004",
|
||||
"status": "unknown",
|
||||
"other": {"war": "games"},
|
||||
"entity_did": default_entity_did5,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did="+url.quote(default_entity_did5)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
|
||||
def test_producer2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d1",
|
||||
"service_name": "Luis'''s Fax",
|
||||
"service_type": "Fax",
|
||||
"endpoint_url": "http://127.0.0.1:8001",
|
||||
"status": "unknown",
|
||||
"other": {"faxen": "dicke"},
|
||||
"entity_did": default_entity_did2,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_producer3(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d2",
|
||||
"service_name": "Erdem'''s VR-Stream",
|
||||
"service_type": "VR-Stream",
|
||||
"endpoint_url": "http://127.0.0.1:8002",
|
||||
"status": "unknown",
|
||||
"other": {"oculos": "rift"},
|
||||
"entity_did": default_entity_did3,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did3)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_producer4(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d3",
|
||||
"service_name": "Onur'''s gallary",
|
||||
"service_type": "gallary",
|
||||
"endpoint_url": "http://127.0.0.1:8003",
|
||||
"status": "unknown",
|
||||
"other": {"nice": "pics"},
|
||||
"entity_did": default_entity_did4,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did4)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_producer5(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d4",
|
||||
"service_name": "Sara'''s Game-Shop",
|
||||
"service_type": "Game-Shop",
|
||||
"endpoint_url": "http://127.0.0.1:8004",
|
||||
"status": "unknown",
|
||||
"other": {"war": "games"},
|
||||
"entity_did": default_entity_did5,
|
||||
}
|
||||
paramter = "producer"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did5)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
#########################
|
||||
# #
|
||||
@@ -219,26 +100,6 @@ def test_consumer(api: TestClient) -> None:
|
||||
# get_request = "entity_did=did%3Asov%3Atest%3A1234"
|
||||
make_test_post_and_get(api, request_body, paramter)
|
||||
|
||||
def test_consumer2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"entity_did": default_entity_did2,
|
||||
"producer_uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d4",
|
||||
"other": {"war": "games"},
|
||||
}
|
||||
paramter = "consumer"
|
||||
get_request = "entity_did="+url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
def test_consumer2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"entity_did": default_entity_did2,
|
||||
"producer_uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d4",
|
||||
"other": {"war": "games"},
|
||||
}
|
||||
paramter = "consumer"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
#########################
|
||||
# #
|
||||
@@ -317,67 +178,6 @@ def test_repository5(api: TestClient) -> None:
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
|
||||
def test_repository2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d1",
|
||||
"service_name": "Luis'''s Fax",
|
||||
"service_type": "Fax",
|
||||
"endpoint_url": "http://127.0.0.1:8001",
|
||||
"status": "unknown",
|
||||
"other": {"faxen": "dicke"},
|
||||
"entity_did": default_entity_did2,
|
||||
}
|
||||
paramter = "repository"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_repository3(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d2",
|
||||
"service_name": "Erdem'''s VR-Stream",
|
||||
"service_type": "VR-Stream",
|
||||
"endpoint_url": "http://127.0.0.1:8002",
|
||||
"status": "unknown",
|
||||
"other": {"oculos": "rift"},
|
||||
"entity_did": default_entity_did3,
|
||||
}
|
||||
paramter = "repository"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did3)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_repository4(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d3",
|
||||
"service_name": "Onur'''s gallary",
|
||||
"service_type": "gallary",
|
||||
"endpoint_url": "http://127.0.0.1:8003",
|
||||
"status": "unknown",
|
||||
"other": {"nice": "pics"},
|
||||
"entity_did": default_entity_did4,
|
||||
}
|
||||
paramter = "repository"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did4)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
def test_repository5(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"uuid": "8e285c0c-4e40-430a-a477-26b3b81e30d4",
|
||||
"service_name": "Sara'''s Game-Shop",
|
||||
"service_type": "Game-Shop",
|
||||
"endpoint_url": "http://127.0.0.2:8004",
|
||||
"status": "unknown",
|
||||
"other": {"war": "games"},
|
||||
"entity_did": default_entity_did5,
|
||||
}
|
||||
paramter = "repository"
|
||||
get_request = "entity_did=" + url.quote(default_entity_did5)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
|
||||
|
||||
#########################
|
||||
# #
|
||||
# Entity #
|
||||
@@ -395,10 +195,7 @@ def test_entity(api: TestClient) -> None:
|
||||
# get_request = "entity_did=did%3Asov%3Atest%3A1234"
|
||||
make_test_post_and_get(api, request_body, paramter)
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> 09d0c28fd676dd8bb9ce583fc690d405aef9b788
|
||||
def test_entity2(api: TestClient) -> None:
|
||||
request_body = {
|
||||
"did": default_entity_did2,
|
||||
@@ -408,10 +205,5 @@ def test_entity2(api: TestClient) -> None:
|
||||
"other": {"test": "test"},
|
||||
}
|
||||
paramter = "entity"
|
||||
<<<<<<< HEAD
|
||||
get_request = "entity_did=" + url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
=======
|
||||
get_request = "entity_did="+url.quote(default_entity_did2)
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
>>>>>>> 09d0c28fd676dd8bb9ce583fc690d405aef9b788
|
||||
make_test_post_and_get(api, request_body, paramter, get_request)
|
||||
Reference in New Issue
Block a user