I checked out the latest develop branch, and it seems the same 4 tests are failing there as well. Iām not sure if this has to do with my local setup or not, but I have proceeded with the PR anyway.
I have pushed the latest changes and submitted the PR for the phpIPAM Integration with Foreman in a new branch called plugin/foreman_ipam.
Here are the links to the Foreman Plugin repos, and published gems:
There are more details on the features and functionality in the PR itself, but had a few questions regarding next steps.
Questions:
How does one integrate the install/setup of these plugins with the foreman-installer?
How can we get this added to the list of supported Foreman/Proxy plugins?
In terms of integration testing, is there a project that has integration tests for Foreman? There are some tests, but none that test the actual phpIPAM integration.
Is there any available infrastructure(in the cloud or otherwise) where we can setup a small phpIPAM instance for integration testing purposes?
Feel free to reach out if I have missed anything here!
adding the plugins to the puppet-foreman and puppet-foreman_proxy modules. Examples can be seen here for foreman and here for proxy.
once the modules are updated, adding them as installer options requires adding them to the answers file and creating a migration. example here
List of Plugins - Foreman is a wiki page that can be edited to add it, if you donāt have permission to do that send me a private message with your redmine username and Iāll fix it.
If you wish to transfer the plugin to the official theforeman organization under github, please reach out to me or one of the other org admins (preferably @ekohl (ewoud on irc) or @ehelms, though @ohadlevy and @Gwmngilfen may also be able to help if they have time) on IRC to facilitate it. We can also open a project on redmine for tracking issues if you prefer that to github.
We have a jenkins instance that is used to test many projects. The configuration for it is maintained under https://github.com/theforeman/foreman-infra/tree/master/puppet/modules/jenkins_job_builder and should be hopefully not be too complicated to add jobs for the plugin based on examples from other plugins. @infra team should be able to help guide you here towards the best practices.
Iām not sure what it entails to spin up an instance, but we do have some tests that run vms as part of the testing process on our infra. If itās something that can be automatically spun up in a vm or container as part of the testing process thatās likely possible. Deffering to @infra team again for further guidance.
Well then it smells, if you checkout develop locally do you see the same four tests failing?
Iāve reviewed your initial patch, keep it going. You are defining brand new Smart Proxy API (feature) here which is great, we like this design as it really paied off so far.
I checked out the latest develop branch locally, and the same 4 tests are failing there as well. Not sure if it is related to my local environment or not.
Thanks @lzap and @tbrisker for the feedback on the PR, and for answering the other questions. I will get cracking on those changes!