Skip to content
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

tests/functional/test_source_metadata.py::TestInstanceMetadata::test_instance_metadata error on Focal #5603

Closed
kushaldas opened this issue Oct 28, 2020 · 0 comments · Fixed by #5604

Comments

@kushaldas
Copy link
Contributor

Description

tests/functional/test_source_metadata.py::TestInstanceMetadata::test_instance_metadata is failing on Focal

Steps to Reproduce

  • BASE_OS=focal securedrop/bin/dev-shell bin/run-test -s -v tests/functional/test_source_metadata.py

Expected Behavior

All tests should pass

Actual Behavior

___________________________________________________________________________________ TestInstanceMetadata.test_instance_metadata ____________________________________________________________________________________
                                                                                                                                                                                                                    
self = <tests.functional.test_source_metadata.TestInstanceMetadata object at 0x7fe0f92878e0>                                                                                                                        
                                                                                                                                                                                                                    
    def test_instance_metadata(self):                                                                                                                                                                               
>       self._source_checks_instance_metadata()                                                                                                                                                                     
                                                                                                                                                                                                                    
/root/code/securedrop/securedrop/tests/functional/test_source_metadata.py:10:                                                                                                                                       
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
                                                                                                                                                                                                                    
self = <tests.functional.test_source_metadata.TestInstanceMetadata object at 0x7fe0f92878e0>                                                                                                                        
                                                                                                                                                                                                                    
    def _source_checks_instance_metadata(self):                                                                                                                                                                     
        self.driver.get(self.source_location + "/metadata")                                                                                                                                                         
        j = json.loads(self.driver.find_element_by_tag_name("body").text)                                                                                                                                           
>       assert j["server_os"] == "16.04"                                                                                                                                                                            
E       AssertionError            

Comments

Suggestions to fix, any other relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant