基于Jenkins的plugin实现对Foreman服务的测试
2014-08-18 10:05
204 查看
1.Foreman服务介绍
Foreman服务为用户提供REST风格的API,本项目中涉及到Host,Hostgroup和Host template配置。选择已有的Host或添加新的Host,主要包括配置ARCH,OS version,partition table, root password, hostgroup, domain name, subnet, IP. 有的选项通过查询Foreman的结果供用户选择。选择已有的Hostgroup或添加新的Hostgroup。选项同host类似,但不包括host的具体信息。通过hosttemplate定制安装的kickstart文件,由用户输入或选择默认安装。
Foreman为Host配置提供的API列表如下:
Hosts
Resource | Description |
GET /api/hosts | List all hosts. |
GET /api/hosts/:id | Show a host. |
POST /api/hosts | Create a host. |
PUT /api/hosts/:id | Update a host. |
DELETE /api/hosts/:id | Delete an host. |
GET /api/hosts/:id/status | Get status of host |
Hostgroups
Resource | Description |
GET /api/hostgroups | List all hostgroups. |
GET /api/hostgroups/:id | Show a hostgroup. |
POST /api/hostgroups | Create an hostgroup. |
PUT /api/hostgroups/:id | Update an hostgroup. |
DELETE /api/hostgroups/:id | Delete an hostgroup. |
Config templates
Resource | Description |
GET /api/config_templates | List templates |
GET /api/config_templates/:id | Show template details |
POST /api/config_templates | Create a template |
PUT /api/config_templates/:id | Update a template |
GET /api/config_templates/revision | |
DELETE /api/config_templates/:id | Delete a template |
GET /api/config_templates/build_pxe_default | Change the default PXE menu on all configured TFTP servers |
2.Foreman服务的接口实现
接口实现详见中期报告。
3.基于Jenkins的Foreman plugin测试及结果
见更新。
References:
1. The Foreman :: APIhttp://theforeman.org/api.html
相关文章推荐
- 总结报告.基于Jenkins的Foreman plug-in实现
- 基于任务驱动的第三方测试服务平台设计与实现
- .NET Core微服务之基于Jenkins+Docker实现持续部署(Part 1)
- 基于 OSGi 服务模型实现组件之间松耦合通信
- 基于cppunit的bcb中,运行某测试用例时,弹出窗口的实现方法
- 基于Spring实现远程服务编程
- WEB服务动态解析及调用技术的实现(基于WSDL4J及SAAJ)
- 讨论创建基于WSE的报表打印服务及其实现
- Vsftpd服务器实现基于虚拟用户帐号服务 推荐
- 基于Spring-DM实现分布式服务框架(DSF)(一)
- 实现基于Spring技术应用的远程服务编程
- [ZT]基于Spring实现远程服务编程
- 在FreeBSD下用vrrp实现基于DNS轮询的冗余服务
- 基于J2EE平台Web系统的软件测试研究和实现
- Apache服务器实现基于名称的虚拟主机服务 推荐
- [原创]WCF技术剖析之四:基于IIS的WCF服务寄宿(Hosting)实现揭秘
- 利用Java技术实现基于XML的Web服务
- 基于系统真实数据的TUXEDO应用服务器压力测试的研究与实现
- 基于Linux操作系统的目录服务的实现
- 基于总线的消息服务(BBMS)的设计与实现