Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
7cd335b1
Commit
7cd335b1
authored
Oct 21, 2018
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version to 1.2.0-SNAPSHOT
parent
a196fee1
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
54 additions
and
56 deletions
+54
-56
apollo-adminservice/pom.xml
apollo-adminservice/pom.xml
+1
-1
apollo-adminservice/src/main/docker/Dockerfile
apollo-adminservice/src/main/docker/Dockerfile
+1
-1
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ClusterController.java
...ork/apollo/adminservice/controller/ClusterController.java
+1
-1
apollo-adminservice/src/test/java/com/ctrip/framework/apollo/adminservice/controller/ClusterControllerTest.java
...apollo/adminservice/controller/ClusterControllerTest.java
+36
-38
apollo-assembly/pom.xml
apollo-assembly/pom.xml
+1
-1
apollo-biz/pom.xml
apollo-biz/pom.xml
+1
-1
apollo-buildtools/pom.xml
apollo-buildtools/pom.xml
+1
-1
apollo-client/README.md
apollo-client/README.md
+1
-1
apollo-client/pom.xml
apollo-client/pom.xml
+1
-1
apollo-common/pom.xml
apollo-common/pom.xml
+1
-1
apollo-configservice/pom.xml
apollo-configservice/pom.xml
+1
-1
apollo-configservice/src/main/docker/Dockerfile
apollo-configservice/src/main/docker/Dockerfile
+1
-1
apollo-core/pom.xml
apollo-core/pom.xml
+1
-1
apollo-demo/pom.xml
apollo-demo/pom.xml
+1
-1
apollo-mockserver/pom.xml
apollo-mockserver/pom.xml
+1
-1
apollo-openapi/pom.xml
apollo-openapi/pom.xml
+1
-1
apollo-portal/pom.xml
apollo-portal/pom.xml
+1
-1
apollo-portal/src/main/docker/Dockerfile
apollo-portal/src/main/docker/Dockerfile
+1
-1
pom.xml
pom.xml
+1
-1
No files found.
apollo-adminservice/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-adminservice/src/main/docker/Dockerfile
View file @
7cd335b1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
FROM
openjdk:8-jre-alpine
FROM
openjdk:8-jre-alpine
MAINTAINER
ameizi <sxyx2008@163.com>
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 1.
1.1
ENV
VERSION 1.
2.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
...
...
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ClusterController.java
View file @
7cd335b1
...
@@ -60,7 +60,7 @@ public class ClusterController {
...
@@ -60,7 +60,7 @@ public class ClusterController {
}
}
if
(
ConfigConsts
.
CLUSTER_NAME_DEFAULT
.
equals
(
entity
.
getName
())){
if
(
ConfigConsts
.
CLUSTER_NAME_DEFAULT
.
equals
(
entity
.
getName
())){
throw
new
BadRequestException
(
"
default cluster can not be delete.
"
);
throw
new
BadRequestException
(
"
can not delete default cluster!
"
);
}
}
clusterService
.
delete
(
entity
.
getId
(),
operator
);
clusterService
.
delete
(
entity
.
getId
(),
operator
);
...
...
apollo-adminservice/src/test/java/com/ctrip/framework/apollo/adminservice/controller/ClusterControllerTest.java
View file @
7cd335b1
package
com
.
ctrip
.
framework
.
apollo
.
adminservice
.
controller
;
package
com
.
ctrip
.
framework
.
apollo
.
adminservice
.
controller
;
import
static
org
.
mockito
.
Matchers
.
any
;
import
static
org
.
mockito
.
Mockito
.
times
;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
when
;
import
com.ctrip.framework.apollo.biz.entity.Cluster
;
import
com.ctrip.framework.apollo.biz.entity.Cluster
;
import
com.ctrip.framework.apollo.biz.service.ClusterService
;
import
com.ctrip.framework.apollo.biz.service.ClusterService
;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.Mock
;
import
org.mockito.Mock
;
import
org.mockito.MockitoAnnotations
;
import
org.mockito.MockitoAnnotations
;
import
org.mockito.runners.MockitoJUnitRunner
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.util.ReflectionTestUtils
;
import
org.springframework.test.util.ReflectionTestUtils
;
import
static
org
.
junit
.
Assert
.*;
public
class
ClusterControllerTest
{
import
static
org
.
mockito
.
Matchers
.
any
;
private
ClusterController
clusterController
;
import
static
org
.
mockito
.
Mockito
.
when
;
@Mock
public
class
ClusterControllerTest
{
private
ClusterService
clusterService
;
ClusterController
clusterController
=
new
ClusterController
();
@Before
@Mock
public
void
setUp
()
{
ClusterService
clusterService
;
clusterController
=
new
ClusterController
();
MockitoAnnotations
.
initMocks
(
this
);
@Before
public
void
setUp
()
{
ReflectionTestUtils
.
setField
(
clusterController
,
"clusterService"
,
clusterService
);
MockitoAnnotations
.
initMocks
(
this
);
}
ReflectionTestUtils
.
setField
(
clusterController
,
"clusterService"
,
clusterService
);
}
@Test
(
expected
=
BadRequestException
.
class
)
public
void
testDeleteDefaultFail
()
{
Cluster
cluster
=
new
Cluster
();
@Test
(
expected
=
BadRequestException
.
class
)
cluster
.
setName
(
ConfigConsts
.
CLUSTER_NAME_DEFAULT
);
public
void
testDeleteDefaultFail
()
{
when
(
clusterService
.
findOne
(
any
(
String
.
class
),
any
(
String
.
class
))).
thenReturn
(
cluster
);
Cluster
cluster
=
new
Cluster
();
clusterController
.
delete
(
"1"
,
"2"
,
"d"
);
cluster
.
setName
(
ConfigConsts
.
CLUSTER_NAME_DEFAULT
);
}
when
(
clusterService
.
findOne
(
any
(
String
.
class
),
any
(
String
.
class
))).
thenReturn
(
cluster
);
clusterController
.
delete
(
"1"
,
"2"
,
"d"
);
@Test
}
public
void
testDeleteSuccess
()
{
Cluster
cluster
=
new
Cluster
();
@Test
()
when
(
clusterService
.
findOne
(
any
(
String
.
class
),
any
(
String
.
class
))).
thenReturn
(
cluster
);
public
void
testDeleteSuccess
()
{
clusterController
.
delete
(
"1"
,
"2"
,
"d"
);
Cluster
cluster
=
new
Cluster
();
verify
(
clusterService
,
times
(
1
)).
findOne
(
"1"
,
"2"
);
when
(
clusterService
.
findOne
(
any
(
String
.
class
),
any
(
String
.
class
))).
thenReturn
(
cluster
);
}
clusterController
.
delete
(
"1"
,
"2"
,
"d"
);
}
}
}
\ No newline at end of file
apollo-assembly/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-biz/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
apollo-biz
</artifactId>
<artifactId>
apollo-biz
</artifactId>
...
...
apollo-buildtools/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-client/README.md
View file @
7cd335b1
...
@@ -88,7 +88,7 @@ If you need this functionality, you could specify the cluster as follows:
...
@@ -88,7 +88,7 @@ If you need this functionality, you could specify the cluster as follows:
<dependency>
<dependency>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo-client
</artifactId>
<artifactId>
apollo-client
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
</dependency>
</dependency>
## III. Client Usage
## III. Client Usage
...
...
apollo-client/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-common/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-configservice/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-configservice/src/main/docker/Dockerfile
View file @
7cd335b1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
FROM
openjdk:8-jre-alpine
FROM
openjdk:8-jre-alpine
MAINTAINER
ameizi <sxyx2008@163.com>
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 1.
1.1
ENV
VERSION 1.
2.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
...
...
apollo-core/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-demo/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
apollo-demo
</artifactId>
<artifactId>
apollo-demo
</artifactId>
...
...
apollo-mockserver/pom.xml
View file @
7cd335b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-openapi/pom.xml
View file @
7cd335b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-portal/pom.xml
View file @
7cd335b1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<relativePath>
../pom.xml
</relativePath>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
apollo-portal/src/main/docker/Dockerfile
View file @
7cd335b1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
FROM
openjdk:8-jre-alpine
FROM
openjdk:8-jre-alpine
MAINTAINER
ameizi <sxyx2008@163.com>
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 1.
1.1
ENV
VERSION 1.
2.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
...
...
pom.xml
View file @
7cd335b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<groupId>
com.ctrip.framework.apollo
</groupId>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo
</artifactId>
<artifactId>
apollo
</artifactId>
<version>
1.
1.1
</version>
<version>
1.
2.0-SNAPSHOT
</version>
<name>
Apollo
</name>
<name>
Apollo
</name>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<description>
Ctrip Configuration Center
</description>
<description>
Ctrip Configuration Center
</description>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment