mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix tests for artifactory module
This commit is contained in:
parent
f2db700bb3
commit
18f08c5064
@ -55,7 +55,8 @@ class ArtifactoryTestCase(TestCase):
|
|||||||
metadata = artifactory._get_artifact_metadata(artifactory_url='http://artifactory.company.com/artifactory',
|
metadata = artifactory._get_artifact_metadata(artifactory_url='http://artifactory.company.com/artifactory',
|
||||||
repository='libs-releases',
|
repository='libs-releases',
|
||||||
group_id='com.company.sampleapp.web-module',
|
group_id='com.company.sampleapp.web-module',
|
||||||
artifact_id='web')
|
artifact_id='web',
|
||||||
|
headers={})
|
||||||
self.assertEqual(metadata['latest_version'], '1.1_RC11')
|
self.assertEqual(metadata['latest_version'], '1.1_RC11')
|
||||||
|
|
||||||
def test_snapshot_version_get_metadata(self):
|
def test_snapshot_version_get_metadata(self):
|
||||||
@ -89,7 +90,8 @@ class ArtifactoryTestCase(TestCase):
|
|||||||
repository='libs-releases',
|
repository='libs-releases',
|
||||||
group_id='com.company.sampleapp.web-module',
|
group_id='com.company.sampleapp.web-module',
|
||||||
artifact_id='web',
|
artifact_id='web',
|
||||||
version='1.1_RC8-SNAPSHOT')
|
version='1.1_RC8-SNAPSHOT',
|
||||||
|
headers={})
|
||||||
self.assertEqual(metadata['snapshot_versions']['war'], '1.1_RC8-20140418.150212-1')
|
self.assertEqual(metadata['snapshot_versions']['war'], '1.1_RC8-20140418.150212-1')
|
||||||
|
|
||||||
def test_artifact_metadata_url(self):
|
def test_artifact_metadata_url(self):
|
||||||
@ -129,7 +131,8 @@ class ArtifactoryTestCase(TestCase):
|
|||||||
group_id='com.company.sampleapp.web-module',
|
group_id='com.company.sampleapp.web-module',
|
||||||
artifact_id='web',
|
artifact_id='web',
|
||||||
version='1.0_RC10-SNAPSHOT',
|
version='1.0_RC10-SNAPSHOT',
|
||||||
packaging='war')
|
packaging='war',
|
||||||
|
headers={})
|
||||||
|
|
||||||
self.assertEqual(artifact_url, "http://artifactory.company.com/artifactory/libs-snapshots/com/company/sampleapp/web-module/web/1.0_RC10-SNAPSHOT/web-1.0_RC10-20131127.105838-2.war")
|
self.assertEqual(artifact_url, "http://artifactory.company.com/artifactory/libs-snapshots/com/company/sampleapp/web-module/web/1.0_RC10-SNAPSHOT/web-1.0_RC10-20131127.105838-2.war")
|
||||||
self.assertEqual(file_name, "web-1.0_RC10-20131127.105838-2.war")
|
self.assertEqual(file_name, "web-1.0_RC10-20131127.105838-2.war")
|
||||||
|
Loading…
Reference in New Issue
Block a user