diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2021-01-13 10:26:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 10:26:32 -0500 |
commit | 37abbc43334d522cfbda595fcee2e52592b4d354 (patch) | |
tree | 38a8e873b16eb94711845bdf2258c60950346b2f /tests/integration_tests/modules | |
parent | 503435d1b2deb648c3cfc436f1e40b8ad86260fc (diff) | |
download | vyos-cloud-init-37abbc43334d522cfbda595fcee2e52592b4d354.tar.gz vyos-cloud-init-37abbc43334d522cfbda595fcee2e52592b4d354.zip |
cc_seed_random: update documentation and fix integration test (#771)
The documentation did not mention that the given data may not be the
exact string written: the cloud's random data may be added to it.
Additionally, the documentation of the command key was incorrect.
test_seed_random_data was updated to check that the given data is a
prefix of the written data, to match cloud-init's expected (and, now,
documented) behaviour.
LP: #1911227
Diffstat (limited to 'tests/integration_tests/modules')
-rw-r--r-- | tests/integration_tests/modules/test_seed_random_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration_tests/modules/test_seed_random_data.py b/tests/integration_tests/modules/test_seed_random_data.py index b365fa98..f6a67c19 100644 --- a/tests/integration_tests/modules/test_seed_random_data.py +++ b/tests/integration_tests/modules/test_seed_random_data.py @@ -25,4 +25,4 @@ class TestSeedRandomData: @pytest.mark.user_data(USER_DATA) def test_seed_random_data(self, client): seed_output = client.read_from_file("/root/seed") - assert seed_output.strip() == "MYUb34023nD:LFDK10913jk;dfnk:Df" + assert seed_output.startswith("MYUb34023nD:LFDK10913jk;dfnk:Df") |