The purpose of this PR is to clearly separate the two classes of tests in the project.
Integration tests requires the interaction with an aws iot mqtt broker, while functional tests relies on a mqtt broker running in a docker container.
Using the build tags "integration" and "functional", respectively, we can clearly separate the code for the tests. Besides, we can run the proper global setup code (see TestMain in handlers_containers_functional_test.go) for the specific class of test we want to execute.
The purpose of this PR is to clearly separate the two classes of tests in the project.
Integration tests requires the interaction with an aws iot mqtt broker, while functional tests relies on a mqtt broker running in a docker container.
Using the build tags "integration" and "functional", respectively, we can clearly separate the code for the tests. Besides, we can run the proper global setup code (see
TestMain
inhandlers_containers_functional_test.go
) for the specific class of test we want to execute.