prometheus/config/testdata
Owen Williams 436a439ed2 fix(utf8): fix config logic for name validation
We should only overwrite the ScrapeConfig if it is empty.

Added tests

part of https://github.com/prometheus/prometheus/issues/13095

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2024-08-23 15:16:48 -04:00
..
scrape_configs
agent_mode.good.yml
agent_mode.with_alert_manager.yml
agent_mode.with_alert_relabels.yml
agent_mode.with_remote_reads.yml
agent_mode.with_rule_files.yml
agent_mode.without_remote_writes.yml
azure_authentication_method.bad.yml
azure_bearertoken_basicauth.bad.yml
azure_client_id_missing.bad.yml
azure_client_secret_missing.bad.yml
azure_subscription_id_missing.bad.yml
azure_tenant_id_missing.bad.yml
bearertoken.bad.yml
bearertoken_basicauth.bad.yml
conf.good.yml
dropequal.bad.yml
dropequal1.bad.yml
ec2_filters_empty_values.bad.yml
ec2_token_file.bad.yml
empty_alert_relabel_config.bad.yml
empty_alertmanager_relabel_config.bad.yml
empty_metric_relabel_config.bad.yml
empty_rr_config.bad.yml
empty_rw_config.bad.yml
empty_rw_relabel_config.bad.yml
empty_scrape_config.bad.yml
empty_scrape_config_action.bad.yml
empty_static_config.bad.yml
empty_target_relabel_config.bad.yml
eureka_invalid_server.bad.yml
eureka_no_server.bad.yml
external_labels.good.yml
first.rules
global_timeout.good.yml
hetzner_role.bad.yml
http_token_file.bad.yml
http_url_bad_scheme.bad.yml
http_url_no_host.bad.yml
http_url_no_scheme.bad.yml
ionos_datacenter.bad.yml
jobname.bad.yml
jobname_dup.bad.yml
keepequal.bad.yml
keepequal1.bad.yml
kubernetes_api_server_with_own_namespace.bad.yml
kubernetes_authorization_basicauth.bad.yml
kubernetes_bearertoken.bad.yml
kubernetes_bearertoken_basicauth.bad.yml
kubernetes_empty_apiserver.good.yml
kubernetes_http_config_without_api_server.bad.yml
kubernetes_kubeconfig_with_apiserver.bad.yml
kubernetes_kubeconfig_with_http_config.bad.yml
kubernetes_kubeconfig_with_own_namespace.bad.yml
kubernetes_kubeconfig_without_apiserver.good.yml
kubernetes_namespace_discovery.bad.yml
kubernetes_role.bad.yml
kubernetes_selectors_duplicated_role.bad.yml
kubernetes_selectors_endpoints.bad.yml
kubernetes_selectors_endpoints.good.yml
kubernetes_selectors_incorrect_selector.bad.yml
kubernetes_selectors_ingress.bad.yml
kubernetes_selectors_ingress.good.yml
kubernetes_selectors_node.bad.yml
kubernetes_selectors_node.good.yml
kubernetes_selectors_pod.bad.yml
kubernetes_selectors_pod.good.yml
kubernetes_selectors_service.bad.yml
kubernetes_selectors_service.good.yml
labeldrop.bad.yml
labeldrop2.bad.yml
labeldrop3.bad.yml
labeldrop4.bad.yml
labeldrop5.bad.yml
labelkeep.bad.yml
labelkeep2.bad.yml
labelkeep3.bad.yml
labelkeep4.bad.yml
labelkeep5.bad.yml
labelmap.bad.yml
labelname.bad.yml
labelname2.bad.yml
labelvalue.bad.yml
lightsail_token_file.bad.yml
lowercase.bad.yml
lowercase2.bad.yml
lowercase3.bad.yml
marathon_authtoken_authorization.bad.yml
marathon_authtoken_authtokenfile.bad.yml
marathon_authtoken_basicauth.bad.yml
marathon_authtoken_bearertoken.bad.yml
marathon_no_servers.bad.yml
modulus_missing.bad.yml
openstack_availability.bad.yml
openstack_role.bad.yml
otlp_sanitize_resource_attributes.bad.yml
otlp_sanitize_resource_attributes.good.yml
ovhcloud_bad_service.bad.yml
ovhcloud_no_secret.bad.yml
puppetdb_bad_url.bad.yml
puppetdb_no_query.bad.yml
puppetdb_no_scheme.bad.yml
puppetdb_no_url.bad.yml
puppetdb_token_file.bad.yml
regex.bad.yml
remote_read_dup.bad.yml
remote_read_header.bad.yml
remote_read_url_missing.bad.yml
remote_write_authorization_header.bad.yml
remote_write_dup.bad.yml
remote_write_header.bad.yml
remote_write_retry_on_rate_limit.good.yml
remote_write_url_missing.bad.yml
remote_write_wrong_msg.bad.yml
roundtrip.good.yml
rules.bad.yml
rules_abs_path.good.yml
rules_abs_path_windows.good.yml
scaleway_no_secret.bad.yml
scaleway_role.bad.yml
scaleway_two_secrets.bad.yml
scrape_body_size_limit.bad.yml
scrape_config_default_validation_mode.yml fix(utf8): fix config logic for name validation 2024-08-23 15:16:48 -04:00
scrape_config_disable_compression.good.yml
scrape_config_files.bad.yml
scrape_config_files.good.yml
scrape_config_files2.good.yml
scrape_config_files_combined.good.yml
scrape_config_files_double_import.bad.yml
scrape_config_files_duplicate.bad.yml
scrape_config_files_glob.bad.yml
scrape_config_files_glob.good.yml
scrape_config_files_global.bad.yml
scrape_config_files_global_duplicate.bad.yml
scrape_config_files_only.good.yml
scrape_config_files_scrape_protocols.bad.yml
scrape_config_files_scrape_protocols2.bad.yml
scrape_config_global_validation_mode.yml fix(utf8): fix config logic for name validation 2024-08-23 15:16:48 -04:00
scrape_config_local_global_validation_mode.yml fix(utf8): fix config logic for name validation 2024-08-23 15:16:48 -04:00
scrape_config_local_validation_mode.yml fix(utf8): fix config logic for name validation 2024-08-23 15:16:48 -04:00
scrape_interval.bad.yml
scrape_interval_larger.good.yml
section_key_dup.bad.yml
static_config.bad.json
static_config.bad.yml
target_label_hashmod_missing.bad.yml
target_label_missing.bad.yml
tracing_invalid_authorization_header.bad.yml
tracing_invalid_compression.bad.yml
tracing_invalid_header.bad.yml
tracing_missing_endpoint.bad.yml
unknown_attr.bad.yml
unknown_global_attr.bad.yml
uppercase.bad.yml
uppercase2.bad.yml
uppercase3.bad.yml
url_in_targetgroup.bad.yml
uyuni_no_server.bad.yml
uyuni_token_file.bad.yml