getmoto / moto

A library that allows you to easily mock out tests based on AWS infrastructure.

Home Page:http://docs.getmoto.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect validation for describe_metric_filters parameter

foxmulder900 opened this issue · comments

The existing validation for the describe_metric_filters parameter metricNamespace correctly implements the pattern documented by AWS here:
https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeMetricFilters.html#CWL-DescribeMetricFilters-request-metricNamespace

However that documentation is incorrect, the actual allowed namespace characters are described here:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace

I took a shot at updating the regex here:
#7612