Skip to content

Expand mock service-control calls #1

@timburks

Description

@timburks

With 0e7d51a we can now run the following and see the results in the Cloud Console logging and metrics pages.

$ q service-control mock --service stores.endpoints.bobadojo.cloud.goog --apikey $KEY --operation bobadojo.stores.v1.Stores.ListStores
2024/10/23 12:29:39 calling check
{"operationId":"9fec9bdf-9088-4bbc-8bbc-a1e2587ddbd9","serviceConfigId":"2024-10-18r0","serviceRolloutId":"2024-10-18r0","checkInfo":{"unusedArguments":["caller_ip","private_caller_ip"],"consumerInfo":{"projectNumber":"1046800315646","type":"PROJECT","consumerNumber":"1046800315646"}}}
2024/10/23 12:29:39 calling allocate quota
{"operationId":"9fec9bdf-9088-4bbc-8bbc-a1e2587ddbd9","serviceConfigId":"2024-10-18r0"}
2024/10/23 12:29:39 constructing operation to report
2024/10/23 12:29:39 calling report
{"serviceConfigId":"2024-10-18r0","serviceRolloutId":"2024-10-18r0"}

Areas that haven't been explored yet include

  • Quotas
  • Integrating actual Service config and request values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions