14 Commits

Author SHA1 Message Date
Sergio Cazzolato
fe6e39a2bc tests: more details in spread tests - part 13 (#13924)
* Adding more details to tests - part 13

* Add more details

* adding more tests

* Update tests/main/debs/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/debug-sandbox/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/econnreset/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/health/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/snap-validate-enforce/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/snap-validate-with-store/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/debug-paths/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/default-tracks/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

* Update tests/main/enable-disable/task.yaml

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>

---------

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
2024-05-02 08:14:13 -03:00
Sergio Cazzolato
0cb47dc25b tests: update the tests to start using tests.systemd tool instead of systemd.sh (#12704)
* Update the tests to start using tests.systemd tool instead of systemd.sh helper

This is the second part of the migration from systemd.sh helper to
tests.systemd tool

* fix names of stop-unit command

* fix op-remove-retry test
2023-06-20 10:49:02 -03:00
Sergio Cazzolato
04b9a60d1a New subcommand names and small improvements 2020-07-06 15:36:36 -03:00
Sergio Cazzolato
374fa404c2 Moving journalctl.sh to a new journal-state tool 2020-07-03 01:21:05 -03:00
Michael Vogt
0d7619e00f tests: review/fix the autopkgtest failures in disco
* tests: skip proxy test if https{,s}_proxy is set

The tinyproxy in the proxy test uses socket.socket(AF_INET) to connect
o the target for https and on systems that do not allow direct
connections to the outside world 443 port this will fail.

* tests: skip network-retry if http{,s}_proxy is set

The network-retry test may fail when http_proxy is set because
 it breaks DNS for the test. However if the proxy is available
and defined via an IP instead of a DNS name the test will not
work because the DNS is bypassed.

* tests: skip snap-service-watchdog in autopkgtest

Skip autopkgtest as this test is timing dependent and ADT is often
very slow.

Also fixes a incorrect print in the watchdog service binary:

   lib/snaps/test-snapd-service-watchdog/bin/direct

which lead to misleading:
```
Jan 09 20:28:55 autopkgtest test-snapd-service-watchdog.direct-watchdog-ok[21555]: INFO:root:watchdog notification every 0s
output
```

* address review feedback (thanks to John)

* test: review feedback for network-retry (thanks to mborzecki)

* tests: do not run some tests in autopkgtest

We get timeouts in autopkgtest on amd64 currently so this disables
some of the slower running tests in this environment. The real
issue is that the cloud that runs the autopkgtest is slow dues to
overcommitment it seems. But this is a reasonable workaround for
now.

* tests: re-enable install-store in ADT, disable snapctl-services/nfs-support
2019-01-10 20:54:56 +01:00
Michael Vogt
9fd4fca7c7 tests: make tinyproxy support systemd notify
The tinyproxy has a bit of a startup delay (python init and all that).
This means that sometimes in tests the proxy is not fully ready when
the test tries to talk to it. This PR makes the proxy a "notify"
service that only notifies after the proxy is ready.
2018-11-20 07:25:11 +01:00
Michael Vogt
3273d51019 tests: add test to ensure proxy is used even without core
We got a bugreport (LP: 1791587) that the proxy.http setting is
not honored in snapd on classic systems when no core is installed.

This PR adds a test to ensure this works.
2018-10-29 17:43:00 +01:00
Michael Vogt
b0191a43a7 fix typo, modernize python 2018-09-06 10:28:54 +02:00
Michael Vogt
2e81bd8766 tests: do not run proxy test on 14.04 (lacks systemd-run) 2018-09-06 08:40:42 +02:00
Michael Vogt
89c85c7b2a tests: only run proxytest if python3 is available 2018-09-06 07:54:00 +02:00
Michael Vogt
9b13a48272 fix proxy test 2018-09-05 21:57:35 +02:00
Michael Vogt
a0f0400711 tests: port proxy test to use python tinyproxy 2018-09-05 18:23:41 +02:00
Michael Vogt
22d0804184 address review feedback (thanks zyga!) 2018-08-22 19:27:02 +02:00
Michael Vogt
e334109a9b tests: add proxy test 2018-08-22 07:46:55 +02:00