diff options
| author | Chad Smith <chad.smith@canonical.com> | 2018-10-07 19:31:50 +0000 |
|---|---|---|
| committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-10-07 19:31:50 +0000 |
| commit | 638f09e82260ea3256c387cd55408e0411f36c23 (patch) | |
| tree | 210bda0ef777e382290e15e8f432cf2e7290488d /tests/cloud_tests/testcases/modules/apt_configure_primary.yaml | |
| parent | d3e803ad316e6796e5d83e7e8f8f4f7224b92df9 (diff) | |
| download | vyos-cloud-init-638f09e82260ea3256c387cd55408e0411f36c23.tar.gz vyos-cloud-init-638f09e82260ea3256c387cd55408e0411f36c23.zip | |
tests: fix apt_configure_primary to be more flexible
Commit d3e803ad316e6796e5d83e7e8f8f4f7224b92df9 added deb-src comments to
the cloud-init apt templates. This doubled the number of matching entries
seen in /etc/apt/sources.list in apt_configure_primary integration test.
This test was really asserting that GaTech urls were present in
/etc//apt/sources.list instead of archive.ubuntu.com. Fix the test to be a
bit more flexible in case cloud-init changes its bas apt template again.
Diffstat (limited to 'tests/cloud_tests/testcases/modules/apt_configure_primary.yaml')
| -rw-r--r-- | tests/cloud_tests/testcases/modules/apt_configure_primary.yaml | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml b/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml index 41bcf2fd..cc067d4f 100644 --- a/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml +++ b/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml @@ -12,13 +12,6 @@ cloud_config: | - default uri: "http://www.gtlib.gatech.edu/pub/ubuntu-releases/" collect_scripts: - ubuntu.sources.list: | - #!/bin/bash - grep -v '^#' /etc/apt/sources.list | sed '/^\s*$/d' | grep -c archive.ubuntu.com - gatech.sources.list: | - #!/bin/bash - grep -v '^#' /etc/apt/sources.list | sed '/^\s*$/d' | grep -c gtlib.gatech.edu - sources.list: | #!/bin/bash cat /etc/apt/sources.list |
