Bert Blommers

Results 388 comments of Bert Blommers

Hi @sion908, there is no way to persist the state, but you can use the Recorder to re-rum a specific set of operations. https://docs.getmoto.org/en/latest/docs/configuration/recorder/index.html Does that help you?

Ah, right, I understand - thank you for the explanation @gael-ft. > But then I just realized that I couldn't imagine any current existing test using this endpoint to validate...

Hi @LiMuBei, if you make the POST request to `http://motoapi.amazonaws.com/moto-api/static/sagemaker/endpoint-results`, the Moto decorator should intercept it and calls to `invoke_endpoint` should return the custom response. If it doesn't work with...

Hi @LiMuBei, the test uses a custom `account_id`, but it's different from the one that Moto uses. It does work if you change that: ```diff - monkeypatch.setenv("AWS_ACCOUNT_ID", "1234567890") + monkeypatch.setenv("AWS_ACCOUNT_ID",...

Hi @LiMuBei, the endpoint name might not be known, that's why it's never mentioned. The API request sends a _list_ of expected results, and the first call to `invoke_endpoint` simply...

Hmm.. interesting. If you replace the `handler(..)`-call with this code, you can see what the queue looks like @LiMuBei : ```python from moto.sagemakerruntime.models import sagemakerruntime_backends for account, regions in sagemakerruntime_backends.items():...

Closing due to lack of response. If this is still an issue, just reply to the questions I posed earlier, and we can revisit this.

Hi @Adriana671, I would suggest using the context manager instead in combination with fixtures. The following does work: ``` @pytest.fixture(autouse=True) def glue_client(aws_credentials): with mock_aws(): yield boto3.client("glue", region_name="eu-central-1") ```

Hey @viren-nadkarni! Do you want to add some tests for this as well in Moto? Just to prevent it from breaking again in the future

Hi @ruhrohraggy, can you share the encryption service as well? Does that do anything special? Can you reproduce this problem if, instead of encrypting/decrypting, you make other calls to to...