Skip to content

Commit 035236f

Browse files
authored
[DBMON-5543] Update mysql integration tests to correctly assert on all metric emitted (DataDog#21165)
* Cleanup version specific complex innodb metric checks * Fix system_metrics testing * correctly assert metric calls * correctly assert replica calls * align complex config assertions * cleanup and formatting * Fix e2e test * fix for mariadb * Run format
1 parent 80155b6 commit 035236f

4 files changed

Lines changed: 164 additions & 192 deletions

File tree

mysql/tests/compose/mariadb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ services:
2929
- MARIADB_MASTER_PORT_NUMBER=3306
3030
ports:
3131
- "${MYSQL_SLAVE_PORT}:3306"
32+
volumes:
33+
- ${MYSQL_CONF_PATH}:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
3234
depends_on:
3335
- "mysql-master"

mysql/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def instance_complex():
102102
'schema_size_metrics': True,
103103
'table_size_metrics': True,
104104
'system_table_size_metrics': True,
105-
'table_row_stats_metrics': True,
105+
'table_rows_stats_metrics': True,
106106
'index_metrics': True,
107107
},
108108
'tags': tags.METRIC_TAGS,

0 commit comments

Comments
 (0)