- Mar 30, 2021
-
-
Karel Koci authored
Originally mterm was using just semicolon but bare semicolon is invalid in shell so it prints error. This instead passes decision of command to be used to specific Cli implementations.
-
Karel Koci authored
The nsfarm library tools can be invoked by: python3 -m nsfarm This is pretty simple but it is not directly visible, the documentation has to be investigated to found this out, as well as not exactly short. Having this short script should do us no harm.
-
Karel Koci authored
This should prevent hopefully failures when network is not yet up in the client container.
-
Karel Koci authored
It tests only if hardware type is correctly reported and if appropriate serial number is returned. This adds new requirement for configuration and that is serial number. We need this to verify that crypto-wrapper correctly returns appropriate number.
-
Karel Koci authored
This improves XML and HTML reports. It is minor expansion with required info: tested branch and target.
-
Karel Koci authored
The only possible execution right now is with serial and wan present. In reality we need lan1 as well but we have to get around that because CPU only Mox. This simply removes parameters and marks for appropriate fixtures. The effect is just less marks as well as better tests reports as they no longer report None parameters.
-
Karel Koci authored
It seems that pytest_html is now included automatically and including it second time here produces warning.
-
Karel Koci authored
This reduces user's overhead to launch tests. It uses targets filtering. This makes target specification optional. At the moment user can specify that he wants to run tests on specific board. In the future we should add filters for additional configured board features, such as presence of Wi-Fi cards or USB storage device.
-
Karel Koci authored
This not only moves target config parsing to nsfarm library but also it changes it to be implementation defined not just access to configparser.
-
- Mar 29, 2021
-
-
Karel Koci authored
This should suppress mod of the day and other messages just to make logs little bit less duplicate.
-
Karel Koci authored
-
- Mar 18, 2021
-
-
Karel Koci authored
The current tests check if appropriate profiles exists but not if they actually work. The nsfarm-root has to work when container at least starts. The problem is with nsfarm-internet. It is required to test if it is possible to access the Internet or not with that profile. That is exactly what this test does.
-
- Mar 17, 2021
-
-
Karel Koci authored
This should have been is_symlink as it checks for symlinks.
-
- Mar 16, 2021
-
-
Karel Koci authored
There was for some reason condition that only directories are listed when image hash is generated. In reality the code was prepared to handle any path and should include all paths. This removes this invalid condition and makes it so all files provided for image are included in hash calculation. This in effect makes it so new image build is triggered on any file modification.
-
- Feb 25, 2021
-
-
Karel Koci authored
The Python PEP8 specifies that exceptions should be named *Error so this renames the exceptions to match that.
-
Karel Koci authored
This is just test that checks that we have all required devices on host system. These devices are optional and additional modules are requires to be installed and loaded to kernel. At the moment only the /dev/ppp is tested there.
-
Karel Koci authored
There is change that adds device exclusivity. Only for few devices we need exclusive passtrough to container. In most cases it is enough to pass only access to that device. Another change is that there is possibility to specify parameter for images. At the moment this allows only passtrough of Unix character devices but that can be expanded in the future.
-
Karel Koci authored
The arguments of Container class changed but they were not updated here.
-
Karel Koci authored
-
Karel Koci authored
The micro terminal is minimal connection between terminal and socket. This way it can be hooked up to any socket in nsfarm and thus allowing the direct access for CLI interfaces. The primary use is to access board's serial console. This replaces serial_miniterm with simpler and more generic implementation.
-
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.
-