Skip to content

nixosTests.nginx*: port to python#74072

Merged
Ma27 merged 4 commits intoNixOS:masterfrom
mayflower:tests-python-nginx
Dec 26, 2019
Merged

nixosTests.nginx*: port to python#74072
Ma27 merged 4 commits intoNixOS:masterfrom
mayflower:tests-python-nginx

Conversation

@globin
Copy link
Copy Markdown
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.

@globin globin requested a review from flokli November 24, 2019 19:44
@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 24, 2019
@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
Copy Markdown
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
Copy Markdown
Member

flokli commented Dec 10, 2019

ping @globin

@Ma27
Copy link
Copy Markdown
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 Ma27 force-pushed the tests-python-nginx branch from ea37727 to c5c7ccf Compare December 26, 2019 17:51
@Ma27
Copy link
Copy Markdown
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

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants