Files

105 lines
4.7 KiB
YAML
Raw Permalink Normal View History

summary: Run a smoke test on UC20 with encryption enabled
details: |
2020-04-16 15:01:37 -03:00
This test checks basic snapd commands on UC20 with secure boot and encryption enabled
systems: [ubuntu-20.04-64, ubuntu-20.04-arm-64]
execute: |
echo "Wait for the system to be seeded first"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap wait system seed.loaded"
tests/nested/core20/basic: wait for system to finish seeding SSH will become available before the system is done seeding, so we need to wait for that before trying to install snaps. Example failure: 2020-06-23 15:47:36 Error executing google-nested:ubuntu-20.04-64:tests/nested/core20/basic (jun231820-424078) : ----- + . /home/gopath/src/github.com/snapcore/snapd/tests/lib/nested.sh ++ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/systemd.sh ++ WORK_DIR=/tmp/work-dir ++ NESTED_VM=nested-vm ++ SSH_PORT=8022 ++ MON_PORT=8888 + echo 'Ensure '\''snap install'\'' works' Ensure 'snap install' works + execute_remote 'sudo snap install test-snapd-sh' + sshpass -p ubuntu ssh -p 8022 -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user1@localhost 'sudo snap install test-snapd-sh' Warning: Permanently added '[localhost]:8022' (ECDSA) to the list of known hosts. error: too early for operation, device not yet seeded or device model not acknowledged + true + echo 'Ensure '\''snap list'\'' works and test-snapd-sh snap is installed' Ensure 'snap list' works and test-snapd-sh snap is installed + MATCH test-snapd-sh + execute_remote 'snap list' + sshpass -p ubuntu ssh -p 8022 -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user1@localhost 'snap list' Warning: Permanently added '[localhost]:8022' (ECDSA) to the list of known hosts. grep error: pattern not found, got: Name Version Rev Tracking Publisher Notes snapd 2.45.1+git1525.g35f56da x1 - - snapd ----- Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-06-24 05:19:14 -05:00
echo "Wait for device initialisation to be done"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "retry --wait 5 -n 10 sh -c 'snap changes | MATCH \"Done.*Initialize device\"'"
2020-04-16 14:25:19 -03:00
echo "Ensure 'snap install' works"
# The install command could cause a ssh break, so || true is used
# and then we check the installation was completed successfully
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap install test-snapd-sh" || true
2020-04-16 14:25:19 -03:00
2020-04-16 15:01:37 -03:00
echo "Ensure 'snap list' works and test-snapd-sh snap is installed"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "snap list" | MATCH test-snapd-sh
2020-04-16 14:25:19 -03:00
echo "Ensure 'snap find' works"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "snap find test-snapd-sh" | MATCH ^test-snapd-sh
2020-04-16 14:25:19 -03:00
echo "Ensure 'snap info' works"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "snap info test-snapd-sh" | MATCH '^name:\ +test-snapd-sh'
2020-04-16 14:25:19 -03:00
echo "Ensure 'snap remove' works"
# The install command could cause a ssh break, so || true is used
# and then we check the removal was completed successfully
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap remove test-snapd-sh" || true
2020-04-16 14:25:19 -03:00
2020-04-16 15:01:37 -03:00
echo "Ensure 'snap list' works and test-snapd-sh snap is removed"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "! snap list test-snapd-sh"
echo "Ensure that recovery keys are not present in fresh install"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "test ! -f /var/lib/snapd/device/fde/recovery.key"
remote.exec "test ! -f /var/lib/snapd/device/fde/reinstall.key"
if os.query is-arm; then
exit 0
fi
# single key for ubuntu-data and ubuntu-save
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda4 |grep Key:" | wc -l)" = "1"
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda5 |grep Key:" | wc -l)" = "1"
echo "Ensure 'snap debug show-keys' works as root"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap recovery --show-keys" > show-keys.out
MATCH 'recovery:\s+[0-9]{5}-[0-9]{5}-[0-9]{5}-[0-9]{5}-[0-9]{5}-[0-9]{5}-[0-9]{5}-[0-9]{5}' < show-keys.out
# reinstall key is not generated anymore
# show-keys should be idempotent, so let's call it multiple times
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap recovery --show-keys" > show-keys-again.out
# outputs are identical
diff -u show-keys.out show-keys-again.out
# key files are present
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "test -f /var/lib/snapd/device/fde/recovery.key"
remote.exec "test ! -f /var/lib/snapd/device/fde/reinstall.key"
# and each partition has 2 keys now
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda4 |grep Key:" | wc -l)" = "2"
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda5 |grep Key:" | wc -l)" = "2"
echo "But not as user (normal file permissions prevent this)"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
if remote.exec "snap recovery --show-keys"; then
echo "snap recovery --show-keys should not work as a user"
exit 1
fi
# the remove API isn't exposed by snap recovery yet
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "sudo snap install --devmode --edge test-snapd-curl"
remote.exec "sudo test-snapd-curl.curl --unix-socket /run/snapd.socket -D- -d '{\"action\":\"remove\"}' http://localhost/v2/system-recovery-keys"
# keys were removed
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "test ! -f /var/lib/snapd/device/fde/recovery.key"
remote.exec "test ! -f /var/lib/snapd/device/fde/reinstall.key"
# back to having just one key
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda4 |grep Key:" | wc -l)" = "1"
test "$(remote.exec "sudo cryptsetup luksDump /dev/vda5 |grep Key:" | wc -l)" = "1"
echo "Check that the serial backed up to save is as expected"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec 'cat /var/lib/snapd/save/device/asserts-v0/serial/'"$(tests.nested get model-authority)"'/pc/*/active' >serial.saved
remote.exec snap model --serial --assertion >serial
cmp serial serial.saved
echo "Check that we go the install log after the transition to run mode"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "test -e /var/log/install-mode.log.gz"
echo "Transparently verify that the format is gzip"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "zcat /var/log/install-mode.log.gz" | MATCH 'installing a new system'
echo "Check that we go the timings after the transition to run mode"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "test -e /var/log/install-timings.txt.gz"
remote.exec "zcat /var/log/install-timings.txt.gz" > install-timings.txt
MATCH "Install the system" < install-timings.txt
MATCH "^seed" < install-timings.txt
MATCH "Mark system seeded" < install-timings.txt
MATCH "Setup system for run mode" < install-timings.txt
MATCH "ensure=install-system" < install-timings.txt
echo "Check seeding info"
tests: start using remote tools from snapd-testing-tools project in nested tests (#12074) * Start using remote tools in nested tests This change introduces the new tools for remote commands from the snapd-testing-tools project This change starts using the remote.exec which replaces the tests.nested exec and the remote.push by the tests.nested copy The new remote commands have the same implementation then the tests.nested but those include tests and are being used in other projects successfully. * fix inclusive wording * adding missing placeholder file * add binaries for remote tools * Fix how remote tools are linked * replace nested_exec by remote.exec * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 3b56339b88..fea2bac306 fea2bac306 fix shellcheck 0b5d8cfe51 fix wrong spelling 05fd783a65 Allow to use a custom config file for the remote configuration b438b3ef03 Skip remote tests on kinetic because no sshpass f323ee2c9c Add support for ubuntu 22.10 and remove 21.10 6fe0fa0e74 Fix shellcheck in tests.pkgs a1f7a72ce1 Add disable refresh 507f8bd7c7 improve refresh and wait-for for remote tools 5e7e210e52 Fix refresh_core_base function e798cb8cca Disable refreshes to make the full refresh e5a20b9945 initial wait for ssh before checking refreshes a20c608202 Adding more logs for refresh status and fix error waiting for ssh f57cd75f09 New default values for wait-for efdc966b7d More logs in remote refresh 83703b516d Both refreshes unified and more details in logs 32df7bfcc3 Reboot detection for refreshes cf7fea5f57 Improving remote.wait-for and remote.refresh tools 35b2afcd19 adding more logging for refresh and wait-for remote tools 20547c2347 New remote and systemd tools with tests (#30) b8eb20d069 Merge pull request #31 from snapcore/run-without-spread 5b8f214d03 Fix spelling 4fe5d64a5c Include a comment in the setup.sh script 03feb2ce2b fix bash error 84e70d2ac5 Make tools work when are not in the spread env 54909c304d Merge pull request #29 from snapcore/udpate-os-query-new-systems cc1729c2f4 preserve size for amazon-linux bb3d8db60e preserve size for centos d1089d5ce3 Fixing the tests 47793a6465 Fix auto-merge problem f50be4ac5e Merge branch 'main' into udpate-os-query-new-systems 1a40a224c9 os.query tool cli simplified 9b7b4e9bf1 Merge pull request #28 from snapcore/add-centos-9-support 7fe2087423 Add support for centos-9 64a830b933 Merge pull request #27 from snapcore/improve-log-analyzer 7fe27d4aea Improve log analyzer utility 207536268e Merge pull request #19 from snapcore/new-spread-manager 2f2ff2e282 Update spread manager to support csv 33a44ca3be Merge branch 'main' into new-spread-manager b4654950d4 Merge pull request #26 from snapcore/support-csv-for-expressions 3250bbd885 Support expressions with comma separation 2540135b90 Merge pull request #25 from snapcore/add-indent-to-log-parser 2536b0f070 Minor improvements in log-parser and log-analyzer based con review comments 84dc8092b1 Merge pull request #24 from snapcore/improve-log-parser 515770b3bf Add support for fedora-35 875c29b5ce Updated results with latest log-parser changes d27f2bcdb7 Fix log-parser b2cce1fcce fix wording 14d15e4fe4 Fixes for log-parser and changes for log analyzer 438d92d241 Log analyzer updated to support reexecute in all the scenarios 1c9dff58ff Merge pull request #23 from snapcore/improve-log-parser cc7ee488d1 Fix shellcheck 324b99e719 revert change in log-analyzer test f746f40ebe Fix shellcheck 2d7dbbe1bd Fix spelling 728dd64c2c Last set of changes for log analizer tools bf389dcd01 New fixes for log parses 6b2b56afc3 Fix another shellcheck 56163e170b Fix shellcheck d96ab8094f Merge branch 'main' into new-spread-manager 60fb99f02f new dir task5 259a7e188c Fix spread test e674234454 New spread-manager tool git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: fea2bac306a463f4c97f79a6e934e85ec00e804c * Using a custom remote configuration file This is to avoid issues when the helpers try to use the remote tools * Squashed 'tests/lib/external/snapd-testing-tools/' changes from fea2bac306..4a994e96b3 4a994e96b3 Fix new config path in tests git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4a994e96b33d5966053645ec87563d0ea8fd019b * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4a994e96b3..53e6c8f315 53e6c8f315 Use the new ubuntu kinetic image git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 53e6c8f315fbdd379b59d6458eb869e68f34c9b3 * fix tests with wrong use of the new tools * Update test with remote.push command This test seems to be updated during last merge. * Update sprad.yaml which fails on debug * Update the number of workers for nested tests on uc20 and uc22 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 53e6c8f315..4d6088ec8c 4d6088ec8c Fix shellcheck in spread-manager util edb4f3f51b fix shell check errors in remote tools git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: 4d6088ec8c5d43e7b4d45faf904978175c418120 * Squashed 'tests/lib/external/snapd-testing-tools/' changes from 4d6088ec8c..f46dccb464 f46dccb464 Fix sshpass command in remote.exec git-subtree-dir: tests/lib/external/snapd-testing-tools git-subtree-split: f46dccb464f3a82932c0a89ecabffb6ef84ec6df
2022-09-13 17:14:55 -03:00
remote.exec "snap debug seeding" | MATCH "^seeded: +true"
remote.exec "snap debug seeding" | MATCH "^preseeded: +false"