freifunk-berlin / falter-builter

build falter images using precompiled openwrt imagebuilders.
6 stars 6 forks source link

Add VM and wizard-tester for automated testing #148

Closed pktpls closed 9 months ago

pktpls commented 12 months ago

This adds a script for cheap, fast, rootless Falter VMs. It also merges https://github.com/akira25/wizard-tester, which has the beginnings of automated end-to-end tests with Selenium and headless Firefox.

To start the container and VM, and run wizard-tester:

> ./test/vm.sh foobar
...
Please press Enter to activate this console.
...
[    6.957714] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

# in another shell:
> podman -v
podman version 4.5.1
> podman exec -it foobar bash -c 'cd /vmdir/builter-test && ./wizard-tester.py node_example.json'
...

It eventually fails on the Mesh IP page, but that's okay for now.

Akira25 commented 11 months ago

This branch cannot be rebased automatically due to conflicts. Can you resolven them, please?

pktpls commented 9 months ago

This branch cannot be rebased automatically due to conflicts. Can you resolven them, please?

Unfortunately, subtree merges can't be rebased and need to be rebuilt manually, which I already did once, and I'd like to do it only once more :)

Please review, I'll rebuild the subtree merge right before merging.

pktpls commented 9 months ago

I'll also take care of the linters