- 
                Notifications
    
You must be signed in to change notification settings  - Fork 19
 
tests: Add integration and acceptance tests for NI-DCPower driver specific session management APIs #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          Test Results       30 files  ±  0         30 suites  ±0   41m 22s ⏱️ + 5m 34s Results for commit 0fd1300. ± Comparison against base commit 71ffb3d. This pull request removes 9 and adds 16 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results.  | 
    
| 
           This doesn't cover all the cases mentioned in AB#2535722. Are you planning to add the rest of the tests? With the RFC, what questions are you hoping to get feedback on? It also looks like the system tests are failing because there's no DCPower1 on the test runner. Will we need to add this DC instrument to the test runner's setup? Or maybe we can use a .env file to set up simulation for this test?  | 
    
| 
           If you can get the system tests passing and cover more of the desired tests, this approach looks ok to me. So I'm approving for now. Reset me if you're ready to remove the RFC tag.  | 
    
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.
Approved for RFC
          
 I was working to come up with the initial setup for the integration and acceptance tests. That was the reason I had the [Internal] and [RFC] tags to get inputs from the Soliton team but since the pipeline failed, I didn't remove the [Internal] tag yesterday. 
 I added it mainly to confirm the testing approach for the  
 Yes, we're working on updating the pipeline to have the  I'm removing the RFC tag as all the required tests are added now but will add a Review tag until the pipeline gets fixed. Hope that's fine. Apologies for any confusion caused. @dixonjoel, I'm resetting your vote here as the pipeline update is taken up as a separate PR.  | 
    
        
          
                tests/acceptance/session_management/test_nidcpower_measurement.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                tests/acceptance/session_management/test_nidcpower_measurement.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                tests/acceptance/session_management/test_nidcpower_measurement.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                tests/assets/stubs/nidcpower_measurement/nidcpower_measurement.proto
              
                Outdated
          
            Show resolved
            Hide resolved
        
      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.
This PR:
package ni.measurementlink.measurement.tests.nidcpower_measurementtests/assets/stubs/nidcpower_measurement/types.proto- Run 
generate_grpc_stubs.py, commit nidcpower_measurement changes, revert the rest. - Update imports to match.
 
Follow-up PRs:
- Move existing test proto files and regenerate in new location.
 - Regenerate all existing 
.pyifiles. - Update 
check_nims.ymlto check proto codegen. 
What does this Pull Request accomplish?
Includes a new
nidcpower_measurement.pytest service module and adds acceptance and integration tests for nidcpower driver specific session management APIs.Why should this Pull Request be merged?
To add nidcpower driver-specific tests to the repository.
What testing has been done?
Ran mypy and pytest.