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

Rename hello.txt to hello_world.txt #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

philpep
Copy link
Owner

@philpep philpep commented Aug 21, 2015

This test break because we don't remove the hello.txt resulting to a different state on a full or on a half provisioned system:

Travis build: https://travis-ci.org/philpep/test-driven-infrastructure-example/builds/76951185
Jenkins build: https://jenkins.philpep.org/job/test-driven-infrastructure-example-pr/15/

def test_same_website_root():
        tree = {}
        for name in ("default", "production"):
            conn = testinfra.get_backend(
                name, connection="paramiko", ssh_config=".vagrant-ssh-config")
            Command = conn.get_module("Command")
            tree[name] = Command.check_output("tree /srv/website")

>       assert tree["default"] == tree["production"]
E       assert '/srv/website...ories, 1 file' == '/srv/website\n...ries, 2 files'
E           /srv/website
E         + |-- hello.txt
E           `-- hello_world.txt
E           
E         - 0 directories, 1 file
E         ?                ^
E         + 0 directories, 2 files
E         ?                ^     +

test_same_state.py:12: AssertionError

@philpep philpep force-pushed the break-same-state branch 4 times, most recently from d5311bb to 8c3b1bc Compare August 23, 2015 22:04
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 this pull request may close these issues.

1 participant