@@ -38,28 +38,12 @@ func Test_pluginListCmdWithPlugins(t *testing.T) {
3838 pluginTestConfigFile := "../gatewayd_plugins.yaml"
3939 output , err := executeCommandC (rootCmd , "plugin" , "list" , "-p" , pluginTestConfigFile )
4040 require .NoError (t , err , "plugin list command should not have returned an error" )
41- assert .Equal (t , `Total plugins: 1
42- Plugins:
43- Name: gatewayd-plugin-cache
44- Enabled: true
45- Path: ../gatewayd-plugin-cache/gatewayd-plugin-cache
46- Args: --log-level debug
47- Env:
48- MAGIC_COOKIE_KEY=GATEWAYD_PLUGIN
49- MAGIC_COOKIE_VALUE=5712b87aa5d7e9f9e9ab643e6603181c5b796015cb1c09d6f5ada882bf2a1872
50- REDIS_URL=redis://localhost:6379/0
51- EXPIRY=1h
52- METRICS_ENABLED=True
53- METRICS_UNIX_DOMAIN_SOCKET=/tmp/gatewayd-plugin-cache.sock
54- METRICS_PATH=/metrics
55- PERIODIC_INVALIDATOR_ENABLED=True
56- PERIODIC_INVALIDATOR_INTERVAL=1m
57- PERIODIC_INVALIDATOR_START_DELAY=1m
58- API_ADDRESS=localhost:18080
59- EXIT_ON_STARTUP_ERROR=False
60- SENTRY_DSN=https://70eb1abcd32e41acbdfc17bc3407a543@o4504550475038720.ingest.sentry.io/4505342961123328
61- Checksum: 054e7dba9c1e3e3910f4928a000d35c8a6199719fad505c66527f3e9b1993833
62- ` ,
41+ assert .Contains (t ,
6342 output ,
43+ "Total plugins: 1" ,
44+ "plugin list command should have returned the correct output" )
45+ assert .Contains (t ,
46+ output ,
47+ "Name: gatewayd-plugin-cache" ,
6448 "plugin list command should have returned the correct output" )
6549}
0 commit comments