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

nixosTests.nginx*: port to python #74072

Merged
merged 4 commits into from Dec 26, 2019
Merged

Conversation

globin
Copy link
Member

@globin globin commented Nov 24, 2019

Motivation for this change

#72828

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
nixos/tests/nginx.nix Outdated Show resolved Hide resolved
@globin globin force-pushed the tests-python-nginx branch 2 times, most recently from 5f7c28d to 625dc56 Compare November 24, 2019 23:42
Copy link
Contributor

@tfc tfc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the comments with the http return codes subtest titles, that would be awesome.

@flokli
Copy link
Contributor

flokli commented Dec 10, 2019

ping @globin

@Ma27
Copy link
Member

Ma27 commented Dec 26, 2019

@GrahamcOfBorg test nginx nginx-sso

globin and others added 4 commits December 26, 2019 17:59
Co-Authored-By: Florian Klink <flokli@flokli.de>
When using format-strings, curly brackets need to be escaped using `{{`
to avoid errors from python.

And apparently, Perl's `==` is used to compare substrings[1] which is why
the translation to `assert http_code == "304"` failed as the string
contains several headers from curl.

[1] Just check `perl <(echo 'die "alarm" if "foo\n304" == 304')`
@Ma27
Copy link
Member

Ma27 commented Dec 26, 2019

Rebased onto latest master, fixed the nginx test.

@GrahamcOfBorg test nginx nginx-sso

@Ma27 Ma27 merged commit 466921c into NixOS:master Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants