-
-
Notifications
You must be signed in to change notification settings - Fork 424
add failing test for issue 777 #782
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
Conversation
@@ -0,0 +1,14 @@ | |||
caddy: | |||
ports: | |||
- "80:80" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For purposes of figuring out the root cause, if you changed this from "80:80"
to "foo_bar"
, does the error happen?
Or, if you use '80:80'
with single quotes - error or no?
volumes: | ||
- caddy_data | ||
=== | ||
$data['caddy']['ports'][] = "443:443"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again for purposes of figuring out the root cause, if you changed this from "443:443"
to "foo_bar"
, does the error happen?
caddy: | ||
ports: | ||
- "foo:foo" | ||
- 'bar:baz' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test passes. but not w/ "80:80"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't change the existing double quotes to single quotes. It's only that the NEW keys we add are double quotes? If so, I think it's fine.
Partial YSM: Debug for case
|
Part of the problem is in
$key = 0;
$regex = $this->getKeyRegex($key);
var_dump($regex); // `0( )*:` which hits on the first |
The second part of the problem - When you set a value Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
'caddy:
ports:
- "80:80"
- - "bar:baz"
+ - 'bar:baz'
volumes:
- caddy_data'
|
WIP
fixes #777