mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2018.3' into http_tests
This commit is contained in:
commit
16d251f7ff
3 changed files with 7 additions and 6 deletions
4
.ci/lint
4
.ci/lint
|
@ -29,13 +29,13 @@ pipeline {
|
|||
parallel {
|
||||
stage('salt linting') {
|
||||
steps {
|
||||
sh 'eval "$(pyenv init -)"; tox -e pylint-salt $(find salt/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" setup.py {} +) | tee pylint-report.xml'
|
||||
sh 'eval "$(pyenv init - --no-rehash)"; tox -e pylint-salt $(find salt/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" setup.py {} +) | tee pylint-report.xml'
|
||||
archiveArtifacts artifacts: 'pylint-report.xml'
|
||||
}
|
||||
}
|
||||
stage('test linting') {
|
||||
steps {
|
||||
sh 'eval "$(pyenv init -)"; tox -e pylint-tests $(find tests/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" {} +) | tee pylint-report-tests.xml'
|
||||
sh 'eval "$(pyenv init - --no-rehash)"; tox -e pylint-tests $(find tests/ -name "*.py" -exec git diff --name-only "origin/$CHANGE_TARGET" "origin/$BRANCH_NAME" {} +) | tee pylint-report-tests.xml'
|
||||
archiveArtifacts artifacts: 'pylint-report-tests.xml'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -422,7 +422,7 @@ def create(vm_):
|
|||
else:
|
||||
raise SaltCloudExecutionFailure("Disk type '{0}' not supported".format(disk_type))
|
||||
|
||||
clone_xml = ElementTree.tostring(domain_xml)
|
||||
clone_xml = salt.utils.stringutils.to_str(ElementTree.tostring(domain_xml))
|
||||
log.debug("Clone XML '%s'", clone_xml)
|
||||
|
||||
validate_flags = libvirt.VIR_DOMAIN_DEFINE_VALIDATE if validate_xml else 0
|
||||
|
@ -615,7 +615,7 @@ def create_volume_xml(volume):
|
|||
log.debug("Volume: %s", dir(volume))
|
||||
volume_xml.find('capacity').text = six.text_type(volume.info()[1])
|
||||
volume_xml.find('./target/path').text = volume.path()
|
||||
xml_string = ElementTree.tostring(volume_xml)
|
||||
xml_string = salt.utils.stringutils.to_str(ElementTree.tostring(volume_xml))
|
||||
log.debug("Creating %s", xml_string)
|
||||
return xml_string
|
||||
|
||||
|
@ -641,7 +641,7 @@ def create_volume_with_backing_store_xml(volume):
|
|||
log.debug("volume: %s", dir(volume))
|
||||
volume_xml.find('capacity').text = six.text_type(volume.info()[1])
|
||||
volume_xml.find('./backingStore/path').text = volume.path()
|
||||
xml_string = ElementTree.tostring(volume_xml)
|
||||
xml_string = salt.utils.stringutils.to_str(ElementTree.tostring(volume_xml))
|
||||
log.debug("Creating %s", xml_string)
|
||||
return xml_string
|
||||
|
||||
|
|
|
@ -324,7 +324,8 @@ class CMDMODTestCase(TestCase, LoaderModuleMockMixin):
|
|||
|
||||
self.assertEqual(environment, environment2)
|
||||
|
||||
getpwnam_mock.assert_called_with('foobar')
|
||||
if not salt.utils.platform.is_darwin():
|
||||
getpwnam_mock.assert_called_with('foobar')
|
||||
|
||||
def test_run_cwd_doesnt_exist_issue_7154(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue