diff --git a/apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/trigger_controller_test.exs b/apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/trigger_controller_test.exs index 31690e3dd..a379f93aa 100644 --- a/apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/trigger_controller_test.exs +++ b/apps/astarte_realm_management_api/test/astarte_realm_management_api_web/controllers/trigger_controller_test.exs @@ -19,12 +19,16 @@ defmodule Astarte.RealmManagement.APIWeb.TriggerControllerTest do use Astarte.RealmManagement.APIWeb.ConnCase + alias Astarte.RealmManagement.API.JWTTestHelper + alias Astarte.RealmManagement.Mock + @create_attrs %{} @invalid_attrs %{} @test_realm "test" setup %{conn: conn} do + Mock.DB.put_jwt_public_key_pem(@test_realm, JWTTestHelper.public_key_pem()) {:ok, conn: put_req_header(conn, "accept", "application/json")} end diff --git a/apps/astarte_trigger_engine/test/amqp_consumer/amqp_consumer_tracker_test.exs b/apps/astarte_trigger_engine/test/amqp_consumer/amqp_consumer_tracker_test.exs index 4dbc1a11d..3357406ff 100644 --- a/apps/astarte_trigger_engine/test/amqp_consumer/amqp_consumer_tracker_test.exs +++ b/apps/astarte_trigger_engine/test/amqp_consumer/amqp_consumer_tracker_test.exs @@ -83,6 +83,7 @@ defmodule Astarte.TriggerEngine.AMQPConsumer.AMQPConsumerTrackerTest do # make sure we update the consumer list without waiting for the update timeout AMQPConsumerTracker.handle_info(:update_consumers, []) + Process.sleep(3000) assert Enum.member?( Registry.select(Registry.AMQPConsumerRegistry, [{{:"$1", :_, :_}, [], [:"$1"]}]), @@ -93,6 +94,7 @@ defmodule Astarte.TriggerEngine.AMQPConsumer.AMQPConsumerTrackerTest do # make sure we update the consumer list without waiting for the update timeout AMQPConsumerTracker.handle_info(:update_consumers, []) + Process.sleep(3000) assert not Enum.member?( Registry.select(Registry.AMQPConsumerRegistry, [{{:"$1", :_, :_}, [], [:"$1"]}]), diff --git a/doc/pages/tutorials/010-astarte_in_5_minutes.md b/doc/pages/tutorials/010-astarte_in_5_minutes.md index ad448db61..1fc90a273 100644 --- a/doc/pages/tutorials/010-astarte_in_5_minutes.md +++ b/doc/pages/tutorials/010-astarte_in_5_minutes.md @@ -1,7 +1,5 @@ # Astarte in 5 minutes -**This documentation page describes a development version, for production systems please use the [stable version](https://docs.astarte-platform.org/latest) instead.** - This tutorial will guide you through bringing up your Astarte instance, creating a realm and streaming your first data from a device simulator (or a real device) before your cup of tea is ready. ## Before you begin