RubyDevInc / paho.mqtt.ruby

Eclipse Public License 1.0
31 stars 19 forks source link

Failing tests #23

Closed arizz96 closed 6 years ago

arizz96 commented 6 years ago

I noticed that the majority of tests of this lib are failing. Is it just a problem of mine or are they currently broken?

PahoMqtt::Client
  From scratch
    Initialize the client with default parameter
    Initialize the client paramter
    when ssl option is set to true
      assigns ssl option
      creates new ssl context
  Configure ssl context
    Set up a ssl context with key and certificate
    Set up an ssl context with key, certificate and rootCA
  With a defined host
    Connect with unencrypted mode (FAILED - 1)
    Connect with encrypted mode with Certificate Authority (FAILED - 2)
    Connect with encrypted mode (FAILED - 3)
    Connect and verify the on_connack callback (FAILED - 4)
    Automaticaly disconnect after the keep alive run out on not persistent mode (FAILED - 5)
  Already connected client
    Subscribe to valid topic and return success (FAILED - 6)
    Subscribe to a topic and update the subscribed topic (FAILED - 7)
    Subscribe to a topic and verifiy the on_suback callback (FAILED - 8)
    Try to subscribe to an empty topic (FAILED - 9)
    Unsubscribe from a valid topic (FAILED - 10)
    Unsubscribe and check if the subscribed topics have been updated (FAILED - 11)
    Try to unsubscribe from an empty topic (FAILED - 12)
    Try to unsubscribe to topic with invalid qos (FAILED - 13)
    Publish a packet to a valid topic (FAILED - 14)
    Publish to a topic and verify the on_message callback (FAILED - 15)
    Publish a packet to an invalid topic (FAILED - 16)
    Publish to a topic and verify the callback registered for a specific topic (FAILED - 17)
    Publish to topic and verify the callback registered for a wildcard (FAILED - 18)
    Publish to a subscribed topic where callback is removed (FAILED - 19)
    Publish with qos 1 to subcribed topic and verfiy the on_puback callback (FAILED - 20)
    Publish with qos 2 to subcribed topic and verfiy the on_pubrec, on_pubrel and on_pubcomp callback (FAILED - 21)
  Already connected client on persistent mode
    Automatically try to reconnect after a unexpected disconnect on persistent mode (FAILED - 22)
    Automatically resubscribe after unexpected disconnect (FAILED - 23)
p-goudet commented 6 years ago

Currently the spec require to run a message broker on localhost which is listen on port 8883 with SSL enabled.