ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-9203) Repository Version Management > Base URL validation
Date Tue, 20 Jan 2015 17:13:34 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-9203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284042#comment-14284042
] 

Hudson commented on AMBARI-9203:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1540 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1540/])
AMBARI-9203. Repository Version Management: Base URL validation (Yurii Shylov via ncole) (ncole:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1abd35a7bd991e7e380aec2c8708d8d794fcb3cc)
* ambari-server/src/test/java/org/apache/ambari/server/api/services/RepositoryServiceTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/RepositoryRequest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementController.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/RepositoryService.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/RepositoryResourceDefinitionTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/RepositoryResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java


> Repository Version Management > Base URL validation
> ---------------------------------------------------
>
>                 Key: AMBARI-9203
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9203
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Yurii Shylov
>            Assignee: Yurii Shylov
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9203.patch
>
>
> Add new API for base url validations:
> {code}
> POST http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/operating_systems/redhat6/repositories/?validate_only=true
> {
>  "Repositories": {
>    "repo_id":"HDP-2.2",
>    "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
>  }
> }
> {code}
> or
> {code}
> POST http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/operating_systems/redhat6/repositories/HDP-2.2?validate_only=true
> {
>  "Repositories": {
>    "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
>  }
> }
> {code}
> or
> {code}
> [
> {
>  "Repositories": {
>    "repo_id":"HDP-2.2",
>    "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
>  }
> },
> {
>  "Repositories": {
>    "repo_id":"HDP-2.2",
>    "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
>  }
> }
> ]
> {code}
> should result in 2xx status response *without* creating a new resource if base url is
valid or 5xx status if invalid.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message