PMM2 Integration Tests #1150
Annotations
3 errors and 1 notice
pmm-ui-tests/cli/support/types/output.ts#L59
1) tests/help.spec.ts:77:7 › PMM Client "--help" validation › PMM-T443 Verify pmm-admin add postgresql --help
Error: Stdout does not contain 'query-source="pgstatmonitor"'!
Expected substring: "query-source=\"pgstatmonitor\""
Received string: "Usage: pmm-admin add postgresql [<name> [<address>]]·
Add PostgreSQL to monitoring·
Arguments:
[<name>] Service name (autodetected default: fv-az392-199-postgresql)
[<address>] PostgreSQL address and port (default: 127.0.0.1:5432)·
Flags:
-h, --help Show context-sensitive help.
--server-url=SERVER-URL PMM Server URL in
***pmm-server-host/
format
--server-insecure-tls Skip PMM Server TLS certificate validation
--debug Enable debug logging
--trace Enable trace logging (implies debug)
--pmm-agent-listen-port=7777
Set listen port of pmm-agent
--json Enable JSON output
-v, --version Show application version·
--socket=STRING Path to socket
--username=\"postgres\" PostgreSQL username
--*** PostgreSQL password
--database=STRING PostgreSQL database
--agent-*** Custom password for /metrics endpoint
--credentials-source=STRING
Credentials provider
--node-id=STRING Node ID (default is autodetected)
--pmm-agent-id=STRING The pmm-agent identifier which runs this
instance (default is autodetected)
--query-source=\"pgstatements\"
Source of SQL queries, one of: pgstatements,
pgstatmonitor, none (default: pgstatements)
--environment=STRING Environment name
--cluster=STRING Cluster name
--replication-set=STRING Replication set name
--custom-labels=KEY=VALUE,...
Custom user-assigned labels
--skip-connection-check Skip connection check
--tls Use TLS to connect to the database
--tls-ca-file=STRING TLS CA certificate file
--tls-cert-file=STRING TLS certificate file
--tls-key-file=STRING TLS certificate key file
--tls-skip-verify Skip TLS certificates validation
--max-query-length=NUMBER Limit query length in QAN (default:
server-defined; -1: no limit)
--disable-queryexamples Disable collection of query examples
--metrics-mode=\"auto\" Metrics flow mode, can be push - agent will
push metrics, pull - server scrape metrics
from agent or auto - chosen by server
--disable-collectors=DISABLE-COLLECTORS,...
Comma-separated list of collector names to
exclude from exporter
--service-name=NAME Service name (overrides positional argument)
--host=HOST Service hostname or IP address (overrides
positional argument)
--port=PORT Service port number (overrides positional
argument)
--log-level=\"warn\" Service logging level. One of: [debug, info,
warn, error]
"
at support/types/output.ts:59
57 | for (const val of expectedValues) {
58 | await test.step(`Verify command output contains ${val}`, async () => {
> 59 | expect.soft(this.stdout, `Stdout does
|
pmm-ui-tests/cli/support/types/output.ts#L65
1) tests/help.spec.ts:77:7 › PMM Client "--help" validation › PMM-T443 Verify pmm-admin add postgresql --help
Error: 'Contains all elements' failed with 1 error(s):
Error: Stdout does not contain 'query-source="pgstatmonitor"'!
Expected length: 0
Received length: 1
Received array: [{"message": "Error: Stdout does not contain 'query-source=\"pgstatmonitor\"'!·
Expected substring: \"query-source=\\\"pgstatmonitor\\\"\"
Received string: \"Usage: pmm-admin add postgresql [<name> [<address>]]·
Add PostgreSQL to monitoring·
Arguments:
[<name>] Service name (autodetected default: fv-az392-199-postgresql)
[<address>] PostgreSQL address and port (default: 127.0.0.1:5432)·
Flags:
-h, --help Show context-sensitive help.
--server-url=SERVER-URL PMM Server URL in
***pmm-server-host/
format
--server-insecure-tls Skip PMM Server TLS certificate validation
--debug Enable debug logging
--trace Enable trace logging (implies debug)
--pmm-agent-listen-port=7777
Set listen port of pmm-agent
--json Enable JSON output
-v, --version Show application version·
--socket=STRING Path to socket
--username=\\\"postgres\\\" PostgreSQL username
--*** PostgreSQL password
--database=STRING PostgreSQL database
--agent-*** Custom password for /metrics endpoint
--credentials-source=STRING
Credentials provider
--node-id=STRING Node ID (default is autodetected)
--pmm-agent-id=STRING The pmm-agent identifier which runs this
instance (default is autodetected)
--query-source=\\\"pgstatements\\\"
Source of SQL queries, one of: pgstatements,
pgstatmonitor, none (default: pgstatements)
--environment=STRING Environment name
--cluster=STRING Cluster name
--replication-set=STRING Replication set name
--custom-labels=KEY=VALUE,...
Custom user-assigned labels
--skip-connection-check Skip connection check
--tls Use TLS to connect to the database
--tls-ca-file=STRING TLS CA certificate file
--tls-cert-file=STRING TLS certificate file
--tls-key-file=STRING TLS certificate key file
--tls-skip-verify Skip TLS certificates validation
--max-query-length=NUMBER Limit query length in QAN (default:
server-defined; -1: no limit)
--disable-queryexamples Disable collection of query examples
--metrics-mode=\\\"auto\\\" Metrics flow mode, can be push - agent will
push metrics, pull - server scrape metrics
from agent or auto - chosen by server
--disable-collectors=DISABLE-COLLECTORS,...
Comma-separated list of collector names to
exclude from exporter
--service-name=NAME Service name (overrides positional argument)
--host=HOST Service hostname or IP address (overrides
positional argument)
--port=PORT Service port number (overrides positional
argument)
--log-level=\\\"warn\\\" Service logging level. One of: [debug, info,
warn, error]
\"", "
|
|
|
The logs for this run have expired and are no longer available.
Loading