- Feb 25, 2021
-
-
Karel Koci authored
It turns out that nonblocking doesn't mean nonblocking in all cases. In this case when there was no input the read was blocking. The timeout set to zero solves this.
-
Karel Koci authored
This now not only makes sense becuase we have live logging it also fixes TODO pointed there, we just wait for file to appear (syslog-ng to start).
-
Karel Koci authored
-
Problem with logging trough pexpect is that we log output only when we expect it. That is when we access it trough pexpect. This means that time and synchronization when logs arrive from multiple sources can't be archived and only one source logs at the time (the one that is used currently by pexpect). This is not ideal as we are interested in situation such as restarting network interfaces that produce some logs not only on router but also in container at the same time. Synchronization on time bases in such cases is important and we can't wait for code to call pexpect to print it to logs later on. This instead utilizes sockets and by reading source immediately and just passing it to socket.
-
- Feb 22, 2021
-
-
Karel Koci authored
-
- Jan 07, 2021
-
-
Karel Koci authored
Upstream seem to have fixed invalid init script in iperf3-openrc package so now this hack is no longer required.
-
Karel Koci authored
Yeah it provides dict with fields where we are interested in name. The rest of the function does that correctly but one line does not.
-
Karel Koci authored
-
- Dec 22, 2020
-
-
Karel Koci authored
-
- Jul 16, 2020
-
-
Karel Koci authored
This replaces code that reads whole file and then updates content with function that reads file in limited chunks.
-
- Jul 15, 2020
-
-
Karel Koci authored
This is just initial minimal set of tests. Nothing big.
-
Karel Koci authored
This now separates image and container representation to two separate classes. For users it is almost the same but it makes structure of lxd module much better and improves overal readability of Container class.
-
Karel Koci authored
It was pretty nasty how original LXD connection was designed. It is ok to just wrap that to class and pass it around instead of calling connection from various locations just to be sure that all is initialized before we use it.
-
Karel Koci authored
-
Karel Koci authored
This is arguably better than raising NotImplementedError. It also catches inconsistencies much sooner.
-
Karel Koci authored
This is now only initial implementation. There should be also specification of board and more but that is going to be added later on once we are able to run tests on more than one board.
-
- Jul 14, 2020
-
-
Karel Koci authored
It is planned to have not only tests but also selftests and for that we do not need configuration. Those arguments are solely for real tests. Moving them to tests makes them required to only ten those tests.
-
Karel Koci authored
First network test in set was in some probability failing. This just adds dummy sleep to stabilize network before tests are executed. This also incorporates feedback from ongoing review.
-
- Jul 08, 2020
-
-
Karel Koci authored
This reuses WAN tests for LAN as well to check that clients are able to access internet trough router.
-
Karel Koci authored
Watchdog is not running immeediatelly after boot as it seems and also it is not essential for use at the moment to check for it.
-
Karel Koci authored
Some of the non-essential fixtures should be scoped not for session but for module only or even less because they can collide with other tests.
-
Karel Koci authored
These are simple tests to check system that was just booted.
-
Karel Koci authored
-
Karel Koci authored
Static method can't be used this way. The only other clean alternative is just changing it from method to function.
-
Karel Koci authored
Upper case are constants and we do not consider these as constants so we should not name them that way.
-
- Apr 29, 2020
-
-
Karel Koci authored
-
Karel Koci authored
-
- Oct 16, 2019
-
-
Jan Betik authored
Fix of typo nsfram vs nsfarm
-
- Oct 09, 2019
-
-
Karel Koci authored
-
Karel Koci authored
It makes no sense as we reset access rights either way. Let's just check if it is standard file and that is it.
-
Karel Koci authored
-
Karel Koci authored
-
- Oct 07, 2019
-
-
Karel Koci authored
-
Karel Koci authored
-
Karel Koci authored
-
Karel Koci authored
-
Karel Koci authored
-
Karel Koci authored
-
- Oct 04, 2019
-
-
Karel Koci authored
-
Karel Koci authored
-