From 5972cb941396f5993263c483544c0ed964b24188 Mon Sep 17 00:00:00 2001 From: Lakhan Yelgate <39281685+lyelgate@users.noreply.github.com> Date: Sun, 1 Nov 2026 16:59:31 +0530 Subject: [PATCH] Match StackScript usernames exactly in test_list_stackscripts The username check used the range [A-z], which also matches the six characters between Z and a ([ \ ] ^ _ `), and did not allow hyphens. It accepted characters a username cannot contain and rejected valid usernames such as jane-doe. Linode usernames are letters, digits, hyphens and underscores, so match [A-Za-z0-9_-]+ instead. Fixes #734 --- tests/integration/stackscripts/test_stackscripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/stackscripts/test_stackscripts.py b/tests/integration/stackscripts/test_stackscripts.py index ad371a693..e541d319b 100644 --- a/tests/integration/stackscripts/test_stackscripts.py +++ b/tests/integration/stackscripts/test_stackscripts.py @@ -68,7 +68,7 @@ def test_list_stackscripts(): output = result.splitlines() - assert re.search("[0-9]+,([A-z]|[0-9])+,True", output[0]) + assert re.search("[0-9]+,[A-Za-z0-9_-]+,True", output[0]) def test_test_stackscript_id_fails_without_image():