web-console 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of web-console might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 647eeb94403f12eb6417e9efef39f3e774d310cf
4
- data.tar.gz: b7d76fc21a1a9d29e040cb85225954bcd70859a6
3
+ metadata.gz: 6345e88118d33e48c4ab72de54a6c74b23c2fdbc
4
+ data.tar.gz: 511be0643b84514121d1e860d8962ed725b8bc90
5
5
  SHA512:
6
- metadata.gz: 172dfd1ba3acf85a94be51149225c77cd8c138bf6f12bb54f8c1058868f70d09b9b69905980da0c3e14fb5ed8e1f43e0d10b43a9a8ac72dedc1c284e5fc54cc8
7
- data.tar.gz: 4c3edc80a684ff45fd9f798f14e776c5a734072b8eb98cc2eff6518353f416e4710561ac7a195e1c86df58cf6ea913408281d816eaac686b138f4c797ff97e28
6
+ metadata.gz: b1b307471ff2dcde9e25825a719314d81be5c64384de29f8739317405062dcfe7890f77c89dc45dd1baa2d77e5cb2a9a6cccab5dea3841140b48ea739bd9431d
7
+ data.tar.gz: 1694ef52f6d26584a9c9a099ed0f79f86fccf04b888cbb2ca1cbd3f899e0e9141294a9477d782563da7b6018ea11523440d8812ccf86f817d9774dca52e28742
@@ -126,7 +126,8 @@ automatic mount by setting this option to `false`.
126
126
  ### config.web_console.command
127
127
 
128
128
  By default, _Web Console_ will run `Rails.root.join('bin/rails console)` to
129
- spawn you a fresh Rails console.
129
+ spawn you a fresh Rails console. If the relative `bin/rails` does not exist, it
130
+ doesn't exist, `rails console` will be run.
130
131
 
131
132
  One of the advantages of being a [VT100] emulator is that _Web Console_ can run
132
133
  most of your terminal applications.
@@ -53,7 +53,13 @@ module WebConsole
53
53
  config.web_console.tap do |c|
54
54
  # +Rails.root+ is not available while we set the default values of the
55
55
  # other options. Default it during initialization.
56
- c.command = Rails.root.join('bin/rails console').to_s if c.command.blank?
56
+
57
+ # Not all people created their Rails 4 applications with the Rails 4
58
+ # generator, so bin/rails may not be available.
59
+ if c.command.blank?
60
+ local_rails = Rails.root.join('bin/rails')
61
+ c.command = "#{local_rails.executable? ? local_rails : 'rails'} console"
62
+ end
57
63
  end
58
64
  end
59
65
 
@@ -1,3 +1,3 @@
1
1
  module WebConsole
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
@@ -1556,5 +1556,1565 @@ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
1556
1556
   (0.0ms) begin transaction
1557
1557
  -------------------------------------------------------------------------
1558
1558
  WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
1559
+ -------------------------------------------------------------------------
1560
+  (0.1ms) rollback transaction
1561
+  (0.4ms) begin transaction
1562
+ --------------------------------------------------------------------
1563
+ WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
1564
+ --------------------------------------------------------------------
1565
+  (0.2ms) rollback transaction
1566
+  (0.1ms) begin transaction
1567
+ --------------------------------------------------------------------
1568
+ WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
1569
+ --------------------------------------------------------------------
1570
+  (0.1ms) rollback transaction
1571
+  (0.1ms) begin transaction
1572
+ ----------------------------------------------------------------------------
1573
+ WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
1574
+ ----------------------------------------------------------------------------
1575
+  (0.0ms) rollback transaction
1576
+  (0.1ms) begin transaction
1577
+ -----------------------------------------------
1578
+ WebConsole::ColorsTest: test_#default_is_:light
1579
+ -----------------------------------------------
1580
+  (0.0ms) rollback transaction
1581
+  (0.1ms) begin transaction
1582
+ --------------------------------------------------------------------
1583
+ WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
1584
+ --------------------------------------------------------------------
1585
+  (0.0ms) rollback transaction
1586
+  (0.1ms) begin transaction
1587
+ --------------------------------------------------------------------
1588
+ WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
1589
+ --------------------------------------------------------------------
1590
+  (0.1ms) rollback transaction
1591
+  (0.1ms) begin transaction
1592
+ ---------------------------------------------------------------------------
1593
+ WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
1594
+ ---------------------------------------------------------------------------
1595
+  (0.1ms) rollback transaction
1596
+  (0.1ms) begin transaction
1597
+ --------------------------------------------------------------------------------
1598
+ WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
1599
+ --------------------------------------------------------------------------------
1600
+  (0.1ms) rollback transaction
1601
+  (0.1ms) begin transaction
1602
+ -----------------------------------------------------------
1603
+ WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
1604
+ -----------------------------------------------------------
1605
+  (0.1ms) rollback transaction
1606
+  (0.1ms) begin transaction
1607
+ ----------------------------------------------------------------------------------
1608
+ WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
1609
+ ----------------------------------------------------------------------------------
1610
+  (0.0ms) rollback transaction
1611
+  (0.1ms) begin transaction
1612
+ --------------------------------------------------------------------------------------
1613
+ WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
1614
+ --------------------------------------------------------------------------------------
1615
+  (0.1ms) rollback transaction
1616
+  (0.1ms) begin transaction
1617
+ --------------------------------------------------------------------------
1618
+ WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
1619
+ --------------------------------------------------------------------------
1620
+  (0.1ms) rollback transaction
1621
+  (0.1ms) begin transaction
1622
+ ------------------------------------------------
1623
+ WebConsole::ConsoleSessionTest: test_errors_aref
1624
+ ------------------------------------------------
1625
+  (0.2ms) rollback transaction
1626
+  (0.1ms) begin transaction
1627
+ -----------------------------------------------------
1628
+ WebConsole::ConsoleSessionTest: test_find_coerces_ids
1629
+ -----------------------------------------------------
1630
+  (0.1ms) rollback transaction
1631
+  (0.1ms) begin transaction
1632
+ -------------------------------------------------
1633
+ WebConsole::ConsoleSessionTest: test_model_naming
1634
+ -------------------------------------------------
1635
+  (0.1ms) rollback transaction
1636
+  (0.1ms) begin transaction
1637
+ ------------------------------------------------------------------
1638
+ WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
1639
+ ------------------------------------------------------------------
1640
+  (0.1ms) rollback transaction
1641
+  (0.1ms) begin transaction
1642
+ -------------------------------------------------------------------------------
1643
+ WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_json_serializable
1644
+ -------------------------------------------------------------------------------
1645
+  (0.1ms) rollback transaction
1646
+  (0.1ms) begin transaction
1647
+ -----------------------------------------------
1648
+ WebConsole::ConsoleSessionTest: test_persisted?
1649
+ -----------------------------------------------
1650
+  (0.1ms) rollback transaction
1651
+  (0.1ms) begin transaction
1652
+ ----------------------------------------------------------------------------
1653
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
1654
+ ----------------------------------------------------------------------------
1655
+  (0.1ms) rollback transaction
1656
+  (0.1ms) begin transaction
1657
+ -----------------------------------------------------------------------------------
1658
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
1659
+ -----------------------------------------------------------------------------------
1660
+  (0.1ms) rollback transaction
1661
+  (0.1ms) begin transaction
1662
+ ---------------------------------------------------------------------------------------------
1663
+ WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
1664
+ ---------------------------------------------------------------------------------------------
1665
+  (0.1ms) rollback transaction
1666
+  (0.1ms) begin transaction
1667
+ ------------------------------------------------------------------------------
1668
+ WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
1669
+ ------------------------------------------------------------------------------
1670
+  (0.1ms) rollback transaction
1671
+  (0.1ms) begin transaction
1672
+ -------------------------------------------
1673
+ WebConsole::ConsoleSessionTest: test_to_key
1674
+ -------------------------------------------
1675
+  (0.1ms) rollback transaction
1676
+  (0.1ms) begin transaction
1677
+ ---------------------------------------------
1678
+ WebConsole::ConsoleSessionTest: test_to_param
1679
+ ---------------------------------------------
1680
+  (0.1ms) rollback transaction
1681
+  (0.1ms) begin transaction
1682
+ ----------------------------------------------------
1683
+ WebConsole::ConsoleSessionTest: test_to_partial_path
1684
+ ----------------------------------------------------
1685
+  (0.1ms) rollback transaction
1686
+  (0.1ms) begin transaction
1687
+ -------------------------------------------------------------------------------------
1688
+ WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
1689
+ -------------------------------------------------------------------------------------
1690
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1691
+ Completed 200 OK in 66ms (Views: 65.3ms | ActiveRecord: 0.0ms)
1692
+  (0.1ms) rollback transaction
1693
+  (0.1ms) begin transaction
1694
+ -------------------------------------------------------------------------------------------------
1695
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
1696
+ -------------------------------------------------------------------------------------------------
1697
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1698
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
1699
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
1700
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1701
+  (0.1ms) rollback transaction
1702
+  (0.1ms) begin transaction
1703
+ --------------------------------------------------------------------------------------------------------
1704
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
1705
+ --------------------------------------------------------------------------------------------------------
1706
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1707
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1708
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
1709
+ Completed 410 Gone in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1710
+  (0.1ms) rollback transaction
1711
+  (0.1ms) begin transaction
1712
+ ------------------------------------------------------------------------------------------
1713
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
1714
+ ------------------------------------------------------------------------------------------
1715
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1716
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1717
+ Processing by WebConsole::ConsoleSessionsController#configuration as HTML
1718
+ Unpermitted parameters: id
1719
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1720
+  (0.1ms) rollback transaction
1721
+  (0.1ms) begin transaction
1722
+ ----------------------------------------------------------------------------------
1723
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
1724
+ ----------------------------------------------------------------------------------
1725
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1726
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
1727
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
1728
+ Unpermitted parameters: id
1729
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1730
+  (0.1ms) rollback transaction
1731
+  (0.1ms) begin transaction
1732
+ -------------------------------------------------------------------------------------
1733
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
1734
+ -------------------------------------------------------------------------------------
1735
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1736
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
1737
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
1738
+ Unpermitted parameters: id
1739
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1740
+  (0.1ms) rollback transaction
1741
+  (0.0ms) begin transaction
1742
+ ------------------------------------------------------------------------------------
1743
+ WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
1744
+ ------------------------------------------------------------------------------------
1745
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1746
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1747
+  (0.1ms) rollback transaction
1748
+  (0.1ms) begin transaction
1749
+ ----------------------------------------------------------------------------------------
1750
+ WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
1751
+ ----------------------------------------------------------------------------------------
1752
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1753
+ Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
1754
+ Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1755
+  (0.1ms) rollback transaction
1756
+  (0.1ms) begin transaction
1757
+ --------------------------------------------------------------------
1758
+ WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
1759
+ --------------------------------------------------------------------
1760
+  (0.1ms) rollback transaction
1761
+  (0.1ms) begin transaction
1762
+ -------------------------------------------------------------------
1763
+ WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
1764
+ -------------------------------------------------------------------
1765
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
1766
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
1767
+  (0.1ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ -----------------------------------------------------------------------------
1770
+ WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
1771
+ -----------------------------------------------------------------------------
1772
+  (0.3ms) begin transaction
1773
+ ------------------------------------------------------
1774
+ WebConsole::EngineTest: test_custom_default_mount_path
1775
+ ------------------------------------------------------
1776
+  (0.3ms) begin transaction
1777
+ ---------------------------------------------------
1778
+ WebConsole::EngineTest: test_disabling_automounting
1779
+ ---------------------------------------------------
1780
+  (0.2ms) begin transaction
1781
+ ---------------------------------------------------------------
1782
+ WebConsole::EngineTest: test_present_commands_are_not_processed
1783
+ ---------------------------------------------------------------
1784
+  (0.2ms) begin transaction
1785
+ --------------------------------------------------------
1786
+ WebConsole::EngineTest: test_whitelist_multiple_networks
1787
+ --------------------------------------------------------
1788
+  (0.2ms) begin transaction
1789
+ -----------------------------------------------------
1790
+ WebConsole::EngineTest: test_whitelist_whole_networks
1791
+ -----------------------------------------------------
1792
+  (0.2ms) begin transaction
1793
+ -----------------------------------------------------------------------
1794
+ WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
1795
+ -----------------------------------------------------------------------
1796
+  (0.2ms) begin transaction
1797
+ -----------------------------------------------------------------------
1798
+ WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
1799
+ -----------------------------------------------------------------------
1800
+  (0.2ms) begin transaction
1801
+ ------------------------------------------------------------------
1802
+ WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
1803
+ ------------------------------------------------------------------
1804
+  (0.2ms) begin transaction
1805
+ -----------------------------------------------------------------------------
1806
+ WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
1807
+ -----------------------------------------------------------------------------
1808
+  (0.2ms) begin transaction
1809
+ ----------------------------------------------------------------
1810
+ WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
1811
+ ----------------------------------------------------------------
1812
+  (0.1ms) rollback transaction
1813
+  (0.0ms) begin transaction
1814
+ -------------------------------------------------------------------------------------------
1815
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
1816
+ -------------------------------------------------------------------------------------------
1817
+  (0.1ms) rollback transaction
1818
+  (0.0ms) begin transaction
1819
+ ------------------------------------------------------------------------------------------
1820
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
1821
+ ------------------------------------------------------------------------------------------
1822
+  (0.1ms) rollback transaction
1823
+  (0.0ms) begin transaction
1824
+ ---------------------------------------------------------------------------
1825
+ WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
1826
+ ---------------------------------------------------------------------------
1827
+  (0.1ms) rollback transaction
1828
+  (0.0ms) begin transaction
1829
+ ----------------------------------------------------------------------------------
1830
+ WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
1831
+ ----------------------------------------------------------------------------------
1832
+  (0.1ms) rollback transaction
1833
+  (0.0ms) begin transaction
1834
+ --------------------------------------------------------------------------
1835
+ WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
1836
+ --------------------------------------------------------------------------
1837
+  (0.1ms) rollback transaction
1838
+  (0.0ms) begin transaction
1839
+ ---------------------------------------------------------------------------------
1840
+ WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
1841
+ ---------------------------------------------------------------------------------
1842
+  (0.1ms) rollback transaction
1843
+  (0.0ms) begin transaction
1844
+ --------------------------------------------------------------------------
1845
+ WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
1846
+ --------------------------------------------------------------------------
1847
+  (0.1ms) rollback transaction
1848
+  (0.0ms) begin transaction
1849
+ ---------------------------------------------------------------------------------------------
1850
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
1851
+ ---------------------------------------------------------------------------------------------
1852
+  (0.1ms) rollback transaction
1853
+  (0.0ms) begin transaction
1854
+ -----------------------------------------------------------------------------------------------
1855
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
1856
+ -----------------------------------------------------------------------------------------------
1857
+  (0.1ms) rollback transaction
1858
+  (0.0ms) begin transaction
1859
+ ------------------------------------------------------------------------------------
1860
+ WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
1861
+ ------------------------------------------------------------------------------------
1862
+  (0.1ms) rollback transaction
1863
+  (0.0ms) begin transaction
1864
+ ----------------------------------------------------------------------------
1865
+ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
1866
+ ----------------------------------------------------------------------------
1867
+  (0.1ms) rollback transaction
1868
+  (0.0ms) begin transaction
1869
+ -------------------------------------------------------------------------
1870
+ WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
1871
+ -------------------------------------------------------------------------
1872
+  (0.1ms) rollback transaction
1873
+  (0.2ms) begin transaction
1874
+ --------------------------------------------------------------------
1875
+ WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
1876
+ --------------------------------------------------------------------
1877
+  (0.1ms) rollback transaction
1878
+  (0.1ms) begin transaction
1879
+ --------------------------------------------------------------------
1880
+ WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
1881
+ --------------------------------------------------------------------
1882
+  (0.0ms) rollback transaction
1883
+  (0.0ms) begin transaction
1884
+ ----------------------------------------------------------------------------
1885
+ WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
1886
+ ----------------------------------------------------------------------------
1887
+  (0.0ms) rollback transaction
1888
+  (0.0ms) begin transaction
1889
+ -----------------------------------------------
1890
+ WebConsole::ColorsTest: test_#default_is_:light
1891
+ -----------------------------------------------
1892
+  (0.0ms) rollback transaction
1893
+  (0.0ms) begin transaction
1894
+ --------------------------------------------------------------------
1895
+ WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
1896
+ --------------------------------------------------------------------
1897
+  (0.0ms) rollback transaction
1898
+  (0.0ms) begin transaction
1899
+ --------------------------------------------------------------------
1900
+ WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
1901
+ --------------------------------------------------------------------
1902
+  (0.1ms) rollback transaction
1903
+  (0.0ms) begin transaction
1904
+ ---------------------------------------------------------------------------
1905
+ WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
1906
+ ---------------------------------------------------------------------------
1907
+  (0.0ms) rollback transaction
1908
+  (0.0ms) begin transaction
1909
+ --------------------------------------------------------------------------------
1910
+ WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
1911
+ --------------------------------------------------------------------------------
1912
+  (0.0ms) rollback transaction
1913
+  (0.0ms) begin transaction
1914
+ -----------------------------------------------------------
1915
+ WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
1916
+ -----------------------------------------------------------
1917
+  (0.1ms) rollback transaction
1918
+  (0.0ms) begin transaction
1919
+ ----------------------------------------------------------------------------------
1920
+ WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
1921
+ ----------------------------------------------------------------------------------
1922
+  (0.0ms) rollback transaction
1923
+  (0.1ms) begin transaction
1924
+ --------------------------------------------------------------------------------------
1925
+ WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
1926
+ --------------------------------------------------------------------------------------
1927
+  (0.1ms) rollback transaction
1928
+  (0.1ms) begin transaction
1929
+ --------------------------------------------------------------------------
1930
+ WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
1931
+ --------------------------------------------------------------------------
1932
+  (0.1ms) rollback transaction
1933
+  (0.1ms) begin transaction
1934
+ ------------------------------------------------
1935
+ WebConsole::ConsoleSessionTest: test_errors_aref
1936
+ ------------------------------------------------
1937
+  (0.1ms) rollback transaction
1938
+  (0.1ms) begin transaction
1939
+ -----------------------------------------------------
1940
+ WebConsole::ConsoleSessionTest: test_find_coerces_ids
1941
+ -----------------------------------------------------
1942
+  (0.1ms) rollback transaction
1943
+  (0.0ms) begin transaction
1944
+ -------------------------------------------------
1945
+ WebConsole::ConsoleSessionTest: test_model_naming
1946
+ -------------------------------------------------
1947
+  (0.1ms) rollback transaction
1948
+  (0.1ms) begin transaction
1949
+ ------------------------------------------------------------------
1950
+ WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
1951
+ ------------------------------------------------------------------
1952
+  (0.1ms) rollback transaction
1953
+  (0.1ms) begin transaction
1954
+ -------------------------------------------------------------------------------
1955
+ WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_json_serializable
1956
+ -------------------------------------------------------------------------------
1957
+  (0.1ms) rollback transaction
1958
+  (0.1ms) begin transaction
1959
+ -----------------------------------------------
1960
+ WebConsole::ConsoleSessionTest: test_persisted?
1961
+ -----------------------------------------------
1962
+  (0.1ms) rollback transaction
1963
+  (0.1ms) begin transaction
1964
+ ----------------------------------------------------------------------------
1965
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
1966
+ ----------------------------------------------------------------------------
1967
+  (0.1ms) rollback transaction
1968
+  (0.0ms) begin transaction
1969
+ -----------------------------------------------------------------------------------
1970
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
1971
+ -----------------------------------------------------------------------------------
1972
+  (0.1ms) rollback transaction
1973
+  (0.0ms) begin transaction
1974
+ ---------------------------------------------------------------------------------------------
1975
+ WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
1976
+ ---------------------------------------------------------------------------------------------
1977
+  (0.1ms) rollback transaction
1978
+  (0.1ms) begin transaction
1979
+ ------------------------------------------------------------------------------
1980
+ WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
1981
+ ------------------------------------------------------------------------------
1982
+  (0.1ms) rollback transaction
1983
+  (0.1ms) begin transaction
1984
+ -------------------------------------------
1985
+ WebConsole::ConsoleSessionTest: test_to_key
1986
+ -------------------------------------------
1987
+  (0.3ms) rollback transaction
1988
+  (0.1ms) begin transaction
1989
+ ---------------------------------------------
1990
+ WebConsole::ConsoleSessionTest: test_to_param
1991
+ ---------------------------------------------
1992
+  (0.1ms) rollback transaction
1993
+  (0.1ms) begin transaction
1994
+ ----------------------------------------------------
1995
+ WebConsole::ConsoleSessionTest: test_to_partial_path
1996
+ ----------------------------------------------------
1997
+  (0.1ms) rollback transaction
1998
+  (0.1ms) begin transaction
1999
+ -------------------------------------------------------------------------------------
2000
+ WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
2001
+ -------------------------------------------------------------------------------------
2002
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2003
+ Completed 200 OK in 52ms (Views: 51.4ms | ActiveRecord: 0.0ms)
2004
+  (0.1ms) rollback transaction
2005
+  (0.1ms) begin transaction
2006
+ -------------------------------------------------------------------------------------------------
2007
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
2008
+ -------------------------------------------------------------------------------------------------
2009
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2010
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2011
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2012
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2013
+  (0.1ms) rollback transaction
2014
+  (0.1ms) begin transaction
2015
+ --------------------------------------------------------------------------------------------------------
2016
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
2017
+ --------------------------------------------------------------------------------------------------------
2018
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2019
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2020
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2021
+ Completed 410 Gone in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2022
+  (0.1ms) rollback transaction
2023
+  (0.0ms) begin transaction
2024
+ ------------------------------------------------------------------------------------------
2025
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
2026
+ ------------------------------------------------------------------------------------------
2027
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2028
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2029
+ Processing by WebConsole::ConsoleSessionsController#configuration as HTML
2030
+ Unpermitted parameters: id
2031
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2032
+  (0.1ms) rollback transaction
2033
+  (0.1ms) begin transaction
2034
+ ----------------------------------------------------------------------------------
2035
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
2036
+ ----------------------------------------------------------------------------------
2037
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2038
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2039
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2040
+ Unpermitted parameters: id
2041
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2042
+  (0.1ms) rollback transaction
2043
+  (0.1ms) begin transaction
2044
+ -------------------------------------------------------------------------------------
2045
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
2046
+ -------------------------------------------------------------------------------------
2047
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2048
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2049
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2050
+ Unpermitted parameters: id
2051
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2052
+  (0.1ms) rollback transaction
2053
+  (0.1ms) begin transaction
2054
+ ------------------------------------------------------------------------------------
2055
+ WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
2056
+ ------------------------------------------------------------------------------------
2057
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2058
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2059
+  (0.1ms) rollback transaction
2060
+  (0.1ms) begin transaction
2061
+ ----------------------------------------------------------------------------------------
2062
+ WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
2063
+ ----------------------------------------------------------------------------------------
2064
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2065
+ Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
2066
+ Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2067
+  (0.2ms) rollback transaction
2068
+  (0.1ms) begin transaction
2069
+ --------------------------------------------------------------------
2070
+ WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
2071
+ --------------------------------------------------------------------
2072
+  (0.1ms) rollback transaction
2073
+  (0.1ms) begin transaction
2074
+ -------------------------------------------------------------------
2075
+ WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
2076
+ -------------------------------------------------------------------
2077
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2078
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
2079
+  (0.1ms) rollback transaction
2080
+  (0.1ms) begin transaction
2081
+ -----------------------------------------------------------------------------
2082
+ WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
2083
+ -----------------------------------------------------------------------------
2084
+  (0.4ms) begin transaction
2085
+ ------------------------------------------------------
2086
+ WebConsole::EngineTest: test_custom_default_mount_path
2087
+ ------------------------------------------------------
2088
+  (0.2ms) begin transaction
2089
+ ---------------------------------------------------
2090
+ WebConsole::EngineTest: test_disabling_automounting
2091
+ ---------------------------------------------------
2092
+  (0.2ms) begin transaction
2093
+ ---------------------------------------------------------------
2094
+ WebConsole::EngineTest: test_present_commands_are_not_processed
2095
+ ---------------------------------------------------------------
2096
+  (0.2ms) begin transaction
2097
+ --------------------------------------------------------
2098
+ WebConsole::EngineTest: test_whitelist_multiple_networks
2099
+ --------------------------------------------------------
2100
+  (0.2ms) begin transaction
2101
+ -----------------------------------------------------
2102
+ WebConsole::EngineTest: test_whitelist_whole_networks
2103
+ -----------------------------------------------------
2104
+  (0.2ms) begin transaction
2105
+ -----------------------------------------------------------------------
2106
+ WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
2107
+ -----------------------------------------------------------------------
2108
+  (0.2ms) begin transaction
2109
+ -----------------------------------------------------------------------
2110
+ WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
2111
+ -----------------------------------------------------------------------
2112
+  (0.2ms) begin transaction
2113
+ ------------------------------------------------------------------
2114
+ WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
2115
+ ------------------------------------------------------------------
2116
+  (0.2ms) begin transaction
2117
+ -----------------------------------------------------------------------------
2118
+ WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
2119
+ -----------------------------------------------------------------------------
2120
+  (0.2ms) begin transaction
2121
+ ----------------------------------------------------------------
2122
+ WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
2123
+ ----------------------------------------------------------------
2124
+  (0.1ms) rollback transaction
2125
+  (0.0ms) begin transaction
2126
+ -------------------------------------------------------------------------------------------
2127
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
2128
+ -------------------------------------------------------------------------------------------
2129
+  (0.1ms) rollback transaction
2130
+  (0.0ms) begin transaction
2131
+ ------------------------------------------------------------------------------------------
2132
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
2133
+ ------------------------------------------------------------------------------------------
2134
+  (0.1ms) rollback transaction
2135
+  (0.0ms) begin transaction
2136
+ ---------------------------------------------------------------------------
2137
+ WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
2138
+ ---------------------------------------------------------------------------
2139
+  (0.1ms) rollback transaction
2140
+  (0.0ms) begin transaction
2141
+ ----------------------------------------------------------------------------------
2142
+ WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
2143
+ ----------------------------------------------------------------------------------
2144
+  (0.1ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+ --------------------------------------------------------------------------
2147
+ WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
2148
+ --------------------------------------------------------------------------
2149
+  (0.1ms) rollback transaction
2150
+  (0.0ms) begin transaction
2151
+ ---------------------------------------------------------------------------------
2152
+ WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
2153
+ ---------------------------------------------------------------------------------
2154
+  (0.1ms) rollback transaction
2155
+  (0.0ms) begin transaction
2156
+ --------------------------------------------------------------------------
2157
+ WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
2158
+ --------------------------------------------------------------------------
2159
+  (0.1ms) rollback transaction
2160
+  (0.0ms) begin transaction
2161
+ ---------------------------------------------------------------------------------------------
2162
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
2163
+ ---------------------------------------------------------------------------------------------
2164
+  (0.1ms) rollback transaction
2165
+  (0.0ms) begin transaction
2166
+ -----------------------------------------------------------------------------------------------
2167
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
2168
+ -----------------------------------------------------------------------------------------------
2169
+  (0.1ms) rollback transaction
2170
+  (0.0ms) begin transaction
2171
+ ------------------------------------------------------------------------------------
2172
+ WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
2173
+ ------------------------------------------------------------------------------------
2174
+  (0.1ms) rollback transaction
2175
+  (0.0ms) begin transaction
2176
+ ----------------------------------------------------------------------------
2177
+ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
2178
+ ----------------------------------------------------------------------------
2179
+  (0.1ms) rollback transaction
2180
+  (0.0ms) begin transaction
2181
+ -------------------------------------------------------------------------
2182
+ WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
2183
+ -------------------------------------------------------------------------
2184
+  (0.1ms) rollback transaction
2185
+  (0.3ms) begin transaction
2186
+ --------------------------------------------------------------------
2187
+ WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
2188
+ --------------------------------------------------------------------
2189
+  (0.1ms) rollback transaction
2190
+  (0.1ms) begin transaction
2191
+ --------------------------------------------------------------------
2192
+ WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
2193
+ --------------------------------------------------------------------
2194
+  (0.0ms) rollback transaction
2195
+  (0.0ms) begin transaction
2196
+ ----------------------------------------------------------------------------
2197
+ WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
2198
+ ----------------------------------------------------------------------------
2199
+  (0.0ms) rollback transaction
2200
+  (0.0ms) begin transaction
2201
+ -----------------------------------------------
2202
+ WebConsole::ColorsTest: test_#default_is_:light
2203
+ -----------------------------------------------
2204
+  (0.0ms) rollback transaction
2205
+  (0.0ms) begin transaction
2206
+ --------------------------------------------------------------------
2207
+ WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
2208
+ --------------------------------------------------------------------
2209
+  (0.0ms) rollback transaction
2210
+  (0.0ms) begin transaction
2211
+ --------------------------------------------------------------------
2212
+ WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
2213
+ --------------------------------------------------------------------
2214
+  (0.0ms) rollback transaction
2215
+  (0.0ms) begin transaction
2216
+ ---------------------------------------------------------------------------
2217
+ WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
2218
+ ---------------------------------------------------------------------------
2219
+  (0.0ms) rollback transaction
2220
+  (0.0ms) begin transaction
2221
+ --------------------------------------------------------------------------------
2222
+ WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
2223
+ --------------------------------------------------------------------------------
2224
+  (0.0ms) rollback transaction
2225
+  (0.0ms) begin transaction
2226
+ -----------------------------------------------------------
2227
+ WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
2228
+ -----------------------------------------------------------
2229
+  (0.1ms) rollback transaction
2230
+  (0.0ms) begin transaction
2231
+ ----------------------------------------------------------------------------------
2232
+ WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
2233
+ ----------------------------------------------------------------------------------
2234
+  (0.0ms) rollback transaction
2235
+  (0.1ms) begin transaction
2236
+ --------------------------------------------------------------------------------------
2237
+ WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
2238
+ --------------------------------------------------------------------------------------
2239
+  (0.1ms) rollback transaction
2240
+  (0.1ms) begin transaction
2241
+ --------------------------------------------------------------------------
2242
+ WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
2243
+ --------------------------------------------------------------------------
2244
+  (0.1ms) rollback transaction
2245
+  (0.1ms) begin transaction
2246
+ ------------------------------------------------
2247
+ WebConsole::ConsoleSessionTest: test_errors_aref
2248
+ ------------------------------------------------
2249
+  (0.1ms) rollback transaction
2250
+  (0.1ms) begin transaction
2251
+ -----------------------------------------------------
2252
+ WebConsole::ConsoleSessionTest: test_find_coerces_ids
2253
+ -----------------------------------------------------
2254
+  (0.1ms) rollback transaction
2255
+  (0.0ms) begin transaction
2256
+ -------------------------------------------------
2257
+ WebConsole::ConsoleSessionTest: test_model_naming
2258
+ -------------------------------------------------
2259
+  (0.1ms) rollback transaction
2260
+  (0.1ms) begin transaction
2261
+ ------------------------------------------------------------------
2262
+ WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
2263
+ ------------------------------------------------------------------
2264
+  (0.1ms) rollback transaction
2265
+  (0.1ms) begin transaction
2266
+ -------------------------------------------------------------------------------
2267
+ WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_json_serializable
2268
+ -------------------------------------------------------------------------------
2269
+  (0.1ms) rollback transaction
2270
+  (0.1ms) begin transaction
2271
+ -----------------------------------------------
2272
+ WebConsole::ConsoleSessionTest: test_persisted?
2273
+ -----------------------------------------------
2274
+  (0.1ms) rollback transaction
2275
+  (0.1ms) begin transaction
2276
+ ----------------------------------------------------------------------------
2277
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
2278
+ ----------------------------------------------------------------------------
2279
+  (0.1ms) rollback transaction
2280
+  (0.0ms) begin transaction
2281
+ -----------------------------------------------------------------------------------
2282
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
2283
+ -----------------------------------------------------------------------------------
2284
+  (0.1ms) rollback transaction
2285
+  (0.0ms) begin transaction
2286
+ ---------------------------------------------------------------------------------------------
2287
+ WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
2288
+ ---------------------------------------------------------------------------------------------
2289
+  (0.1ms) rollback transaction
2290
+  (0.1ms) begin transaction
2291
+ ------------------------------------------------------------------------------
2292
+ WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
2293
+ ------------------------------------------------------------------------------
2294
+  (0.1ms) rollback transaction
2295
+  (0.1ms) begin transaction
2296
+ -------------------------------------------
2297
+ WebConsole::ConsoleSessionTest: test_to_key
2298
+ -------------------------------------------
2299
+  (0.1ms) rollback transaction
2300
+  (0.1ms) begin transaction
2301
+ ---------------------------------------------
2302
+ WebConsole::ConsoleSessionTest: test_to_param
2303
+ ---------------------------------------------
2304
+  (0.1ms) rollback transaction
2305
+  (0.1ms) begin transaction
2306
+ ----------------------------------------------------
2307
+ WebConsole::ConsoleSessionTest: test_to_partial_path
2308
+ ----------------------------------------------------
2309
+  (0.1ms) rollback transaction
2310
+  (0.1ms) begin transaction
2311
+ -------------------------------------------------------------------------------------
2312
+ WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
2313
+ -------------------------------------------------------------------------------------
2314
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2315
+ Completed 200 OK in 50ms (Views: 49.2ms | ActiveRecord: 0.0ms)
2316
+  (0.1ms) rollback transaction
2317
+  (0.1ms) begin transaction
2318
+ -------------------------------------------------------------------------------------------------
2319
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
2320
+ -------------------------------------------------------------------------------------------------
2321
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2322
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2323
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2324
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2325
+  (0.1ms) rollback transaction
2326
+  (0.0ms) begin transaction
2327
+ --------------------------------------------------------------------------------------------------------
2328
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
2329
+ --------------------------------------------------------------------------------------------------------
2330
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2331
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2332
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2333
+ Completed 410 Gone in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2334
+  (0.1ms) rollback transaction
2335
+  (0.0ms) begin transaction
2336
+ ------------------------------------------------------------------------------------------
2337
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
2338
+ ------------------------------------------------------------------------------------------
2339
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2340
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2341
+ Processing by WebConsole::ConsoleSessionsController#configuration as HTML
2342
+ Unpermitted parameters: id
2343
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2344
+  (0.1ms) rollback transaction
2345
+  (0.1ms) begin transaction
2346
+ ----------------------------------------------------------------------------------
2347
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
2348
+ ----------------------------------------------------------------------------------
2349
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2350
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2351
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2352
+ Unpermitted parameters: id
2353
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2354
+  (0.1ms) rollback transaction
2355
+  (0.0ms) begin transaction
2356
+ -------------------------------------------------------------------------------------
2357
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
2358
+ -------------------------------------------------------------------------------------
2359
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2360
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2361
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2362
+ Unpermitted parameters: id
2363
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2364
+  (0.1ms) rollback transaction
2365
+  (0.1ms) begin transaction
2366
+ ------------------------------------------------------------------------------------
2367
+ WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
2368
+ ------------------------------------------------------------------------------------
2369
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2370
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2371
+  (0.1ms) rollback transaction
2372
+  (0.1ms) begin transaction
2373
+ ----------------------------------------------------------------------------------------
2374
+ WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
2375
+ ----------------------------------------------------------------------------------------
2376
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2377
+ Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
2378
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2379
+  (0.1ms) rollback transaction
2380
+  (0.1ms) begin transaction
2381
+ --------------------------------------------------------------------
2382
+ WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
2383
+ --------------------------------------------------------------------
2384
+  (0.1ms) rollback transaction
2385
+  (0.1ms) begin transaction
2386
+ -------------------------------------------------------------------
2387
+ WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
2388
+ -------------------------------------------------------------------
2389
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2390
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2391
+  (0.1ms) rollback transaction
2392
+  (0.1ms) begin transaction
2393
+ -----------------------------------------------------------------------------
2394
+ WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
2395
+ -----------------------------------------------------------------------------
2396
+  (0.2ms) begin transaction
2397
+ ------------------------------------------------------
2398
+ WebConsole::EngineTest: test_custom_default_mount_path
2399
+ ------------------------------------------------------
2400
+  (0.2ms) begin transaction
2401
+ ---------------------------------------------------
2402
+ WebConsole::EngineTest: test_disabling_automounting
2403
+ ---------------------------------------------------
2404
+  (0.2ms) begin transaction
2405
+ ---------------------------------------------------------------
2406
+ WebConsole::EngineTest: test_present_commands_are_not_processed
2407
+ ---------------------------------------------------------------
2408
+  (0.2ms) begin transaction
2409
+ --------------------------------------------------------
2410
+ WebConsole::EngineTest: test_whitelist_multiple_networks
2411
+ --------------------------------------------------------
2412
+  (0.2ms) begin transaction
2413
+ -----------------------------------------------------
2414
+ WebConsole::EngineTest: test_whitelist_whole_networks
2415
+ -----------------------------------------------------
2416
+  (0.2ms) begin transaction
2417
+ -----------------------------------------------------------------------
2418
+ WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
2419
+ -----------------------------------------------------------------------
2420
+  (0.2ms) begin transaction
2421
+ -----------------------------------------------------------------------
2422
+ WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
2423
+ -----------------------------------------------------------------------
2424
+  (0.2ms) begin transaction
2425
+ ------------------------------------------------------------------
2426
+ WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
2427
+ ------------------------------------------------------------------
2428
+  (0.2ms) begin transaction
2429
+ -----------------------------------------------------------------------------
2430
+ WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
2431
+ -----------------------------------------------------------------------------
2432
+  (0.2ms) begin transaction
2433
+ ----------------------------------------------------------------
2434
+ WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
2435
+ ----------------------------------------------------------------
2436
+  (0.1ms) rollback transaction
2437
+  (0.0ms) begin transaction
2438
+ -------------------------------------------------------------------------------------------
2439
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
2440
+ -------------------------------------------------------------------------------------------
2441
+  (0.1ms) rollback transaction
2442
+  (0.0ms) begin transaction
2443
+ ------------------------------------------------------------------------------------------
2444
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
2445
+ ------------------------------------------------------------------------------------------
2446
+  (0.1ms) rollback transaction
2447
+  (0.0ms) begin transaction
2448
+ ---------------------------------------------------------------------------
2449
+ WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
2450
+ ---------------------------------------------------------------------------
2451
+  (0.1ms) rollback transaction
2452
+  (0.0ms) begin transaction
2453
+ ----------------------------------------------------------------------------------
2454
+ WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
2455
+ ----------------------------------------------------------------------------------
2456
+  (0.1ms) rollback transaction
2457
+  (0.0ms) begin transaction
2458
+ --------------------------------------------------------------------------
2459
+ WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
2460
+ --------------------------------------------------------------------------
2461
+  (0.1ms) rollback transaction
2462
+  (0.0ms) begin transaction
2463
+ ---------------------------------------------------------------------------------
2464
+ WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
2465
+ ---------------------------------------------------------------------------------
2466
+  (0.1ms) rollback transaction
2467
+  (0.0ms) begin transaction
2468
+ --------------------------------------------------------------------------
2469
+ WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
2470
+ --------------------------------------------------------------------------
2471
+  (0.1ms) rollback transaction
2472
+  (0.0ms) begin transaction
2473
+ ---------------------------------------------------------------------------------------------
2474
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
2475
+ ---------------------------------------------------------------------------------------------
2476
+  (0.1ms) rollback transaction
2477
+  (0.0ms) begin transaction
2478
+ -----------------------------------------------------------------------------------------------
2479
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
2480
+ -----------------------------------------------------------------------------------------------
2481
+  (0.1ms) rollback transaction
2482
+  (0.0ms) begin transaction
2483
+ ------------------------------------------------------------------------------------
2484
+ WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
2485
+ ------------------------------------------------------------------------------------
2486
+  (0.1ms) rollback transaction
2487
+  (0.0ms) begin transaction
2488
+ ----------------------------------------------------------------------------
2489
+ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
2490
+ ----------------------------------------------------------------------------
2491
+  (0.1ms) rollback transaction
2492
+  (0.0ms) begin transaction
2493
+ -------------------------------------------------------------------------
2494
+ WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
2495
+ -------------------------------------------------------------------------
2496
+  (0.1ms) rollback transaction
2497
+  (0.3ms) begin transaction
2498
+ --------------------------------------------------------------------
2499
+ WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
2500
+ --------------------------------------------------------------------
2501
+  (0.1ms) rollback transaction
2502
+  (0.1ms) begin transaction
2503
+ --------------------------------------------------------------------
2504
+ WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
2505
+ --------------------------------------------------------------------
2506
+  (0.1ms) rollback transaction
2507
+  (0.1ms) begin transaction
2508
+ ----------------------------------------------------------------------------
2509
+ WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
2510
+ ----------------------------------------------------------------------------
2511
+  (0.0ms) rollback transaction
2512
+  (0.0ms) begin transaction
2513
+ -----------------------------------------------
2514
+ WebConsole::ColorsTest: test_#default_is_:light
2515
+ -----------------------------------------------
2516
+  (0.0ms) rollback transaction
2517
+  (0.0ms) begin transaction
2518
+ --------------------------------------------------------------------
2519
+ WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
2520
+ --------------------------------------------------------------------
2521
+  (0.0ms) rollback transaction
2522
+  (0.0ms) begin transaction
2523
+ --------------------------------------------------------------------
2524
+ WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
2525
+ --------------------------------------------------------------------
2526
+  (0.0ms) rollback transaction
2527
+  (0.0ms) begin transaction
2528
+ ---------------------------------------------------------------------------
2529
+ WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
2530
+ ---------------------------------------------------------------------------
2531
+  (0.0ms) rollback transaction
2532
+  (0.0ms) begin transaction
2533
+ --------------------------------------------------------------------------------
2534
+ WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
2535
+ --------------------------------------------------------------------------------
2536
+  (0.0ms) rollback transaction
2537
+  (0.0ms) begin transaction
2538
+ -----------------------------------------------------------
2539
+ WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
2540
+ -----------------------------------------------------------
2541
+  (0.1ms) rollback transaction
2542
+  (0.0ms) begin transaction
2543
+ ----------------------------------------------------------------------------------
2544
+ WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
2545
+ ----------------------------------------------------------------------------------
2546
+  (0.0ms) rollback transaction
2547
+  (0.1ms) begin transaction
2548
+ --------------------------------------------------------------------------------------
2549
+ WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
2550
+ --------------------------------------------------------------------------------------
2551
+  (0.1ms) rollback transaction
2552
+  (0.1ms) begin transaction
2553
+ --------------------------------------------------------------------------
2554
+ WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
2555
+ --------------------------------------------------------------------------
2556
+  (0.1ms) rollback transaction
2557
+  (0.0ms) begin transaction
2558
+ ------------------------------------------------
2559
+ WebConsole::ConsoleSessionTest: test_errors_aref
2560
+ ------------------------------------------------
2561
+  (0.1ms) rollback transaction
2562
+  (0.1ms) begin transaction
2563
+ -----------------------------------------------------
2564
+ WebConsole::ConsoleSessionTest: test_find_coerces_ids
2565
+ -----------------------------------------------------
2566
+  (0.1ms) rollback transaction
2567
+  (0.0ms) begin transaction
2568
+ -------------------------------------------------
2569
+ WebConsole::ConsoleSessionTest: test_model_naming
2570
+ -------------------------------------------------
2571
+  (0.1ms) rollback transaction
2572
+  (0.1ms) begin transaction
2573
+ ------------------------------------------------------------------
2574
+ WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
2575
+ ------------------------------------------------------------------
2576
+  (0.1ms) rollback transaction
2577
+  (0.1ms) begin transaction
2578
+ -------------------------------------------------------------------------------
2579
+ WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_json_serializable
2580
+ -------------------------------------------------------------------------------
2581
+  (0.1ms) rollback transaction
2582
+  (0.1ms) begin transaction
2583
+ -----------------------------------------------
2584
+ WebConsole::ConsoleSessionTest: test_persisted?
2585
+ -----------------------------------------------
2586
+  (0.1ms) rollback transaction
2587
+  (0.1ms) begin transaction
2588
+ ----------------------------------------------------------------------------
2589
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
2590
+ ----------------------------------------------------------------------------
2591
+  (0.1ms) rollback transaction
2592
+  (0.1ms) begin transaction
2593
+ -----------------------------------------------------------------------------------
2594
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
2595
+ -----------------------------------------------------------------------------------
2596
+  (0.1ms) rollback transaction
2597
+  (0.0ms) begin transaction
2598
+ ---------------------------------------------------------------------------------------------
2599
+ WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
2600
+ ---------------------------------------------------------------------------------------------
2601
+  (0.1ms) rollback transaction
2602
+  (0.1ms) begin transaction
2603
+ ------------------------------------------------------------------------------
2604
+ WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
2605
+ ------------------------------------------------------------------------------
2606
+  (0.1ms) rollback transaction
2607
+  (0.1ms) begin transaction
2608
+ -------------------------------------------
2609
+ WebConsole::ConsoleSessionTest: test_to_key
2610
+ -------------------------------------------
2611
+  (0.1ms) rollback transaction
2612
+  (0.1ms) begin transaction
2613
+ ---------------------------------------------
2614
+ WebConsole::ConsoleSessionTest: test_to_param
2615
+ ---------------------------------------------
2616
+  (0.1ms) rollback transaction
2617
+  (0.1ms) begin transaction
2618
+ ----------------------------------------------------
2619
+ WebConsole::ConsoleSessionTest: test_to_partial_path
2620
+ ----------------------------------------------------
2621
+  (0.1ms) rollback transaction
2622
+  (0.1ms) begin transaction
2623
+ -------------------------------------------------------------------------------------
2624
+ WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
2625
+ -------------------------------------------------------------------------------------
2626
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2627
+ Completed 200 OK in 51ms (Views: 49.8ms | ActiveRecord: 0.0ms)
2628
+  (0.1ms) rollback transaction
2629
+  (0.1ms) begin transaction
2630
+ -------------------------------------------------------------------------------------------------
2631
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
2632
+ -------------------------------------------------------------------------------------------------
2633
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2634
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2635
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2636
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2637
+  (0.1ms) rollback transaction
2638
+  (0.1ms) begin transaction
2639
+ --------------------------------------------------------------------------------------------------------
2640
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
2641
+ --------------------------------------------------------------------------------------------------------
2642
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2643
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2644
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2645
+ Completed 410 Gone in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2646
+  (0.1ms) rollback transaction
2647
+  (0.1ms) begin transaction
2648
+ ------------------------------------------------------------------------------------------
2649
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
2650
+ ------------------------------------------------------------------------------------------
2651
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2652
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2653
+ Processing by WebConsole::ConsoleSessionsController#configuration as HTML
2654
+ Unpermitted parameters: id
2655
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2656
+  (0.1ms) rollback transaction
2657
+  (0.1ms) begin transaction
2658
+ ----------------------------------------------------------------------------------
2659
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
2660
+ ----------------------------------------------------------------------------------
2661
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2662
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2663
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2664
+ Unpermitted parameters: id
2665
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2666
+  (0.1ms) rollback transaction
2667
+  (0.0ms) begin transaction
2668
+ -------------------------------------------------------------------------------------
2669
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
2670
+ -------------------------------------------------------------------------------------
2671
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2672
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2673
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2674
+ Unpermitted parameters: id
2675
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2676
+  (0.1ms) rollback transaction
2677
+  (0.0ms) begin transaction
2678
+ ------------------------------------------------------------------------------------
2679
+ WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
2680
+ ------------------------------------------------------------------------------------
2681
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2682
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2683
+  (0.1ms) rollback transaction
2684
+  (0.1ms) begin transaction
2685
+ ----------------------------------------------------------------------------------------
2686
+ WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
2687
+ ----------------------------------------------------------------------------------------
2688
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2689
+ Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
2690
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2691
+  (0.1ms) rollback transaction
2692
+  (0.1ms) begin transaction
2693
+ --------------------------------------------------------------------
2694
+ WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
2695
+ --------------------------------------------------------------------
2696
+  (0.1ms) rollback transaction
2697
+  (0.1ms) begin transaction
2698
+ -------------------------------------------------------------------
2699
+ WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
2700
+ -------------------------------------------------------------------
2701
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2702
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2703
+  (0.1ms) rollback transaction
2704
+  (0.1ms) begin transaction
2705
+ -----------------------------------------------------------------------------
2706
+ WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
2707
+ -----------------------------------------------------------------------------
2708
+  (0.2ms) begin transaction
2709
+ ------------------------------------------------------
2710
+ WebConsole::EngineTest: test_custom_default_mount_path
2711
+ ------------------------------------------------------
2712
+  (0.2ms) begin transaction
2713
+ ---------------------------------------------------
2714
+ WebConsole::EngineTest: test_disabling_automounting
2715
+ ---------------------------------------------------
2716
+  (0.2ms) begin transaction
2717
+ ---------------------------------------------------------------
2718
+ WebConsole::EngineTest: test_present_commands_are_not_processed
2719
+ ---------------------------------------------------------------
2720
+  (0.2ms) begin transaction
2721
+ --------------------------------------------------------
2722
+ WebConsole::EngineTest: test_whitelist_multiple_networks
2723
+ --------------------------------------------------------
2724
+  (0.3ms) begin transaction
2725
+ -----------------------------------------------------
2726
+ WebConsole::EngineTest: test_whitelist_whole_networks
2727
+ -----------------------------------------------------
2728
+  (0.2ms) begin transaction
2729
+ -----------------------------------------------------------------------
2730
+ WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
2731
+ -----------------------------------------------------------------------
2732
+  (0.2ms) begin transaction
2733
+ -----------------------------------------------------------------------
2734
+ WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
2735
+ -----------------------------------------------------------------------
2736
+  (0.2ms) begin transaction
2737
+ ------------------------------------------------------------------
2738
+ WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
2739
+ ------------------------------------------------------------------
2740
+  (0.2ms) begin transaction
2741
+ -----------------------------------------------------------------------------
2742
+ WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
2743
+ -----------------------------------------------------------------------------
2744
+  (0.2ms) begin transaction
2745
+ ----------------------------------------------------------------
2746
+ WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
2747
+ ----------------------------------------------------------------
2748
+  (0.1ms) rollback transaction
2749
+  (0.1ms) begin transaction
2750
+ -------------------------------------------------------------------------------------------
2751
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
2752
+ -------------------------------------------------------------------------------------------
2753
+  (0.1ms) rollback transaction
2754
+  (0.1ms) begin transaction
2755
+ ------------------------------------------------------------------------------------------
2756
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
2757
+ ------------------------------------------------------------------------------------------
2758
+  (0.1ms) rollback transaction
2759
+  (0.0ms) begin transaction
2760
+ ---------------------------------------------------------------------------
2761
+ WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
2762
+ ---------------------------------------------------------------------------
2763
+  (0.1ms) rollback transaction
2764
+  (0.1ms) begin transaction
2765
+ ----------------------------------------------------------------------------------
2766
+ WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
2767
+ ----------------------------------------------------------------------------------
2768
+  (0.1ms) rollback transaction
2769
+  (0.1ms) begin transaction
2770
+ --------------------------------------------------------------------------
2771
+ WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
2772
+ --------------------------------------------------------------------------
2773
+  (0.1ms) rollback transaction
2774
+  (0.0ms) begin transaction
2775
+ ---------------------------------------------------------------------------------
2776
+ WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
2777
+ ---------------------------------------------------------------------------------
2778
+  (0.1ms) rollback transaction
2779
+  (0.0ms) begin transaction
2780
+ --------------------------------------------------------------------------
2781
+ WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
2782
+ --------------------------------------------------------------------------
2783
+  (0.1ms) rollback transaction
2784
+  (0.0ms) begin transaction
2785
+ ---------------------------------------------------------------------------------------------
2786
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
2787
+ ---------------------------------------------------------------------------------------------
2788
+  (0.1ms) rollback transaction
2789
+  (0.0ms) begin transaction
2790
+ -----------------------------------------------------------------------------------------------
2791
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
2792
+ -----------------------------------------------------------------------------------------------
2793
+  (0.1ms) rollback transaction
2794
+  (0.0ms) begin transaction
2795
+ ------------------------------------------------------------------------------------
2796
+ WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
2797
+ ------------------------------------------------------------------------------------
2798
+  (0.1ms) rollback transaction
2799
+  (0.0ms) begin transaction
2800
+ ----------------------------------------------------------------------------
2801
+ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
2802
+ ----------------------------------------------------------------------------
2803
+  (0.1ms) rollback transaction
2804
+  (0.0ms) begin transaction
2805
+ -------------------------------------------------------------------------
2806
+ WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
2807
+ -------------------------------------------------------------------------
2808
+  (0.1ms) rollback transaction
2809
+  (0.3ms) begin transaction
2810
+ --------------------------------------------------------------------
2811
+ WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
2812
+ --------------------------------------------------------------------
2813
+  (0.1ms) rollback transaction
2814
+  (0.1ms) begin transaction
2815
+ --------------------------------------------------------------------
2816
+ WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
2817
+ --------------------------------------------------------------------
2818
+  (0.1ms) rollback transaction
2819
+  (0.1ms) begin transaction
2820
+ ----------------------------------------------------------------------------
2821
+ WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
2822
+ ----------------------------------------------------------------------------
2823
+  (0.0ms) rollback transaction
2824
+  (0.0ms) begin transaction
2825
+ -----------------------------------------------
2826
+ WebConsole::ColorsTest: test_#default_is_:light
2827
+ -----------------------------------------------
2828
+  (0.1ms) rollback transaction
2829
+  (0.0ms) begin transaction
2830
+ --------------------------------------------------------------------
2831
+ WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
2832
+ --------------------------------------------------------------------
2833
+  (0.0ms) rollback transaction
2834
+  (0.0ms) begin transaction
2835
+ --------------------------------------------------------------------
2836
+ WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
2837
+ --------------------------------------------------------------------
2838
+  (0.0ms) rollback transaction
2839
+  (0.0ms) begin transaction
2840
+ ---------------------------------------------------------------------------
2841
+ WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
2842
+ ---------------------------------------------------------------------------
2843
+  (0.0ms) rollback transaction
2844
+  (0.0ms) begin transaction
2845
+ --------------------------------------------------------------------------------
2846
+ WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
2847
+ --------------------------------------------------------------------------------
2848
+  (0.0ms) rollback transaction
2849
+  (0.0ms) begin transaction
2850
+ -----------------------------------------------------------
2851
+ WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
2852
+ -----------------------------------------------------------
2853
+  (0.1ms) rollback transaction
2854
+  (0.0ms) begin transaction
2855
+ ----------------------------------------------------------------------------------
2856
+ WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
2857
+ ----------------------------------------------------------------------------------
2858
+  (0.0ms) rollback transaction
2859
+  (0.1ms) begin transaction
2860
+ --------------------------------------------------------------------------------------
2861
+ WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
2862
+ --------------------------------------------------------------------------------------
2863
+  (0.1ms) rollback transaction
2864
+  (0.1ms) begin transaction
2865
+ --------------------------------------------------------------------------
2866
+ WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
2867
+ --------------------------------------------------------------------------
2868
+  (0.1ms) rollback transaction
2869
+  (0.1ms) begin transaction
2870
+ ------------------------------------------------
2871
+ WebConsole::ConsoleSessionTest: test_errors_aref
2872
+ ------------------------------------------------
2873
+  (0.1ms) rollback transaction
2874
+  (0.1ms) begin transaction
2875
+ -----------------------------------------------------
2876
+ WebConsole::ConsoleSessionTest: test_find_coerces_ids
2877
+ -----------------------------------------------------
2878
+  (0.1ms) rollback transaction
2879
+  (0.1ms) begin transaction
2880
+ -------------------------------------------------
2881
+ WebConsole::ConsoleSessionTest: test_model_naming
2882
+ -------------------------------------------------
2883
+  (0.1ms) rollback transaction
2884
+  (0.1ms) begin transaction
2885
+ ------------------------------------------------------------------
2886
+ WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
2887
+ ------------------------------------------------------------------
2888
+  (0.1ms) rollback transaction
2889
+  (0.1ms) begin transaction
2890
+ -------------------------------------------------------------------------------
2891
+ WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_json_serializable
2892
+ -------------------------------------------------------------------------------
2893
+  (0.1ms) rollback transaction
2894
+  (0.1ms) begin transaction
2895
+ -----------------------------------------------
2896
+ WebConsole::ConsoleSessionTest: test_persisted?
2897
+ -----------------------------------------------
2898
+  (0.1ms) rollback transaction
2899
+  (0.0ms) begin transaction
2900
+ ----------------------------------------------------------------------------
2901
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
2902
+ ----------------------------------------------------------------------------
2903
+  (0.1ms) rollback transaction
2904
+  (0.0ms) begin transaction
2905
+ -----------------------------------------------------------------------------------
2906
+ WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
2907
+ -----------------------------------------------------------------------------------
2908
+  (0.2ms) rollback transaction
2909
+  (0.1ms) begin transaction
2910
+ ---------------------------------------------------------------------------------------------
2911
+ WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
2912
+ ---------------------------------------------------------------------------------------------
2913
+  (0.1ms) rollback transaction
2914
+  (0.0ms) begin transaction
2915
+ ------------------------------------------------------------------------------
2916
+ WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
2917
+ ------------------------------------------------------------------------------
2918
+  (0.1ms) rollback transaction
2919
+  (0.1ms) begin transaction
2920
+ -------------------------------------------
2921
+ WebConsole::ConsoleSessionTest: test_to_key
2922
+ -------------------------------------------
2923
+  (0.1ms) rollback transaction
2924
+  (0.0ms) begin transaction
2925
+ ---------------------------------------------
2926
+ WebConsole::ConsoleSessionTest: test_to_param
2927
+ ---------------------------------------------
2928
+  (0.1ms) rollback transaction
2929
+  (0.1ms) begin transaction
2930
+ ----------------------------------------------------
2931
+ WebConsole::ConsoleSessionTest: test_to_partial_path
2932
+ ----------------------------------------------------
2933
+  (0.1ms) rollback transaction
2934
+  (0.0ms) begin transaction
2935
+ -------------------------------------------------------------------------------------
2936
+ WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
2937
+ -------------------------------------------------------------------------------------
2938
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2939
+ Completed 200 OK in 99ms (Views: 98.4ms | ActiveRecord: 0.0ms)
2940
+  (0.1ms) rollback transaction
2941
+  (0.1ms) begin transaction
2942
+ -------------------------------------------------------------------------------------------------
2943
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
2944
+ -------------------------------------------------------------------------------------------------
2945
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2946
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2947
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2948
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2949
+  (0.1ms) rollback transaction
2950
+  (0.0ms) begin transaction
2951
+ --------------------------------------------------------------------------------------------------------
2952
+ WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
2953
+ --------------------------------------------------------------------------------------------------------
2954
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2955
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
2956
+ Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
2957
+ Completed 410 Gone in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2958
+  (0.1ms) rollback transaction
2959
+  (0.0ms) begin transaction
2960
+ ------------------------------------------------------------------------------------------
2961
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
2962
+ ------------------------------------------------------------------------------------------
2963
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2964
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2965
+ Processing by WebConsole::ConsoleSessionsController#configuration as HTML
2966
+ Unpermitted parameters: id
2967
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
2968
+  (0.1ms) rollback transaction
2969
+  (0.1ms) begin transaction
2970
+ ----------------------------------------------------------------------------------
2971
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
2972
+ ----------------------------------------------------------------------------------
2973
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2974
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2975
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2976
+ Unpermitted parameters: id
2977
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2978
+  (0.2ms) rollback transaction
2979
+  (0.1ms) begin transaction
2980
+ -------------------------------------------------------------------------------------
2981
+ WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
2982
+ -------------------------------------------------------------------------------------
2983
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2984
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2985
+ Processing by WebConsole::ConsoleSessionsController#input as HTML
2986
+ Unpermitted parameters: id
2987
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2988
+  (0.1ms) rollback transaction
2989
+  (0.1ms) begin transaction
2990
+ ------------------------------------------------------------------------------------
2991
+ WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
2992
+ ------------------------------------------------------------------------------------
2993
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
2994
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2995
+  (0.1ms) rollback transaction
2996
+  (0.0ms) begin transaction
2997
+ ----------------------------------------------------------------------------------------
2998
+ WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
2999
+ ----------------------------------------------------------------------------------------
3000
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
3001
+ Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
3002
+ Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3003
+  (0.1ms) rollback transaction
3004
+  (0.0ms) begin transaction
3005
+ --------------------------------------------------------------------
3006
+ WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
3007
+ --------------------------------------------------------------------
3008
+  (0.1ms) rollback transaction
3009
+  (0.1ms) begin transaction
3010
+ -------------------------------------------------------------------
3011
+ WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
3012
+ -------------------------------------------------------------------
3013
+ Processing by WebConsole::ConsoleSessionsController#index as HTML
3014
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
3015
+  (0.1ms) rollback transaction
3016
+  (0.0ms) begin transaction
3017
+ -----------------------------------------------------------------------------
3018
+ WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
3019
+ -----------------------------------------------------------------------------
3020
+  (0.2ms) begin transaction
3021
+ ------------------------------------------------------
3022
+ WebConsole::EngineTest: test_custom_default_mount_path
3023
+ ------------------------------------------------------
3024
+  (0.2ms) begin transaction
3025
+ ---------------------------------------------------
3026
+ WebConsole::EngineTest: test_disabling_automounting
3027
+ ---------------------------------------------------
3028
+  (0.2ms) begin transaction
3029
+ ---------------------------------------------------------------
3030
+ WebConsole::EngineTest: test_present_commands_are_not_processed
3031
+ ---------------------------------------------------------------
3032
+  (0.2ms) begin transaction
3033
+ --------------------------------------------------------
3034
+ WebConsole::EngineTest: test_whitelist_multiple_networks
3035
+ --------------------------------------------------------
3036
+  (0.2ms) begin transaction
3037
+ -----------------------------------------------------
3038
+ WebConsole::EngineTest: test_whitelist_whole_networks
3039
+ -----------------------------------------------------
3040
+  (0.2ms) begin transaction
3041
+ -----------------------------------------------------------------------
3042
+ WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
3043
+ -----------------------------------------------------------------------
3044
+  (0.2ms) begin transaction
3045
+ -----------------------------------------------------------------------
3046
+ WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
3047
+ -----------------------------------------------------------------------
3048
+  (0.2ms) begin transaction
3049
+ ------------------------------------------------------------------
3050
+ WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
3051
+ ------------------------------------------------------------------
3052
+  (0.2ms) begin transaction
3053
+ -----------------------------------------------------------------------------
3054
+ WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
3055
+ -----------------------------------------------------------------------------
3056
+  (0.2ms) begin transaction
3057
+ ----------------------------------------------------------------
3058
+ WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
3059
+ ----------------------------------------------------------------
3060
+  (0.1ms) rollback transaction
3061
+  (0.0ms) begin transaction
3062
+ -------------------------------------------------------------------------------------------
3063
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
3064
+ -------------------------------------------------------------------------------------------
3065
+  (0.1ms) rollback transaction
3066
+  (0.0ms) begin transaction
3067
+ ------------------------------------------------------------------------------------------
3068
+ WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
3069
+ ------------------------------------------------------------------------------------------
3070
+  (0.1ms) rollback transaction
3071
+  (0.0ms) begin transaction
3072
+ ---------------------------------------------------------------------------
3073
+ WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
3074
+ ---------------------------------------------------------------------------
3075
+  (0.1ms) rollback transaction
3076
+  (0.0ms) begin transaction
3077
+ ----------------------------------------------------------------------------------
3078
+ WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
3079
+ ----------------------------------------------------------------------------------
3080
+  (0.1ms) rollback transaction
3081
+  (0.1ms) begin transaction
3082
+ --------------------------------------------------------------------------
3083
+ WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
3084
+ --------------------------------------------------------------------------
3085
+  (0.1ms) rollback transaction
3086
+  (0.1ms) begin transaction
3087
+ ---------------------------------------------------------------------------------
3088
+ WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
3089
+ ---------------------------------------------------------------------------------
3090
+  (0.1ms) rollback transaction
3091
+  (0.1ms) begin transaction
3092
+ --------------------------------------------------------------------------
3093
+ WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
3094
+ --------------------------------------------------------------------------
3095
+  (0.1ms) rollback transaction
3096
+  (0.0ms) begin transaction
3097
+ ---------------------------------------------------------------------------------------------
3098
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
3099
+ ---------------------------------------------------------------------------------------------
3100
+  (0.1ms) rollback transaction
3101
+  (0.0ms) begin transaction
3102
+ -----------------------------------------------------------------------------------------------
3103
+ WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
3104
+ -----------------------------------------------------------------------------------------------
3105
+  (0.1ms) rollback transaction
3106
+  (0.0ms) begin transaction
3107
+ ------------------------------------------------------------------------------------
3108
+ WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
3109
+ ------------------------------------------------------------------------------------
3110
+  (0.1ms) rollback transaction
3111
+  (0.0ms) begin transaction
3112
+ ----------------------------------------------------------------------------
3113
+ WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
3114
+ ----------------------------------------------------------------------------
3115
+  (0.1ms) rollback transaction
3116
+  (0.1ms) begin transaction
3117
+ -------------------------------------------------------------------------
3118
+ WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
1559
3119
  -------------------------------------------------------------------------
1560
3120
   (0.1ms) rollback transaction