5 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/read_config_nil.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | local s = read_config("string")
6 | if s ~= nil then error("string") end
7 |
8 | function process_message ()
9 | return 0
10 | end
11 |
12 | function timer_event()
13 | end
14 |
15 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/simple_count.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | count = 0
6 |
7 | function process_message ()
8 | count = count + 1
9 | inject_payload("txt", "", count)
10 | return 0
11 | end
12 |
13 | function timer_event(ns)
14 | end
15 |
16 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/timerinject.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 |
6 | function process_message ()
7 | return 0
8 | end
9 |
10 |
11 | function timer_event(ns)
12 | for i = 1, 11 do
13 | inject_payload("txt", "", "test")
14 | end
15 | end
16 |
--------------------------------------------------------------------------------
/packaging/debian/heka.postinst.in:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | set -eu
4 | USER="heka"
5 | GROUP="$USER"
6 |
7 | if [ ! -d /etc/heka/conf.d/ ]
8 | then
9 | mkdir -p /etc/heka/conf.d/
10 | cp /usr/share/heka/examples/hekad.toml /etc/heka/conf.d/00-hekad.toml
11 | fi
12 |
13 | if [ ! -d /usr/share/doc/heka/ ]
14 | then
15 | mkdir -p /usr/share/doc/heka
16 | ln -s /usr/share/heka/examples /usr/share/doc/heka/examples
17 | fi
18 |
19 | #DEBHELPER#
20 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/processinject.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 |
6 | function process_message ()
7 | for i = 1, 2 do
8 | inject_payload("txt", "", "test")
9 | end
10 | return 0
11 | end
12 |
13 |
14 | function timer_event(ns)
15 | end
16 |
17 |
--------------------------------------------------------------------------------
/docs/source/sandbox/output.rst:
--------------------------------------------------------------------------------
1 | .. _sandboxoutput:
2 |
3 | .. include:: ../config/outputs/sandbox.rst
4 | :start-line: 1
5 |
6 | .. _sandboxoutputs:
7 |
8 | Available Sandbox Outputs
9 | -------------------------
10 | - none
11 |
12 | Externally Available Sandbox Outputs
13 | ------------------------------------
14 |
15 | - `Example Redshift Output `_
16 |
17 |
--------------------------------------------------------------------------------
/dasher/javascript/templates/health/decoders_index.mustache:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/docs/source/config/decoders/protobuf.rst:
--------------------------------------------------------------------------------
1 | .. _config_protobuf_decoder:
2 |
3 | Protobuf Decoder
4 | ================
5 |
6 | Plugin Name: **ProtobufDecoder**
7 |
8 | The ProtobufDecoder is used for Heka message objects that have been serialized
9 | into protocol buffers format. This is the format that Heka uses to communicate
10 | with other Heka instances, so one will always be included in your Heka
11 | configuration under the name "ProtobufDecoder", whether specified or not. The
12 | ProtobufDecoder has no configuration options.
13 |
14 | The hekad protocol buffers message schema is defined in the `message.proto`
15 | file in the `message` package.
16 |
17 | Example:
18 |
19 | .. code-block:: ini
20 |
21 | [ProtobufDecoder]
22 |
23 | .. seealso:: `Protocol Buffers - Google's data interchange format
24 | `_
25 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/encoder_json.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | require "cjson"
6 |
7 | local msg = {
8 | Timestamp = nil,
9 | Hostname = nil,
10 | Payload = nil,
11 | Type = nil,
12 | Pid = nil,
13 | Severity = nil,
14 | Fields = nil
15 | }
16 |
17 | function process_message()
18 | msg.Timestamp = read_message("Timestamp")
19 | msg.Hostname = read_message("Hostname")
20 | msg.Pid = read_message("Pid")
21 | msg.Severity = read_message("Severity")
22 | msg.Payload = read_message("Payload")
23 | msg.Type = read_message("Type")
24 | inject_payload("json", "message_table", cjson.encode(msg))
25 | return 0
26 | end
27 |
--------------------------------------------------------------------------------
/packaging/debian/heka.preinst.in:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | USER="heka"
6 | GROUP="$USER"
7 |
8 | # If we use NIS then errors should be tolerated.
9 | if which ypwhich >/dev/null 2>&1 && ypwhich >/dev/null 2>&1
10 | then
11 | set +e
12 | fi
13 |
14 | if ! getent group $GROUP >/dev/null
15 | then
16 | addgroup --system $GROUP >/dev/null
17 | fi
18 |
19 | # creating user if it isn't already there
20 | if ! getent passwd $USER >/dev/null
21 | then
22 | adduser \
23 | --system \
24 | --disabled-login \
25 | --ingroup $GROUP \
26 | --no-create-home \
27 | --home /var/cache/hekad \
28 | --gecos "heka daemon" \
29 | --shell /bin/false \
30 | $USER >/dev/null
31 | fi
32 |
33 | # end of NIS tolerance zone
34 | set -e
35 |
36 | install -d -m0755 -o$USER -g$GROUP /var/cache/hekad
37 |
38 | #DEBHELPER#
39 |
--------------------------------------------------------------------------------
/plugins/smtp/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package smtp
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(EncoderSpec)
27 | r.AddSpec(SmtpOutputSpec)
28 |
29 | gospec.MainGoTest(r, t)
30 | }
31 |
--------------------------------------------------------------------------------
/docs/source/config/filters/counter.rst:
--------------------------------------------------------------------------------
1 | .. _config_counter_filter:
2 |
3 | Counter Filter
4 | ==============
5 |
6 | Plugin Name: **CounterFilter**
7 |
8 | Once per ticker interval a CounterFilter will generate a message of type `heka
9 | .counter-output`. The payload will contain text indicating the number of
10 | messages that matched the filter's `message_matcher` value during that
11 | interval (i.e. it counts the messages the plugin received). Every ten
12 | intervals an extra message (also of type `heka.counter-output`) goes out,
13 | containing an aggregate count and average per second throughput of messages
14 | received.
15 |
16 | Config:
17 |
18 | - ticker_interval (int, optional):
19 | Interval between generated counter messages, in seconds. Defaults to 5.
20 |
21 | Example:
22 |
23 | .. code-block:: ini
24 |
25 | [CounterFilter]
26 | message_matcher = "Type != 'heka.counter-output'"
27 |
--------------------------------------------------------------------------------
/plugins/file/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package file
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(FileOutputSpec)
27 | r.AddSpec(FilePollingInputSpec)
28 |
29 | gospec.MainGoTest(r, t)
30 | }
31 |
--------------------------------------------------------------------------------
/logstreamer/logstream_specs_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | # Mike Trinkala (trink@mozilla.com)
13 | #
14 | # ***** END LICENSE BLOCK *****/
15 | package logstreamer
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.AddSpec(FilehandlingSpec)
25 | r.AddSpec(ReaderSpec)
26 | gospec.MainGoTest(r, t)
27 | }
28 |
--------------------------------------------------------------------------------
/pipeline/pipeline_signals_windows.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Victor Ng (vng@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package pipeline
16 |
17 | import (
18 | "syscall"
19 | )
20 |
21 | // Define it since it is not defined for Windows.
22 |
23 | // Note that you will need to manually send signal 10 to hekad as
24 | // SIGUSR1 isn't defined on Windows.
25 |
26 | const SIGUSR1 = syscall.Signal(0xa)
27 | const SIGUSR2 = syscall.Signal(0xb)
28 |
--------------------------------------------------------------------------------
/plugins/payload/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package payload
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(MultiDecoderSpec)
27 | r.AddSpec(PayloadDecodersSpec)
28 |
29 | gospec.MainGoTest(r, t)
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/statsd/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package statsd
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(StatsdInputSpec)
27 | r.AddSpec(StatsToFieldsDecoderSpec)
28 |
29 | gospec.MainGoTest(r, t)
30 | }
31 |
--------------------------------------------------------------------------------
/docs/source/config/outputs/sandbox.rst:
--------------------------------------------------------------------------------
1 | .. _config_sandbox_output:
2 |
3 | Sandbox Output
4 | ==============
5 |
6 | .. versionadded:: 0.9
7 |
8 | Plugin Name: **SandboxOutput**
9 |
10 | The SandboxOutput provides a flexible execution environment for data encoding
11 | and transmission without the need to recompile Heka. See :ref:`sandbox`.
12 |
13 | .. _sandboxoutput_settings:
14 |
15 | Config:
16 |
17 | - The common output configuration parameter 'encoder' is ignored since all data
18 | transformation should happen in the plugin.
19 | - :ref:`config_common_sandbox_parameters`
20 | - timer_event_on_shutdown (bool):
21 | True if the sandbox should have its timer_event function called on shutdown.
22 |
23 | Example
24 |
25 | .. code-block:: ini
26 |
27 | [SandboxFileOutput]
28 | type = "SandboxOutput"
29 | filename = "fileoutput.lua"
30 |
31 | [SandboxFileOutput.config]
32 | path = "mylog.txt"
33 |
34 |
--------------------------------------------------------------------------------
/plugins/udp/all_specs_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2014
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package udp
16 |
17 | import (
18 | gs "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gs.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(UdpInputSpec)
27 | r.AddSpec(UdpInputSpecFailure)
28 | r.AddSpec(UdpOutputSpec)
29 |
30 | gs.MainGoTest(r, t)
31 | }
32 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/nagios.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | local state = 0
6 |
7 | function process_message ()
8 | return 0
9 | end
10 |
11 |
12 | function timer_event(ns)
13 |
14 | if state == 0 then
15 | add_to_payload("OK:Ok alerts are working!")
16 | elseif state == 1 then
17 | add_to_payload("WARNING:Warning alerts are working!")
18 | elseif state == 2 then
19 | add_to_payload("CRITICAL:Critical alerts are working!")
20 | elseif state == 3 then
21 | add_to_payload("UNKNOWN:Unknown alerts are working!")
22 | end
23 | state = state + 1
24 | if state == 4 then state = 0 end
25 |
26 | inject_payload("nagios-external-command", "PROCESS_SERVICE_CHECK_RESULT")
27 | end
28 |
29 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/hekabench_cbuf_counter.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | require "circular_buffer"
6 |
7 | last_inject = 0
8 | count = 0
9 | cnts = circular_buffer.new(3600, 1, 1) -- 1 hour window with 1 second resolution
10 | local MESSAGES = cnts:set_header(1, "Messages", "count")
11 |
12 | function process_message ()
13 | -- normally we would use the message time stamp but flood messages have a fixed time
14 | count = count + 1
15 | return 0
16 | end
17 |
18 |
19 | function timer_event(ns)
20 | cnts:add(ns, MESSAGES, count)
21 | count = 0
22 | if ns - last_inject > 60e9 then -- write the aggregate once a minute
23 | inject_payload("cbuf", "", cnts)
24 | last_inject = ns
25 | end
26 | end
27 |
28 |
--------------------------------------------------------------------------------
/plugins/http/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package http
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(HttpInputSpec)
27 | r.AddSpec(HttpListenInputSpec)
28 | r.AddSpec(HttpOutputSpec)
29 |
30 | gospec.MainGoTest(r, t)
31 | }
32 |
--------------------------------------------------------------------------------
/sandbox/lua/testsupport/read_config.lua:
--------------------------------------------------------------------------------
1 | -- This Source Code Form is subject to the terms of the Mozilla Public
2 | -- License, v. 2.0. If a copy of the MPL was not distributed with this
3 | -- file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 |
5 | local s = read_config("string")
6 | if s ~= "widget" then error("string") end
7 |
8 | local n = read_config("int64")
9 | if n ~= 99 then return error("int") end
10 |
11 | local d = read_config("double")
12 | if d ~= 99.123 then error("double") end
13 |
14 | local b = read_config("bool")
15 | if b ~= true then error("bool") end
16 |
17 | local n = read_config("nil")
18 | if n ~= nil then error("nil") end
19 |
20 | local a = read_config("array")
21 | if a ~= nil then error("array") end
22 |
23 | local o = read_config("object")
24 | if o ~= nil then return error("object") end
25 |
26 | function process_message ()
27 | return 0
28 | end
29 |
30 | function timer_event()
31 | end
32 |
33 |
--------------------------------------------------------------------------------
/plugins/graphite/all_spec_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package graphite
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(CarbonOutputSpec)
27 | r.AddSpec(WhisperOutputSpec)
28 | r.AddSpec(WhisperRunnerSpec)
29 |
30 | gospec.MainGoTest(r, t)
31 | }
32 |
--------------------------------------------------------------------------------
/plugins/process/all_specs_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package process
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(ProcessChainSpec)
27 | r.AddSpec(ProcessInputSpec)
28 | r.AddSpec(ProcessDirectoryInputSpec)
29 |
30 | gospec.MainGoTest(r, t)
31 | }
32 |
--------------------------------------------------------------------------------
/plugins/tcp/all_specs_test.go:
--------------------------------------------------------------------------------
1 | /***** BEGIN LICENSE BLOCK *****
2 | # This Source Code Form is subject to the terms of the Mozilla Public
3 | # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 | # You can obtain one at http://mozilla.org/MPL/2.0/.
5 | #
6 | # The Initial Developer of the Original Code is the Mozilla Foundation.
7 | # Portions created by the Initial Developer are Copyright (C) 2012
8 | # the Initial Developer. All Rights Reserved.
9 | #
10 | # Contributor(s):
11 | # Rob Miller (rmiller@mozilla.com)
12 | #
13 | # ***** END LICENSE BLOCK *****/
14 |
15 | package tcp
16 |
17 | import (
18 | "github.com/rafrombrc/gospec/src/gospec"
19 | "testing"
20 | )
21 |
22 | func TestAllSpecs(t *testing.T) {
23 | r := gospec.NewRunner()
24 | r.Parallel = false
25 |
26 | r.AddSpec(TcpInputSpec)
27 | r.AddSpec(TcpOutputSpec)
28 | r.AddSpec(TlsSpec)
29 | r.AddSpec(TcpInputSpecFailure)
30 |
31 | gospec.MainGoTest(r, t)
32 | }
33 |
--------------------------------------------------------------------------------
/dasher/javascript/templates/sandboxes/sandboxes_index.mustache:
--------------------------------------------------------------------------------
1 |