Giter Club home page Giter Club logo

drogue-cloud-testing's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

drogue-cloud-testing's Issues

Improve resource cleanup

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 tests
  • test-context โ€“ For managing test state

However, rstest and test-context conflict. Also see: la10736/rstest#94

Resources are:

  • WebDriver instance
  • Applications and devices created using drg
  • Applications and devices created using the API

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.

Add system tests for Minikube

Also run the tests using Minikube.

For this we need nested virtualization, which currently doesn't seem to be supported by most cloud providers.

missing tests

Websockets

  • stream data for an app works
  • with bearer token
  • with api key
  • with bearer token passed as a query parameter
  • stream data without read permission fails
  • stream data as anonymous permission fails
  • stream data as anonymous for a public app works

App administration (console)

  • Transfer an app works
  • Decline an app transfer works (owner and new owner)
  • Cancel an app transfer as another user fails
  • Add members to app
  • Add members that does not exist fail
  • Add members as non owner fails

HTTP Endpoint:

  • X.509 client certificates

MQTT Endpoint:

  • X.509 client certificates

Use "test name" in filenames like screenshots

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.