drogue-iot / drogue-cloud-testing Goto Github PK
View Code? Open in Web Editor NEWSystem tests for Drogue Cloud
Home Page: https://drogue-iot.github.io/drogue-cloud-testing/
License: Apache License 2.0
System tests for Drogue Cloud
Home Page: https://drogue-iot.github.io/drogue-cloud-testing/
License: Apache License 2.0
Currently we create some resources, but have issues cleaning them up properly. This is due to different idea of different creates we use for testing.
Test dependencies are:
rstest
โ For parametrized teststest-context
โ For managing test stateHowever, rstest
and test-context
conflict. Also see: la10736/rstest#94
Resources are:
drg
Some of the resources are managed async, and need to be cleaned up async. Some of them are managed sync.
Cleaning up via Drop would be ok, but Drop is tricky to use with async. But this is how we currently clean up the WebDriver, to ensure that it is freed.
One way to deal with this could be to create some kind of Resource<T>
wrapper, which you can explicitly drop/destroy. But which is also registered with the test context, to schedule cleanup for the end of the test. When using the test-context
crate, this could automatically be cleaned up (async). However, when using rstest
based tests, this doesn't work.
Ideally, we would find a way to combine rstest
and test-context
.
We don't really use that anymore. So drop it, and reduce the build time by a few seconds.
Also run the tests using Minikube.
For this we need nested virtualization, which currently doesn't seem to be supported by most cloud providers.
Websockets
App administration (console)
HTTP Endpoint:
MQTT Endpoint:
Currently there seems to exist no functionality to get the test name that is currently being processed. This however should be used to prefix things like filenames of screenshots.
One proposal I saw is to create a test wrapper (using a macro) which injects this into the test being run. This could be done using "thread local", to somehow inject this into the TestContext
that we have anyway. So it would be available throughout the test.
I guess the fact that we are using async tests might make this a bit more complicated though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.