-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: Instance Settings API #239
Conversation
API operations for instance settings. Update instance settings, update instance restrictions and update instance organization settings.
f8b310e
to
c5cbc42
Compare
@@ -279,6 +279,35 @@ func TestBackendCall_SuccessfulResponse_GetRequest(t *testing.T) { | |||
assert.JSONEq(t, rawJSON, string(resource.Response.RawJSON)) | |||
} | |||
|
|||
// TestBackendCall_SuccessfulResponse_EmptyResponse tests successful | |||
// responses with no response body. | |||
func TestBackendCall_SuccessfulResponse_EmptyResponse(t *testing.T) { |
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.
➕
var argsRE = regexp.MustCompile("^.+\\)\\s\\(") | ||
var returnRE = regexp.MustCompile("^.+\\)") | ||
var argsRE = regexp.MustCompile("^.+\\)\\s[\\(e]") | ||
var returnRE = regexp.MustCompile("^.+\\s{") |
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.
💡 Mostly an idea/suggestion for possible future improvement, definitely not a current action item: we can use AST parsing to perform code generation in a possibly more maintainable way in the future: https://eli.thegreenplace.net/2021/rewriting-go-source-code-with-ast-tooling/
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.
Yes, this "generator" is a disgrace. 😞
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.
Gets the work done is what matters 🥇
API operations for instance settings. Update instance settings, update instance restrictions and update instance organization settings.