stratis-storage / stratisd-client-dbus Goto Github PK
View Code? Open in Web Editor NEWPython library for testing D-Bus layer of stratisd
License: Apache License 2.0
Python library for testing D-Bus layer of stratisd
License: Apache License 2.0
We have some very good reasons to do so: stratis-storage/stratis-cli#34
It would be nice to make it cleaner.
It generates a ManagedObjects class that it is not really well worked out. It is probably better to write out this class explicitly.
this could be useful, because tests that test just the D-Bus API could always just be run agains the sim engine.
Right now, all tests that require starting up the stratisd service are in the subdirectory dbus.
If our code is correct wrt. to stratisd API then all such errors will be caused by a a missing object path. Under that assumption, what should we do?
Pytest is hiding almost everything about the exception that is raised.
This can wait until the stratisd D-Bus implementation is a bit steadier.
The first step may just be to check that the introspection information is as expected on the properties.
The second is to check that a change actually causes the correct information to be emitted.
Almost all of the classes are dynamically generated from data in tables and almost all the data in these tables could be obtained from introspection data.
The only two exceptions are the input converters, which turn None or a value into an option tuple to put on the Dbus and the class which dynamically generates constants information. That class needs to read the GetManagedObjects result , not the introspect data.
Would the library without those two things be useful? Yes, absolutely.
Would like such tests to use property to get good redundancy values.
This is a low priority because there is not a lot of code and it works.
Could this be helpful...much else would be required.
Right now, all that is verified is signature.
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.