- 
                Notifications
    
You must be signed in to change notification settings  - Fork 16
 
fix(integration-test): #136 fix test framework to execute tests #138
Conversation
f76d4df    to
    65997d7      
    Compare
  
    | 
           @AmitKumarDas there are two errors logged from integration tests : and they are expected to be there ?  | 
    
| 
           @grzesuav the tests should pass eventually. Since the controller reconcile is eventual. I will still have a look once infront of my laptop.  | 
    
This commit fixes the issue of integration tests that were never run. Reason for this bug? This has mostly happened when apiserver & etcd binaries were upgraded. The new binaries make use of new flags & deprecates use of old as well as insecure flags. The framework package present in test/integration did not handle these new changes and was rather swallowing the startup errors resulting in passing these tests that never ran. What has been done? The changes include copying of integration test related framework code from controller runtime library. The copied codebase fits the current integration test framework of Metac nicely. This approach also avoid import of unrequired dependencies & associated go vendoring problems that often arises due to import of controller-runtime libraries. closes #136 Refer - https://github.com/kubernetes-sigs/controller-runtime/tree/master/pkg/internal/testing Signed-off-by: AmitKumarDas <amit.das@mayadata.io>
| 
           @grzesuav on further debugging, I found that those two errors were actually info messages that were logged via   | 
    
| 
           I have approved but does not have any valuable input, so other approval would be appreciated  | 
    
| 
           @AmitKumarDas i don't know the codebsae good enough to do a propper review From the 10000 Feet View, the changes are looking good  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
| 
           🎉 This PR is included in version 0.2.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀  | 
    
This commit fixes the issue of integration tests that were never run.
Reason for this bug?
This has mostly happened when apiserver & etcd binaries were upgraded. The new binaries make use of new flags & deprecates use of old as well as insecure flags. The framework package present in test/integration did not handle these new changes and was rather swallowing the startup errors resulting in passing these tests that never ran.
What has been done?
The changes include copying of integration test related framework code from controller runtime library. The copied codebase fits the current integration test framework of Metac nicely. This approach also avoid import of un-required dependencies & associated go vendoring problems that often arises due to import of controller-runtime libraries.
closes #136
Refer - https://github.com/kubernetes-sigs/controller-runtime/tree/master/pkg/internal/testing
Signed-off-by: AmitKumarDas amit.das@mayadata.io