diff --git a/tests/ert/unit_tests/dark_storage/test_dark_storage_state.py b/tests/ert/unit_tests/dark_storage/test_dark_storage_state.py index d93320e4982..460e7812662 100644 --- a/tests/ert/unit_tests/dark_storage/test_dark_storage_state.py +++ b/tests/ert/unit_tests/dark_storage/test_dark_storage_state.py @@ -8,7 +8,7 @@ import pandas as pd import polars import pytest -from hypothesis import assume +from hypothesis import assume, reproduce_failure from hypothesis.stateful import rule from starlette.testclient import TestClient @@ -42,14 +42,23 @@ def get_experiments_through_client(self): ens.id for ens in storage_experiment.ensembles } - @rule(model_experiment=StatefulStorageTest.experiments) - def get_observations_through_client(self, model_experiment): - response = self.client.get(f"/experiments/{model_experiment.uuid}/observations") - assert {r["name"] for r in response.json()} == { - key - for _, ds in model_experiment.observations.items() + @reproduce_failure( + "6.122.1", + b"AXicpVd5iFVVGP9+59779mVm3szzzSg60phpWtNmGRhqUVq2kCaIGTlmIi2OFUFkNSVqooZrpklZkpptZhZFSTNJGaZNDUU7STYRWblEYRG9vu+cc++79+UfUee+8+5Zv327RPDqXQIpInKg4CDBo/IHpBtkuWv6nE0d/oQ62gaPHFJqq0GSV/Z8tWGmPjeMe2fTNt0wSI7FbpQ2S1+xwABGwS+lscVkzquC7og9QTPlD/LmdZS/J/+q2nk9aL1smRsH7Dr3jvpvztnUK+sXALlfjoEuAd0GOhf0M6jBnnNB14GmgX4FLQa9L2iQn38DkBndChoPZPdO45VVedAqg+Td2x+5NLlj5+1yGbGLXwC9wwieWg16Tu/7FGjKNdm7ALffdnnTGFC5mrujoMs1A4v43MonGOWi03ljokI65/JA1QNpQiPiyMiL6HyL6LamWZk9G+eZWSf5yPUTQsE0NKCArGauhBSLGjUMqIQY0nCRJR7IsA4JJHnk0Gx9rdy7TtojPls+9AwZHTUH8OtQIIGTZgwuami4q0Wwx7cYikCIzByhPf1Q72nZ+8psaJqVczTedeZkMFNFuGNEUs4ERkK6O/xgnIGyqFwuf32kfQREavvSC2457fyeezUdW75d+8WDav5Ua1wdns+XLM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NNAi0DHQx6CuWyOt8YwToVdBPoJtAH8sy84PcHJZZC+g9INF9B6ivFuxW5vnDoZyt2geCpNZxcLRtw+ylWLibaDxVklG42gtl6EqMqrY9v5s8z39K//5rC+BRrXYzs/o/AIYg2pElN2TB7olv/oumDAaGVs9hvohGji9J40RK0+/Yt7Z517hAzDqRJkLik37Hbe3qRxezG3io3TVzoFJzIjS3oIIFsvFOj92QnigIRQXh4hX+q5PiRUpRTlK1/CikuMDkwC1VBud9SV8ZDvlFDt1rYiZuB+WMif1+goyk81h1uRYUjTrXVXKsFwJhYn9nvmdan6lzVpmYnUzuuvC3m3abiG2zuom7IYV0Fj46+PHWNd8j1geqES5Ldyw8DvPAlSxqydTO1ZqoCrnCSlCMRSoT6au/UHsHju/ZL5mFQl9XSpftcqjQnr3iz8ap8vU2w4sVW5syz/NnDJLpvtlC0Zt1j0SRZFN2aE6dt5/H2URM0bBc7z4tAC9DmVJi7FUymZnOJRJ13pfL5AttlOsVGvpnx9wqO2mnVFfq612+he/3QTE/qNFxpljLi3G5pbh7Yn9SiZGvZ6i48BwXTUJ0aMqdouwqF77p6r8Uf7Gk+LTH8Bsg+SrNKq/npyASiuuiPU6epw0wbu1NeSxb3ZTnSHWpUmLlfNSDb26usnldrshIiKJkPGaN0FIQTo689TdzgzRG", + ) + @rule(model_ensemble=StatefulStorageTest.ensembles) + def get_observations_through_client(self, model_ensemble): + model_experiment = self.storage.get_ensemble(model_ensemble.uuid).experiment + obs_keys = { + name: key + for name, ds in model_experiment.observations.items() for key in ds["observation_key"] } + for response_name in obs_keys: + response = self.client.get( + f"/ensembles/{model_ensemble.uuid}/records/{response_name}/observations" + ) + assert {r["name"] for r in response.json()} == list(obs_keys.values()) @rule(model_experiment=StatefulStorageTest.experiments) def get_ensembles_through_client(self, model_experiment):