コード例 #1
0
    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")
コード例 #2
0
    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")
コード例 #3
0
    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")
コード例 #4
0
ファイル: artifactory_test.py プロジェクト: DaveQB/salt
    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")