diff --git a/parents/checkstyle/pom.xml b/parents/checkstyle/pom.xml index de60100c873..b1b7b21b11a 100644 --- a/parents/checkstyle/pom.xml +++ b/parents/checkstyle/pom.xml @@ -1,3 +1,13 @@ + 4.0.0 Apache CloudStack Checkstyle Configuration diff --git a/parents/checkstyle/src/main/resources/tooling/checkstyle.xml b/parents/checkstyle/src/main/resources/tooling/checkstyle.xml index 84653839754..83493d677ba 100644 --- a/parents/checkstyle/src/main/resources/tooling/checkstyle.xml +++ b/parents/checkstyle/src/main/resources/tooling/checkstyle.xml @@ -1,4 +1,22 @@ + diff --git a/patches/systemvm/debian/config/etc/logrotate.d/cloud b/patches/systemvm/debian/config/etc/logrotate.d/cloud deleted file mode 100644 index 40c42032e79..00000000000 --- a/patches/systemvm/debian/config/etc/logrotate.d/cloud +++ /dev/null @@ -1,11 +0,0 @@ -/var/log/cloud.log { - rotate 4 - daily - missingok - notifempty - compress - delaycompress - postrotate - pkill socat > /dev/null - endscript -} diff --git a/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/ProviderTestConfiguration.java b/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/ProviderTestConfiguration.java index 818d6a07b1f..3c215901533 100644 --- a/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/ProviderTestConfiguration.java +++ b/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/ProviderTestConfiguration.java @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.apache.cloudstack.network.contrail.management; import org.springframework.context.annotation.Bean; @@ -5,8 +23,8 @@ import org.springframework.context.annotation.Configuration; @Configuration public class ProviderTestConfiguration { - @Bean - ServerDBSync getServerDBSync() { - return new ServerDBSyncImpl(); - } + @Bean + ServerDBSync getServerDBSync() { + return new ServerDBSyncImpl(); + } } diff --git a/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/PublicNetworkTestConfiguration.java b/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/PublicNetworkTestConfiguration.java index a184b14fe71..b41e282d934 100644 --- a/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/PublicNetworkTestConfiguration.java +++ b/plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/PublicNetworkTestConfiguration.java @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.apache.cloudstack.network.contrail.management; import org.mockito.Mockito; @@ -6,8 +24,8 @@ import org.springframework.context.annotation.Configuration; @Configuration public class PublicNetworkTestConfiguration { - @Bean - ServerDBSync getServerDBSync() { - return Mockito.mock(ServerDBSync.class); - } + @Bean + ServerDBSync getServerDBSync() { + return Mockito.mock(ServerDBSync.class); + } } diff --git a/plugins/network-elements/juniper-contrail/test/resources/providerContext.xml b/plugins/network-elements/juniper-contrail/test/resources/providerContext.xml index f412bc00c6e..62a9f6286f0 100644 --- a/plugins/network-elements/juniper-contrail/test/resources/providerContext.xml +++ b/plugins/network-elements/juniper-contrail/test/resources/providerContext.xml @@ -1,4 +1,22 @@ + + tools/marvin/marvin/sandbox/advanced/sandbox.cfg tools/ngui/static/bootstrap/* tools/ngui/static/js/lib/* + **/.checkstyle diff --git a/systemvm/patches/debian/config/etc/logrotate.d/cloud b/systemvm/patches/debian/config/etc/logrotate.d/cloud new file mode 100644 index 00000000000..37440ace69f --- /dev/null +++ b/systemvm/patches/debian/config/etc/logrotate.d/cloud @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +/var/log/cloud.log { + rotate 4 + daily + missingok + notifempty + compress + delaycompress + postrotate + pkill socat > /dev/null + endscript +}