Commit e6b18bb5 authored by Pablo Viñals's avatar Pablo Viñals
Browse files

updated tests

parent e8a2d701
......@@ -25,10 +25,10 @@ client = mqtt.Client(client_id="test")
client.on_connect = on_connect
client.on_message = on_message
client.connect("127.0.0.1", 1883, 60)
client.connect("lab.cluster.gsi.dit.upm.es", 31883, 60)
topic = "com/example/testing"
topic = "com/mqtt/event"
obj = {
"kwargs" : {
......
......@@ -4,7 +4,7 @@ import requests
def test_EventoMalEscrito():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -32,7 +32,7 @@ def test_EventoMalEscrito():
# assert code == 'wamp.error.runtime_error'
def test_AllOK1():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -48,7 +48,7 @@ def test_AllOK1():
assert code == 1
def test_AllOK2():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......
......@@ -4,7 +4,7 @@ import requests
def test_EventoMalEscrito():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -17,7 +17,7 @@ def test_EventoMalEscrito():
assert code == 'wamp.error.runtime_error'
def test_AllOK1():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......
......@@ -4,7 +4,7 @@ import requests
def test_EventoMalEscrito1():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedures'] = 'com.channel.wifi'
data['kwargs'] = {
......@@ -17,7 +17,7 @@ def test_EventoMalEscrito1():
assert code == 400
def test_EventoMalEscrito2():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedures'] = 'com.channel.wifi'
data['args'] = {}
......@@ -31,7 +31,7 @@ def test_EventoMalEscrito2():
assert code == 400
def test_EventoMalEscrito3():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedures'] = 'com.channel.wifi'
data['argsa'] = {}
......@@ -46,7 +46,7 @@ def test_EventoMalEscrito3():
def test_BadURL():
url = "http://127.0.0.1:8082/publish"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/publish"
data = {}
data['procedure'] = 'com.channel.wifi'
data['kwargs'] = {
......@@ -59,7 +59,7 @@ def test_BadURL():
assert code == 400
def test_BadURL():
url = "http://127.0.0.1:8088/call"
url = "http://ewecrossbar.cluster.gsi.dit.upn.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -75,7 +75,7 @@ def test_BadURL():
assert variable
def test_AllOK1():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -91,7 +91,7 @@ def test_AllOK1():
assert code == 1
def test_AllOK2():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......
......@@ -4,7 +4,7 @@ import requests
def test_EventoMalEscrito():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -18,7 +18,7 @@ def test_EventoMalEscrito():
assert code == 'wamp.error.runtime_error'
def test_ParamsNotIntegers():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -33,7 +33,7 @@ def test_ParamsNotIntegers():
def test_EventNotKnown():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -46,7 +46,7 @@ def test_EventNotKnown():
assert code == 'wamp.error.runtime_error'
def test_AllOK1():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......
......@@ -7,7 +7,7 @@ import time
def test_EventoMalEscrito():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -20,7 +20,7 @@ def test_EventoMalEscrito():
assert code == 'wamp.error.runtime_error'
def test_EventNotKnown():
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -35,7 +35,7 @@ def test_EventNotKnown():
def test_AllOK1():
time.sleep(10)
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......@@ -52,7 +52,7 @@ def test_AllOK1():
def test_AllOK2():
time.sleep(2)
url = "http://127.0.0.1:8082/call"
url = "http://ewecrossbar.cluster.gsi.dit.upm.es/call"
data = {}
data['procedure'] = 'com.channel.event'
data['kwargs'] = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment