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

The litmus test for PROPPATCH fails with '423 Locked' #37

Open
xypron opened this issue May 8, 2023 · 0 comments · May be fixed by #41
Open

The litmus test for PROPPATCH fails with '423 Locked' #37

xypron opened this issue May 8, 2023 · 0 comments · May be fixed by #41

Comments

@xypron
Copy link
Contributor

xypron commented May 8, 2023

With release 0.10.0 the litmus test for PROPPATCH fails with '423 Locked'.
Cf. https://salsa.debian.org/xypron/pywebdav/-/jobs/4196190

_________________________ Test.test_run_litmus_noauth __________________________

self = <test_litmus.Test testMethod=test_run_litmus_noauth>

    def test_run_litmus_noauth(self):
    
        result = []
        proc = None
        try:
            print('Starting davserver')
            davserver_cmd = [sys.executable, os.path.join(testdir, '..', 'pywebdav', 'server', 'server.py'), '-D',
                             self.rundir, '-n', '-H', 'localhost', '--port', str(port)]
            self.davserver_proc = subprocess.Popen(davserver_cmd)
            # Ensure davserver has time to startup
            time.sleep(1)
    
            # Run Litmus
            print('Running litmus')
            try:
                ret = run(["make", "URL=http://localhost:%d" % port, "check"], cwd=self.litmus_dist, capture_output=True)
                results = ret.stdout
    
            except subprocess.CalledProcessError as ex:
                results = ex.output
            lines = results.decode().split('\n')
            assert len(lines), "No litmus output"
            for line in lines:
                line = line.split('\r')[-1]
                result.append(line)
                if len(re.findall('^ *\d+\.', line)):
>                   assert line.endswith('pass'), line
E                   AssertionError:  6. propset............... FAIL (PROPPATCH on `/litmus/prop': 423 Locked)
E                   assert False
E                    +  where False = <built-in method endswith of str object at 0x7f60ae420830>('pass')
E                    +    where <built-in method endswith of str object at 0x7f60ae420830> = " 6. propset............... FAIL (PROPPATCH on `/litmus/prop': 423 Locked)".endswith

test/test_litmus.py:111: AssertionError
@vpa1977 vpa1977 linked a pull request Aug 1, 2023 that will close this issue
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