1. 13 Oct, 2021 1 commit
  2. 24 Sep, 2021 1 commit
    • Karel Koci's avatar
      tests/reforis: add guide tests · abd6b85f
      Karel Koci authored
      These are simple "click trough" tests of reForis guide.
      It only ensures that we can correctly pass through guide. The tests of
      dialogues we are passing trough should be implemented.
  3. 03 Aug, 2021 1 commit
    • Karel Koci's avatar
      nsfarm/web: add Selenium container class · 335126c4
      Karel Koci authored
      This implements dedicated Selenium container class as an extension to
      LXD Container. This class provides easy access to Selenium drivers for
      selected browser.
      The special hack in Selenium extended Container class is that it is able
      to run vncviewer on its start. This is controlled by class variable that
      can be set for nsfasrm run. This way developer can select to see what is
      happening on virtual desktop browsers are spawned to.
      With all this there is also need to store some screenshots as part of
      failed or even standard execution of tests. The screenshot fixture was
      created for this purpose. It hides some ugliness of screenshot saving.
      Minor but notable tweak here is addition of shell property to
      container. The idea is to prevent spawning of multiple one-time use
      shells we do for wait commands. The regular usage for testing is
  4. 15 Apr, 2021 1 commit
  5. 13 Apr, 2021 2 commits
    • Karel Koci's avatar
      selftests/target: improve check for interface being up · 1d74c1dc
      Karel Koci authored
      This changes check from carrier being up to just interface being up.
      That is actually the correct check we want to do. The carrier might be
      down if we are connected directly to board (not trough switch) and thus
      this test might fail even if everything is all right. In reality we want
      to check that interface is set to be up and thus is going to be up once
      carrier is up. This information is encoded in flags as lowest bit (this
      was discovered by checking flag value rather not from documentation). So
      this test now only checks if this bit is set or not.
    • Karel Koci's avatar
      nsfarm/lxd: remove exclusive devices and define all devices in image · 4f971f15
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      This removes concept of exclusive device. The only use of it was to pass
      exclusive access to network interface but that is not essentially
      required as it is even more versatile to use macvlan as thus we can
      easily spawn multiple containers to simulate network.
      The only known use for physical device pass trough and thus exclusive is
      Wi-Fi. It won't be possible to use macvlan for it. At the same time this
      is not an issue as it is not expected that we are going to be reusing
      this interface in single tests run multiple times over and over. In the
      end there is no need to automatically suspend containers to steal
      devices as it has been implemented (and in reality not finished).
      The introduced device management now required all devices to be defined
      in image as attributes. This gives image definition control over name of
      this device in container. It is up to container user to assign
      appropriate real device for it. This is done using device map that is
      simply pair of attribute and real device specifier. This concept can be
      in future expanded to even encode additional configuration if have need
      for it.
  6. 18 Mar, 2021 1 commit
    • Karel Koci's avatar
      selftests/lxd: add simple ping test for LXD container · 74051ebe
      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.
  7. 25 Feb, 2021 2 commits
    • Karel Koci's avatar
      nsfarm/lxd: rename exceptions · 0c9574a3
      Karel Koci authored
      The Python PEP8 specifies that exceptions should be named *Error so this
      renames the exceptions to match that.
    • Karel Koci's avatar
      selftests: check if devices are on system · e9f4a095
      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.
  8. 15 Jul, 2020 2 commits