Debian Codegraph @

ansible_collections/community/rabbitmq/tests/unit/modules/rabbitmq_user_fixtures.py

raw
1 rabbitmq_3_6_status = '''
2 Status of node rabbit@vagrant
3 [{pid,5519},
4 {running_applications,
5 [{rabbit,"RabbitMQ","version_num"},
6 {mnesia,"MNESIA CXC 138 12","4.15.3"},
7 {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
8 {ssl,"Erlang/OTP SSL application","8.2.3"},
9 {public_key,"Public key infrastructure","1.5.2"},
10 {asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
11 {rabbit_common,
12 "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
13 "3.6.10"},
14 {xmerl,"XML parser","1.3.16"},
15 {crypto,"CRYPTO","4.2"},
16 {compiler,"ERTS CXC 138 10","7.1.4"},
17 {os_mon,"CPO CXC 138 46","2.4.4"},
18 {syntax_tools,"Syntax tools","2.1.4"},
19 {sasl,"SASL CXC 138 11","3.1.1"},
20 {stdlib,"ERTS CXC 138 10","3.4.3"},
21 {kernel,"ERTS CXC 138 10","5.4.1"}]},
22 {os,{unix,linux}},
23 {erlang_version,
24 "Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:64] [kernel-poll:true]\n"},
25 {memory,
26 [{total,49712064},
27 {connection_readers,0},
28 {connection_writers,0},
29 {connection_channels,0},
30 {connection_other,0},
31 {queue_procs,2744},
32 {queue_slave_procs,0},
33 {plugins,0},
34 {other_proc,17493000},
35 {mnesia,65128},
36 {metrics,184272},
37 {mgmt_db,0},
38 {msg_index,41832},
39 {other_ets,1766176},
40 {binary,43576},
41 {code,21390833},
42 {atom,891849},
43 {other_system,8014118}]},
44 {alarms,[]},
45 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
46 {vm_memory_high_watermark,0.4},
47 {vm_memory_limit,413340467},
48 {disk_free_limit,50000000},
49 {disk_free,61216505856},
50 {file_descriptors,
51 [{total_limit,65436},
52 {total_used,2},
53 {sockets_limit,58890},
54 {sockets_used,0}]},
55 {processes,[{limit,1048576},{used,153}]},
56 {run_queue,0},
57 {uptime,1795},
58 {kernel,{net_ticktime,60}}]
59 root@vagrant:/home/vagrant# rabbitmqctl -q status
60 [{pid,5519},
61 {running_applications,
62 [{rabbit,"RabbitMQ","3.6.10"},
63 {mnesia,"MNESIA CXC 138 12","4.15.3"},
64 {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
65 {ssl,"Erlang/OTP SSL application","8.2.3"},
66 {public_key,"Public key infrastructure","1.5.2"},
67 {asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
68 {rabbit_common,
69 "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
70 "3.6.10"},
71 {xmerl,"XML parser","1.3.16"},
72 {crypto,"CRYPTO","4.2"},
73 {compiler,"ERTS CXC 138 10","7.1.4"},
74 {os_mon,"CPO CXC 138 46","2.4.4"},
75 {syntax_tools,"Syntax tools","2.1.4"},
76 {sasl,"SASL CXC 138 11","3.1.1"},
77 {stdlib,"ERTS CXC 138 10","3.4.3"},
78 {kernel,"ERTS CXC 138 10","5.4.1"}]},
79 {os,{unix,linux}},
80 {erlang_version,
81 "Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:64] [kernel-poll:true]\n"},
82 {memory,
83 [{total,49770912},
84 {connection_readers,0},
85 {connection_writers,0},
86 {connection_channels,0},
87 {connection_other,0},
88 {queue_procs,2744},
89 {queue_slave_procs,0},
90 {plugins,0},
91 {other_proc,17554528},
92 {mnesia,65128},
93 {metrics,184272},
94 {mgmt_db,0},
95 {msg_index,41832},
96 {other_ets,1766176},
97 {binary,42816},
98 {code,21390833},
99 {atom,891849},
100 {other_system,8012198}]},
101 {alarms,[]},
102 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
103 {vm_memory_high_watermark,0.4},
104 {vm_memory_limit,413340467},
105 {disk_free_limit,50000000},
106 {disk_free,61216497664},
107 {file_descriptors,
108 [{total_limit,65436},
109 {total_used,2},
110 {sockets_limit,58890},
111 {sockets_used,0}]},
112 {processes,[{limit,1048576},{used,153}]},
113 {run_queue,0},
114 {uptime,17139},
115 {kernel,{net_ticktime,60}}]'''
116
117 rabbitmq_3_7_status = \
118 '{"pid":31701,"running_applications":[' \
119 '["rabbit",[82,97,98,98,105,116,77,81],version_num],' \
120 '["rabbit_common",[77,111,100,117,108,101,115,32,115,104,97,114,101,100,32,98,121,32,114,97,98,98,105,116,109,' \
121 '113,45,115,101,114,118,101,114,32,97,110,100,32,114,97,98,98,105,116,109,113,45,101,114,108,97,110,103,45,99,' \
122 '108,105,101,110,116],[51,46,55,46,54]],' \
123 '["ranch_proxy_protocol",[82,97,110,99,104,32,80,114,111,120,121,32,80,114,111,116,111,99,111,108,32,84,114,97,' \
124 '110,115,112,111,114,116],[49,46,53,46,48]],' \
125 '["ranch",[83,111,99,107,101,116,32,97,99,99,101,112,116,111,114,32,112,111,111,108,32,102,111,114,32,84,67,80,' \
126 '32,112,114,111,116,111,99,111,108,115,46],[49,46,53,46,48]],["ssl",[69,114,108,97,110,103,47,79,84,80,32,83,83,' \
127 '76,32,97,112,112,108,105,99,97,116,105,111,110],[56,46,50,46,51]],' \
128 '["public_key",[80,117,98,108,105,99,32,107,101,121,32,105,110,102,114,97,115,116,114,117,99,116,117,114,101],' \
129 '[49,46,53,46,50]],' \
130 '["asn1",[84,104,101,32,69,114,108,97,110,103,32,65,83,78,49,32,99,111,109,112,105,108,101,114,32,118,101,114,' \
131 '115,105,111,110,32,53,46,48,46,52],[53,46,48,46,52]],' \
132 '["crypto",[67,82,89,80,84,79],[52,46,50]],["xmerl",[88,77,76,32,112,97,114,115,101,114],[49,46,51,46,49,54]],' \
133 '["recon",[68,105,97,103,110,111,115,116,105,99,32,116,111,111,108,115,32,102,111,114,32,112,114,111,100,117,99,' \
134 '116,105,111,110,32,117,115,101],[50,46,51,46,50]],' \
135 '["inets",[73,78,69,84,83,32,32,67,88,67,32,49,51,56,32,52,57],[54,46,52,46,53]],' \
136 '["jsx",[97,32,115,116,114,101,97,109,105,110,103,44,32,101,118,101,110,116,101,100,32,106,115,111,110,32,112,97,' \
137 '114,115,105,110,103,32,116,111,111,108,107,105,116],[50,46,56,46,50]],["os_mon",[67,80,79,32,32,67,88,67,32,49,' \
138 '51,56,32,52,54],[50,46,52,46,52]],' \
139 '["mnesia",[77,78,69,83,73,65,32,32,67,88,67,32,49,51,56,32,49,50],[52,46,49,53,46,51]],' \
140 '["lager",[69,114,108,97,110,103,32,108,111,103,103,105,110,103,32,102,114,97,109,101,119,111,114,107],' \
141 '[51,46,53,46,49]],' \
142 '["goldrush",[69,114,108,97,110,103,32,101,118,101,110,116,32,115,116,114,101,97,109,32,112,114,111,99,101,115,' \
143 '115,111,114],[48,46,49,46,57]],["compiler",[69,82,84,83,32,32,67,88,67,32,49,51,56,32,49,48],[55,46,49,46,52]],' \
144 '["syntax_tools",[83,121,110,116,97,120,32,116,111,111,108,115],[50,46,49,46,52]],' \
145 '["syslog",[65,110,32,82,70,67,32,51,49,54,52,32,97,110,100,32,82,70,67,32,53,52,50,52,32,99,111,109,112,108,' \
146 '105,97,110,116,32,108,111,103,103,105,110,103,32,102,114,97,109,101,119,111,114,107,46],[51,46,52,46,50]],' \
147 '["sasl",[83,65,83,76,32,32,67,88,67,32,49,51,56,32,49,49],[51,46,49,46,49]],' \
148 '["stdlib",[69,82,84,83,32,32,67,88,67,32,49,51,56,32,49,48],[51,46,52,46,51]],' \
149 '["kernel",[69,82,84,83,32,32,67,88,67,32,49,51,56,32,49,48],[53,46,52,46,49]]],' \
150 '"os":["unix","linux"],"erlang_version":[69,114,108,97,110,103,47,79,84,80,32,50,48,32,91,101,114,116,115,45,57,' \
151 '46,50,93,32,91,115,111,117,114,99,101,93,32,91,54,52,45,98,105,116,93,32,91,115,109,112,58,49,58,49,93,32,91,' \
152 '100,115,58,49,58,49,58,49,48,93,32,91,97,115,121,110,99,45,116,104,114,101,97,100,115,58,54,52,93,32,91,107,' \
153 '101,114,110,101,108,45,112,111,108,108,58,116,114,117,101,93,10],' \
154 '"memory":{"connection_readers":0,"connection_writers":0,"connection_channels":0,' \
155 '"connection_other":0,"queue_procs":0,"queue_slave_procs":0,"plugins":5736,"other_proc":23159832,' \
156 '"metrics":184608,"mgmt_db":0,"mnesia":76896,"other_ets":1882856,"binary":64120,"msg_index":57184,' \
157 '"code":24981937,"atom":1041593,"other_system":8993494,"allocated_unused":13066752,"reserved_unallocated":0,' \
158 '"strategy":"rss","total":{"erlang":60448256,"rss":72720384,"allocated":73515008}},"alarms":[],' \
159 '"listeners":[["clustering",25672,[58,58]],["amqp",5672,[58,58]]],"vm_memory_calculation_strategy":"rss",' \
160 '"vm_memory_high_watermark":0.4,"vm_memory_limit":413340467,"disk_free_limit":50000000,"disk_free":61108576256,' \
161 '"file_descriptors":{"total_limit":924,"total_used":4,"sockets_limit":829,"sockets_used":0},' \
162 '"processes":{"limit":1048576,"used":214},"run_queue":0,"uptime":173,"kernel":["net_ticktime",60]}'
163
164 rabbitmq_3_8_status = \
165 '{"active_plugins":[],"alarms":[],"config_files":[],"data_directory":"/var/lib/rabbitmq/mnesia/rabbit@vagrant",' \
166 '"disk_free":60898615296,"disk_free_limit":50000000,"enabled_plugin_file":"/etc/rabbitmq/enabled_plugins",' \
167 '"erlang_version":"Erlang/OTP 21 [erts-10.3.5.8] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:64]",' \
168 '"file_descriptors":{"sockets_limit":29399,"sockets_used":0,"total_limit":32668,"total_used":4},' \
169 '"listeners":[{"interface":"[::]","node":"rabbit@vagrant","port":25672,"protocol":"clustering",' \
170 '"purpose":"inter-node and CLI tool communication"},{"interface":"[::]","node":"rabbit@vagrant",' \
171 '"port":5672,"protocol":"amqp","purpose":"AMQP 0-9-1 and AMQP 1.0"}],' \
172 '"log_files":["/var/log/rabbitmq/[email protected]","/var/log/rabbitmq/rabbit@vagrant_upgrade.log"],' \
173 '"memory":{"allocated_unused":14962432,"atom":1180881,"binary":82304,"code":26631176,"connection_channels":0,' \
174 '"connection_other":0,"connection_readers":0,"connection_writers":0,"metrics":195308,"mgmt_db":0,"mnesia":76896,' \
175 '"msg_index":57088,"other_ets":2666736,"other_proc":25333896,"other_system":10068879,"plugins":11732,' \
176 '"queue_procs":0,"queue_slave_procs":0,"quorum_ets":42368,"quorum_queue_procs":0,"reserved_unallocated":0,' \
177 '"strategy":"rss","total":{"erlang":66347264,"rss":80506880,"allocated":81309696}},"net_ticktime":60,' \
178 '"os":"Linux","pid":9829,"processes":{"limit":1048576,"used":259},"rabbitmq_version":"version_num","run_queue":1,' \
179 '"totals":{"virtual_host_count":2,"connection_count":0,"queue_count":0},"uptime":66,' \
180 '"vm_memory_calculation_strategy":"rss","vm_memory_high_watermark_limit":413340467,' \
181 '"vm_memory_high_watermark_setting":{"relative":0.4}}'