Merge ~smoser/cloud-init:fix/1778737-drop-integration-test into cloud-init:master

Proposed by Scott Moser
Status: Merged
Approved by: Scott Moser
Approved revision: 308ca86bb39719b05afd30462eaea93321a3dcc7
Merge reported by: Scott Moser
Merged at revision: 5858136215753cffc2080c85429a3c7a3754741c
Proposed branch: ~smoser/cloud-init:fix/1778737-drop-integration-test
Merge into: cloud-init:master
Diff against target: 99 lines (+0/-49)
1 file modified
dev/null (+0/-49)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Chad Smith Approve
Review via email: mp+348719@code.launchpad.net

Commit message

tests: drop salt-minion integration test

The salt minion integration test as we had it did not do a whole lot
more than the unit tests on that module did. Additionally, it caused
some transient failures at least in Ubuntu 18.04.

At a future date we may choose to add an integration test that installs
salt-minion and salt server and configures it to be a better test.

LP: #1778737

Description of the change

see commit message

To post a comment you must log in.
Revision history for this message
Chad Smith (chad.smith) wrote :

LGTM!

review: Approve
Revision history for this message
Scott Moser (smoser) wrote :

I'll wait on c-i to post here
 https://jenkins.ubuntu.com/server/job/cloud-init-ci/132/
and then merge.

Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:308ca86bb39719b05afd30462eaea93321a3dcc7
https://jenkins.ubuntu.com/server/job/cloud-init-ci/132/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    SUCCESS: MAAS Compatability Testing
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/132/rebuild

review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

This merge has landed in commit 58581362 to cloud-init branch master.

To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=58581362

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tests/cloud_tests/testcases/modules/salt_minion.py b/tests/cloud_tests/testcases/modules/salt_minion.py
2deleted file mode 100644
3index fc9688e..0000000
4--- a/tests/cloud_tests/testcases/modules/salt_minion.py
5+++ /dev/null
6@@ -1,38 +0,0 @@
7-# This file is part of cloud-init. See LICENSE file for license information.
8-
9-"""cloud-init Integration Test Verify Script."""
10-from tests.cloud_tests.testcases import base
11-
12-
13-class Test(base.CloudTestCase):
14- """Test salt minion module."""
15-
16- def test_minon_master(self):
17- """Test master value in config."""
18- out = self.get_data_file('minion')
19- self.assertIn('master: salt.mydomain.com', out)
20-
21- def test_minion_pem(self):
22- """Test private key."""
23- out = self.get_data_file('minion.pem')
24- self.assertIn('------BEGIN PRIVATE KEY------', out)
25- self.assertIn('<key data>', out)
26- self.assertIn('------END PRIVATE KEY-------', out)
27-
28- def test_minion_pub(self):
29- """Test public key."""
30- out = self.get_data_file('minion.pub')
31- self.assertIn('------BEGIN PUBLIC KEY-------', out)
32- self.assertIn('<key data>', out)
33- self.assertIn('------END PUBLIC KEY-------', out)
34-
35- def test_grains(self):
36- """Test master value in config."""
37- out = self.get_data_file('grains')
38- self.assertIn('role: web', out)
39-
40- def test_minion_installed(self):
41- """Test if the salt-minion package is installed"""
42- self.assertPackageInstalled('salt-minion')
43-
44-# vi: ts=4 expandtab
45diff --git a/tests/cloud_tests/testcases/modules/salt_minion.yaml b/tests/cloud_tests/testcases/modules/salt_minion.yaml
46deleted file mode 100644
47index 9227147..0000000
48--- a/tests/cloud_tests/testcases/modules/salt_minion.yaml
49+++ /dev/null
50@@ -1,49 +0,0 @@
51-#
52-# Create config for a salt minion
53-#
54-# 2016-11-17: Currently takes >60 seconds results in test failure
55-#
56-enabled: True
57-cloud_config: |
58- #cloud-config
59- salt_minion:
60- conf:
61- master: salt.mydomain.com
62- public_key: |
63- ------BEGIN PUBLIC KEY-------
64- <key data>
65- ------END PUBLIC KEY-------
66- private_key: |
67- ------BEGIN PRIVATE KEY------
68- <key data>
69- ------END PRIVATE KEY-------
70- grains:
71- role: web
72-collect_scripts:
73- minion: |
74- #!/bin/bash
75- cat /etc/salt/minion
76- minion_id: |
77- #!/bin/bash
78- cat /etc/salt/minion_id
79- minion.pem: |
80- #!/bin/bash
81- PRIV_KEYFILE=/etc/salt/pki/minion/minion.pem
82- if [ ! -f $PRIV_KEYFILE ]; then
83- # Bionic and later automatically moves /etc/salt/pki/minion/*
84- PRIV_KEYFILE=/var/lib/salt/pki/minion/minion.pem
85- fi
86- cat $PRIV_KEYFILE
87- minion.pub: |
88- #!/bin/bash
89- PUB_KEYFILE=/etc/salt/pki/minion/minion.pub
90- if [ ! -f $PUB_KEYFILE ]; then
91- # Bionic and later automatically moves /etc/salt/pki/minion/*
92- PUB_KEYFILE=/var/lib/salt/pki/minion/minion.pub
93- fi
94- cat $PUB_KEYFILE
95- grains: |
96- #!/bin/bash
97- cat /etc/salt/grains
98-
99-# vi: ts=4 expandtab

Subscribers

People subscribed via source and target branches