mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add three more pre-commit checks (#7083)
Co-authored-by: dahn <daan@onecht.net>
This commit is contained in:
parent
1d0762e43a
commit
c2e17310d6
@ -26,17 +26,18 @@ repos:
|
|||||||
- id: identity
|
- id: identity
|
||||||
- id: check-hooks-apply
|
- id: check-hooks-apply
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.1.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
#- id: check-added-large-files
|
#- id: check-added-large-files
|
||||||
#- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
#- id: check-executables-have-shebangs
|
#- id: check-executables-have-shebangs
|
||||||
#- id: check-merge-conflict
|
#- id: check-merge-conflict
|
||||||
#- id: check-vcs-permalinks
|
- id: check-vcs-permalinks
|
||||||
#- id: check-yaml
|
#- id: check-yaml
|
||||||
#- id: detect-private-key
|
#- id: detect-private-key
|
||||||
#- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
files: \.(java|md|py|txt|yaml|yml)$
|
||||||
#- id: fix-byte-order-marker
|
#- id: fix-byte-order-marker
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
files: \.(java|py)$
|
files: \.(java|md|py|txt|yaml|yml)$
|
||||||
# - id: trailing-whitespace
|
# - id: trailing-whitespace
|
||||||
|
|||||||
@ -113,5 +113,3 @@ public class UploadTemplateDirectDownloadCertificateCmd extends BaseCmd {
|
|||||||
return CallContext.current().getCallingAccount().getId();
|
return CallContext.current().getCallingAccount().getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,4 +24,3 @@ import org.apache.cloudstack.api.response.TemplateResponse;
|
|||||||
@APICommand(name = "copyTemplate", description = "Copies a template from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Full,
|
@APICommand(name = "copyTemplate", description = "Copies a template from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Full,
|
||||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
||||||
public class CopyTemplateCmdByAdmin extends CopyTemplateCmd {}
|
public class CopyTemplateCmdByAdmin extends CopyTemplateCmd {}
|
||||||
|
|
||||||
|
|||||||
@ -74,4 +74,3 @@ public class CopyTemplateCmdByAdminTest{
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,4 +72,3 @@ public class CopyTemplateCmdTest{
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,4 +41,3 @@ public class SetPortForwardingRulesCommand extends NetworkElementCommand {
|
|||||||
return rules;
|
return rules;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,4 +26,3 @@ public final class HostInfo {
|
|||||||
public static final String HOST_OS_KERNEL_VERSION = "Host.OS.Kernel.Version"; //linux-2.6.31 etc
|
public static final String HOST_OS_KERNEL_VERSION = "Host.OS.Kernel.Version"; //linux-2.6.31 etc
|
||||||
public static final String XS620_SNAPSHOT_HOTFIX = "xs620_snapshot_hotfix";
|
public static final String XS620_SNAPSHOT_HOTFIX = "xs620_snapshot_hotfix";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -63,4 +63,3 @@ public class MoveVolumeCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -234,4 +234,3 @@ public interface IpAddressManager {
|
|||||||
public static final String MESSAGE_ASSIGN_IPADDR_EVENT = "Message.AssignIpAddr.Event";
|
public static final String MESSAGE_ASSIGN_IPADDR_EVENT = "Message.AssignIpAddr.Event";
|
||||||
public static final String MESSAGE_RELEASE_IPADDR_EVENT = "Message.ReleaseIpAddr.Event";
|
public static final String MESSAGE_RELEASE_IPADDR_EVENT = "Message.ReleaseIpAddr.Event";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,4 +29,3 @@ public interface ServiceOfferingDetailsDao extends GenericDao<ServiceOfferingDet
|
|||||||
String getDetail(Long diskOfferingId, String key);
|
String getDetail(Long diskOfferingId, String key);
|
||||||
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -185,4 +185,3 @@ public class Upgrade40to41 implements DbUpgrade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -80,6 +80,3 @@ public class Site2SiteVpnGatewayDetailVO implements ResourceDetail {
|
|||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -29,4 +29,3 @@ public interface DiskOfferingDetailsDao extends GenericDao<DiskOfferingDetailVO,
|
|||||||
String getDetail(Long diskOfferingId, String key);
|
String getDetail(Long diskOfferingId, String key);
|
||||||
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -74,4 +74,3 @@ public class DiskOfferingDetailsDaoImpl extends ResourceDetailsDaoBase<DiskOffer
|
|||||||
return findResourceIdsByNameAndValueIn("domainid", dIds);
|
return findResourceIdsByNameAndValueIn("domainid", dIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,4 +24,3 @@ import com.cloud.utils.db.GenericDao;
|
|||||||
public interface Site2SiteVpnGatewayDetailsDao extends GenericDao<Site2SiteVpnGatewayDetailVO, Long>, ResourceDetailsDao<Site2SiteVpnGatewayDetailVO> {
|
public interface Site2SiteVpnGatewayDetailsDao extends GenericDao<Site2SiteVpnGatewayDetailVO, Long>, ResourceDetailsDao<Site2SiteVpnGatewayDetailVO> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -68,5 +68,3 @@ public class VMInstanceDaoImplTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -247,5 +247,3 @@ public class SecondaryStorageServiceImpl implements SecondaryStorageService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,3 @@ ALSO, you have to tweak the generated code to expose useful details such as the
|
|||||||
E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem.
|
E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem.
|
||||||
Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private
|
Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private
|
||||||
constant static member. The tweak involves making this member public.
|
constant static member. The tweak involves making this member public.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -109,4 +109,3 @@ public class LibvirtPatchSystemVmCommandWrapper extends CommandWrapper<PatchSyst
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -326,4 +326,3 @@ runcmd:
|
|||||||
- /opt/bin/setup-kube-system
|
- /opt/bin/setup-kube-system
|
||||||
- until [ -f /etc/systemd/system/deploy-kube-system.service ]; do sleep 5; done
|
- until [ -f /etc/systemd/system/deploy-kube-system.service ]; do sleep 5; done
|
||||||
- systemctl start deploy-kube-system
|
- systemctl start deploy-kube-system
|
||||||
|
|
||||||
|
|||||||
@ -85,4 +85,3 @@ public class ListTungstenFabricProvidersCmd extends BaseListCmd {
|
|||||||
setResponseObject(listResponse);
|
setResponseObject(listResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,4 +72,3 @@ public class Gateway {
|
|||||||
this.routes = routes;
|
this.routes = routes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,4 +45,3 @@ public class Subnet {
|
|||||||
this.length = length;
|
this.length = length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,4 +72,3 @@ public class ListTungstenFabricProvidersCmdTest {
|
|||||||
Assert.assertEquals(responseList, listTungstenFabricProvidersCmd.getResponseObject());
|
Assert.assertEquals(responseList, listTungstenFabricProvidersCmd.getResponseObject());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -68,4 +68,3 @@ END
|
|||||||
For packet flow, @see http://msdn.microsoft.com/en-us/library/cc226794.aspx
|
For packet flow, @see http://msdn.microsoft.com/en-us/library/cc226794.aspx
|
||||||
*/
|
*/
|
||||||
package rdpclient.ntlmssp;
|
package rdpclient.ntlmssp;
|
||||||
|
|
||||||
|
|||||||
@ -245,4 +245,3 @@ public class ClientSynchronizePDU extends OneTimeSwitch {
|
|||||||
MessageType: 0x1, MUST be set to SYNCMSGTYPE_SYNC (1)
|
MessageType: 0x1, MUST be set to SYNCMSGTYPE_SYNC (1)
|
||||||
TargetUser: 1002 (0x3EA)
|
TargetUser: 1002 (0x3EA)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -40,4 +40,3 @@ VMWare and HyperV in `dist` directory:
|
|||||||
|
|
||||||
bash build.sh systemvmtemplate
|
bash build.sh systemvmtemplate
|
||||||
bash build.sh builtin
|
bash build.sh builtin
|
||||||
|
|
||||||
|
|||||||
@ -91,5 +91,3 @@ vagrant up
|
|||||||
```
|
```
|
||||||
python -m marvin.deployDataCenter -i marvin.cfg
|
python -m marvin.deployDataCenter -i marvin.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -64,4 +64,3 @@ OR
|
|||||||
|
|
||||||
### 5. wait for templates and system VMs to be ready
|
### 5. wait for templates and system VMs to be ready
|
||||||
`$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py`
|
`$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py`
|
||||||
|
|
||||||
|
|||||||
@ -107,4 +107,3 @@ public class ImageStoreUtil {
|
|||||||
.anyMatch(lowerCasePath::endsWith);
|
.anyMatch(lowerCasePath::endsWith);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -100,5 +100,3 @@ public class PbmProfileManagerMO extends BaseMO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user