def METHOD_NAME(definitions_graphql_context, snapshot):
    selector = infer_resource_selector(definitions_graphql_context, name="my_resource_env_vars")
    result = execute_dagster_graphql(
        definitions_graphql_context,
        TOP_LEVEL_RESOURCE_QUERY,
        {"selector": selector},
    )
    assert not result.errors
    assert result.data
    assert result.data["topLevelResourceDetailsOrError"]
    my_resource = result.data["topLevelResourceDetailsOrError"]
    assert my_resource["description"] == "My description."
    assert len(my_resource["configFields"]) == 2
    assert sorted(my_resource["configuredValues"], key=lambda cv: cv["key"]) == [
        {
            "key": "a_string",
            "value": "MY_STRING",
            "type": "ENV_VAR",
        },
        {
            "key": "an_unset_string",
            "value": '"defaulted"',
            "type": "VALUE",
        },
    ]
    snapshot.assert_match(result.data)