Repository navigation
Mock server and benchmarking memory/cpu usage - #541
Conversation
| ) | ||
|
|
||
| const ( | ||
| filepath = "./awstesting/mock/mock_data.json" |
There was a problem hiding this comment.
is this still needed since there is no longer any mock data?
5c83a99 to
efc01a2
Compare
| // mapCreateClients allows for the creation of clients | ||
| func mapCreateClients() { | ||
| World["services"] = []func(){ | ||
| func() { acm.New(mock.Session) }, |
There was a problem hiding this comment.
I think this list of services can be simplified. Also I suggest the list of services be in their own file with nothing else so the file which searches through the services is easier to read.
Unless this list is generated it will be easy to forget to add new services to this list when they are released. Even more so if SDK were to ever support versioning of services.
If a []reflect.Value of each service client's New func pointer value was created. Both creation of service client, and inspection of service client's operations could easily be done in the same method by iterating over the items in the list instead of hard coding each service client type buildAnArrayOfClients()
e.g:
var clients = []reflect.Value{
reflect.ValueOf(acm.New),
reflect.ValueOf(apigateway.New),
}
//...
for i, c := range clients {
v := c.Call([]reflect.Value{reflect.ValueOf(mock.Session)}
findAndGetMethod(v[0].Interface{})
}efc01a2 to
37dcb0d
Compare
|
Naw, they weren't causing any issues. |
Probably can just removed the |
|
Oh they weren't causing issues because of that. If I removed it, it won't run |
37dcb0d to
bf5edd5
Compare
|
LGTM |
Mock server and benchmarking memory/cpu usage
Issues from Bug report template had nonexistent bug report label applied instead of bug.
example:
make performance region=us-west-2 table=gosdkbenchmarks log-detailed=true