def test_construct_url_for_released_version(self): artifact_url, file_name = artifactory._get_release_url(repository='libs-releases', group_id='com.company.sampleapp.web-module', artifact_id='web', packaging='war', artifactory_url='http://artifactory.example.com/artifactory', version='1.0_RC20') self.assertEqual(artifact_url, "http://artifactory.example.com/artifactory/libs-releases/com/company/sampleapp/web-module/web/1.0_RC20/web-1.0_RC20.war") self.assertEqual(file_name, "web-1.0_RC20.war")
def test_construct_url_for_released_version(self): artifact_url, file_name = artifactory._get_release_url(repository='libs-releases', group_id='com.company.sampleapp.web-module', artifact_id='web', packaging='war', artifactory_url='http://artifactory.company.com/artifactory', version='1.0_RC20') self.assertEqual(artifact_url, "http://artifactory.company.com/artifactory/libs-releases/com/company/sampleapp/web-module/web/1.0_RC20/web-1.0_RC20.war") self.assertEqual(file_name, "web-1.0_RC20.war")
def test_construct_url_for_released_version(self): artifact_url, file_name = artifactory._get_release_url( repository="libs-releases", group_id="com.company.sampleapp.web-module", artifact_id="web", packaging="war", artifactory_url="http://artifactory.example.com/artifactory", version="1.0_RC20", ) self.assertEqual( artifact_url, "http://artifactory.example.com/artifactory/libs-releases/com/company/sampleapp/web-module/web/1.0_RC20/web-1.0_RC20.war", ) self.assertEqual(file_name, "web-1.0_RC20.war")
def test_construct_url_for_released_version(self): artifact_url, file_name = artifactory._get_release_url( repository="libs-releases", group_id="com.company.sampleapp.web-module", artifact_id="web", packaging="war", artifactory_url="http://artifactory.company.com/artifactory", version="1.0_RC20", ) self.assertEqual( artifact_url, "http://artifactory.company.com/artifactory/libs-releases/com/company/sampleapp/web-module/web/1.0_RC20/web-1.0_RC20.war", ) self.assertEqual(file_name, "web-1.0_RC20.war")