-
Notifications
You must be signed in to change notification settings - Fork 937
feat: move proxy settings page to deployment options #8246
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
Changes from all commits
76fb28f
117f1b8
731e64d
918b7d1
ed2e564
c351a22
2e1f196
08db88a
5cbcbae
ee33895
b7605d7
0c05228
356554e
37ec7f6
ec7c755
bd3609a
6c99694
4aecfbf
378344f
fa9b6f5
bfd77c8
b3ce0d9
11163d2
86ac8b3
680e8ab
21aac1b
0a8fbc1
05ac587
7d421b9
f9786e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,11 @@ type tableTest3 struct { | |
Sub tableTest2 `table:"inner,recursive,default_sort"` | ||
} | ||
|
||
type tableTest4 struct { | ||
Inline tableTest2 `table:"ignored,recursive_inline"` | ||
SortField string `table:"sort_field,default_sort"` | ||
} | ||
|
||
func Test_DisplayTable(t *testing.T) { | ||
t.Parallel() | ||
|
||
|
@@ -188,6 +193,31 @@ foo foo1 foo3 2022-08-02T15:49:10Z | |
compareTables(t, expected, out) | ||
}) | ||
|
||
t.Run("Inline", func(t *testing.T) { | ||
t.Parallel() | ||
|
||
expected := ` | ||
NAME AGE | ||
Alice 25 | ||
` | ||
|
||
inlineIn := []tableTest4{ | ||
{ | ||
Inline: tableTest2{ | ||
Name: stringWrapper{ | ||
str: "Alice", | ||
}, | ||
Age: 25, | ||
NotIncluded: "IgnoreMe", | ||
}, | ||
}, | ||
} | ||
out, err := cliui.DisplayTable(inlineIn, "", []string{"name", "age"}) | ||
log.Println("rendered table:\n" + out) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this log intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it's helpful to build the expected output. Test logs only log in the error case by default (unless you do |
||
require.NoError(t, err) | ||
compareTables(t, expected, out) | ||
}) | ||
|
||
// This test ensures that safeties against invalid use of `table` tags | ||
// causes errors (even without data). | ||
t.Run("Errors", func(t *testing.T) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
I had to do this to make the table names nice. Otherwise it is like
Proxy Region Url
instead of justURL