Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to include info about LOVE Configuration File #144

Merged
merged 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/doctrees/apidoc/api.doctree
Binary file not shown.
Binary file modified docs/doctrees/apidoc/api.tests.doctree
Binary file not shown.
Binary file modified docs/doctrees/apidoc/manager.doctree
Binary file not shown.
Binary file modified docs/doctrees/apidoc/subscription.doctree
Binary file not shown.
Binary file modified docs/doctrees/apidoc/ui_framework.doctree
Binary file not shown.
Binary file modified docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/doctrees/modules/how_to_use_it.doctree
Binary file not shown.
Binary file modified docs/doctrees/modules/readme_link.doctree
Binary file not shown.
8 changes: 8 additions & 0 deletions docs/html/_sources/apidoc/api.tests.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ api.tests package
Submodules
----------

api.tests.test\_authlist module
-------------------------------

.. automodule:: api.tests.test_authlist
:members:
:undoc-members:
:show-inheritance:

api.tests.test\_commander module
--------------------------------

Expand Down
43 changes: 43 additions & 0 deletions docs/html/_sources/modules/how_to_use_it.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,49 @@ Delete WorkspaceView
"status": 204
}

LOVE Configuration File
=======================

The config files feature allows loading custom configurations to the LOVE system. These files are uploaded using the LOVE-manager admin platform:

1. Enter http://love-host/manager/admin/. You have to replace **love-host** with the host you are using, e.g. http://love01.cp.lsst.org/manager/admin
2. Login with your admin credentials
3. Then go to http://love-host/manager/admin/api/configfile/
4. Select the ADD CONFIG FILE button
5. Enter the required information:
a. A user must be set
b. The filename (must include the extension)
c. The file itself to be loaded
6. Click the SAVE button

The file extension must be json and the format has the form:

.. code-block:: json
{
"alarms": {
"minSeveritySound": "mute",
"minSeverityNotification": "mute"
},
"camFeeds": {
"generic": "/gencam",
"allSky": "/gencam"
}
}
This is a normal json file with ``{“key”: “value”}`` items. You can use different variable types such as: strings, numbers, arrays and objects.

Available configurations to the moment:

- **alarms**:

- minSeveritySound: {“mute”, “muted”, “warning”, “serious”, “critical”} : minimum level to reproduce sound alarm notifications. If set to “mute” or “muted” no sound is going to be reproduced.
- minSeverityNotification: {“mute”, “muted”, “warning”, “serious”, “critical”} : minimum level to report alarm notifications. If set to “mute” or “muted” no alarm will be reported.
- **camFeeds**:

- generic: cam feed used on the GenericCamera component. This feed will be used if the “generic” value is set on the FEEDKEY configuration parameter of the Generic Camera component.
- allSky: cam feed used on the GenericCamera component. This feed will be used if the “allSky” value is set on the FEEDKEY configuration parameter of the Generic Camera component.
- **efd**:

- defaultEfdInstance : {“summit_efd”, "ncsa_teststand_efd", “"ldf_stable_efd"”, “ldf_int_efd”, “base_efd”, “tucson_teststand_efd”, “test_efd”} : default efd instance to be queried on the VegaTimeSeriesPlot component.

EFD
============
Expand Down
7 changes: 6 additions & 1 deletion docs/html/_static/pygments.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pre { line-height: 125%; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #f8f8f8; }
.highlight { background: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
Expand Down
455 changes: 440 additions & 15 deletions docs/html/apidoc/api.html

Large diffs are not rendered by default.

110 changes: 100 additions & 10 deletions docs/html/apidoc/api.tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,69 @@
<h1><span class="section-number">5.1.1.1. </span>api.tests package<a class="headerlink" href="#api-tests-package" title="Permalink to this headline">¶</a></h1>
<div class="section" id="submodules">
<h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
</div>
<div class="section" id="module-api.tests.test_authlist">
<span id="api-tests-test-authlist-module"></span><h2><span class="section-number">5.1.1.1.2. </span>api.tests.test_authlist module<a class="headerlink" href="#module-api.tests.test_authlist" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="api.tests.test_authlist.AuthlistTestCase">
<em class="property">class </em><code class="sig-prename descclassname">api.tests.test_authlist.</code><code class="sig-name descname">AuthlistTestCase</code><span class="sig-paren">(</span><em class="sig-param">methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">django.test.testcases.TestCase</span></code></p>
<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.setUp">
<code class="sig-name descname">setUp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.setUp" title="Permalink to this definition">¶</a></dt>
<dd><p>Define the test suite setup.</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_create_request_authlist_user">
<code class="sig-name descname">test_csc_authorization_create_request_authlist_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_create_request_authlist_user" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest creation for authlist users
This request will be created with status = Authorized as the user is in the authlist group</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_create_request_normal_user">
<code class="sig-name descname">test_csc_authorization_create_request_normal_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_create_request_normal_user" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest creation for non authlist users
This request will be created with status = Pending as the user is not in the authlist group</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_request_list_authlist_user">
<code class="sig-name descname">test_csc_authorization_request_list_authlist_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_request_list_authlist_user" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest listing for authlist users
This request should return all available CSCAuthorizationRequest objects</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_request_list_normal_user">
<code class="sig-name descname">test_csc_authorization_request_list_normal_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_request_list_normal_user" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest listing for non authlist users
This request should return available CSCAuthorizationRequest that were requested by the user
and also the ones which authorized_users parameter include the <a class="reference external" href="mailto:user&#37;&#52;&#48;host">user<span>&#64;</span>host</a></p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_self_remove_normal_user">
<code class="sig-name descname">test_csc_authorization_self_remove_normal_user</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_self_remove_normal_user" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest with a self removal for non authlist users
This request will create two instances:
1. With the information of the request without the self removed user
2. With just the information of the self removed user. This one will be set with status = Authorized</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_update_request">
<code class="sig-name descname">test_csc_authorization_update_request</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_authlist.AuthlistTestCase.test_csc_authorization_update_request" title="Permalink to this definition">¶</a></dt>
<dd><p>Test CSCAuthorizationRequest update (approve or deny) for authlist users
This request will update the specified CSCAuthorizationRequest instance</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-api.tests.test_commander">
<span id="api-tests-test-commander-module"></span><h2><span class="section-number">5.1.1.1.2. </span>api.tests.test_commander module<a class="headerlink" href="#module-api.tests.test_commander" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-test-commander-module"></span><h2><span class="section-number">5.1.1.1.3. </span>api.tests.test_commander module<a class="headerlink" href="#module-api.tests.test_commander" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="api.tests.test_commander.CommanderTestCase">
<em class="property">class </em><code class="sig-prename descclassname">api.tests.test_commander.</code><code class="sig-name descname">CommanderTestCase</code><span class="sig-paren">(</span><em class="sig-param">methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.CommanderTestCase" title="Permalink to this definition">¶</a></dt>
Expand Down Expand Up @@ -302,16 +362,46 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_command_query">
<code class="sig-name descname">test_command_query</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query" title="Permalink to this definition">¶</a></dt>
<dd><p>Test authorized user can send a TCS command</p>
<dt id="api.tests.test_commander.TCSTestCase.test_command_query_atcs">
<code class="sig-name descname">test_command_query_atcs</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query_atcs" title="Permalink to this definition">¶</a></dt>
<dd><p>Test authorized user can send a ATCS command</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_command_query_atcs_unauthorized">
<code class="sig-name descname">test_command_query_atcs_unauthorized</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query_atcs_unauthorized" title="Permalink to this definition">¶</a></dt>
<dd><p>Test unauthorized user cannot send a ATCS command</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_command_query_mtcs">
<code class="sig-name descname">test_command_query_mtcs</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query_mtcs" title="Permalink to this definition">¶</a></dt>
<dd><p>Test authorized user can send a MTCS command</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_command_query_mtcs_unauthorized">
<code class="sig-name descname">test_command_query_mtcs_unauthorized</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query_mtcs_unauthorized" title="Permalink to this definition">¶</a></dt>
<dd><p>Test unauthorized user cannot send a MTCS command</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_docstrings_query_atcs">
<code class="sig-name descname">test_docstrings_query_atcs</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_docstrings_query_atcs" title="Permalink to this definition">¶</a></dt>
<dd><p>Test authorized user can send a ATCS command</p>
</dd></dl>

<dl class="method">
<dt id="api.tests.test_commander.TCSTestCase.test_docstrings_query_mtcs">
<code class="sig-name descname">test_docstrings_query_mtcs</code><span class="sig-paren">(</span><em class="sig-param">mock_requests</em>, <em class="sig-param">mock_environ</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_commander.TCSTestCase.test_docstrings_query_mtcs" title="Permalink to this definition">¶</a></dt>
<dd><p>Test authorized user can send a MTCS command</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-api.tests.test_lovecsc">
<span id="api-tests-test-lovecsc-module"></span><h2><span class="section-number">5.1.1.1.3. </span>api.tests.test_lovecsc module<a class="headerlink" href="#module-api.tests.test_lovecsc" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-test-lovecsc-module"></span><h2><span class="section-number">5.1.1.1.4. </span>api.tests.test_lovecsc module<a class="headerlink" href="#module-api.tests.test_lovecsc" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="api.tests.test_lovecsc.LOVECscTestCase">
<em class="property">class </em><code class="sig-prename descclassname">api.tests.test_lovecsc.</code><code class="sig-name descname">LOVECscTestCase</code><span class="sig-paren">(</span><em class="sig-param">methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_lovecsc.LOVECscTestCase" title="Permalink to this definition">¶</a></dt>
Expand Down Expand Up @@ -343,7 +433,7 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin

</div>
<div class="section" id="module-api.tests.test_schema_validation">
<span id="api-tests-test-schema-validation-module"></span><h2><span class="section-number">5.1.1.1.4. </span>api.tests.test_schema_validation module<a class="headerlink" href="#module-api.tests.test_schema_validation" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-test-schema-validation-module"></span><h2><span class="section-number">5.1.1.1.5. </span>api.tests.test_schema_validation module<a class="headerlink" href="#module-api.tests.test_schema_validation" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="api.tests.test_schema_validation.SchemaValidationTestCase">
<em class="property">class </em><code class="sig-prename descclassname">api.tests.test_schema_validation.</code><code class="sig-name descname">SchemaValidationTestCase</code><span class="sig-paren">(</span><em class="sig-param">methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#api.tests.test_schema_validation.SchemaValidationTestCase" title="Permalink to this definition">¶</a></dt>
Expand Down Expand Up @@ -386,7 +476,7 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin

</div>
<div class="section" id="module-api.tests.tests_auth_api">
<span id="api-tests-tests-auth-api-module"></span><h2><span class="section-number">5.1.1.1.5. </span>api.tests.tests_auth_api module<a class="headerlink" href="#module-api.tests.tests_auth_api" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-tests-auth-api-module"></span><h2><span class="section-number">5.1.1.1.6. </span>api.tests.tests_auth_api module<a class="headerlink" href="#module-api.tests.tests_auth_api" title="Permalink to this headline">¶</a></h2>
<p>Test users’ authentication through the API.</p>
<dl class="class">
<dt id="api.tests.tests_auth_api.AuthApiTestCase">
Expand Down Expand Up @@ -486,7 +576,7 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin

</div>
<div class="section" id="module-api.tests.tests_configfile">
<span id="api-tests-tests-configfile-module"></span><h2><span class="section-number">5.1.1.1.6. </span>api.tests.tests_configfile module<a class="headerlink" href="#module-api.tests.tests_configfile" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-tests-configfile-module"></span><h2><span class="section-number">5.1.1.1.7. </span>api.tests.tests_configfile module<a class="headerlink" href="#module-api.tests.tests_configfile" title="Permalink to this headline">¶</a></h2>
<p>Test users’ authentication through the API.</p>
<dl class="class">
<dt id="api.tests.tests_configfile.ConfigFileApiTestCase">
Expand Down Expand Up @@ -537,7 +627,7 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin

</div>
<div class="section" id="module-api.tests.tests_emergencycontact">
<span id="api-tests-tests-emergencycontact-module"></span><h2><span class="section-number">5.1.1.1.7. </span>api.tests.tests_emergencycontact module<a class="headerlink" href="#module-api.tests.tests_emergencycontact" title="Permalink to this headline">¶</a></h2>
<span id="api-tests-tests-emergencycontact-module"></span><h2><span class="section-number">5.1.1.1.8. </span>api.tests.tests_emergencycontact module<a class="headerlink" href="#module-api.tests.tests_emergencycontact" title="Permalink to this headline">¶</a></h2>
<p>Test users’ authentication through the API.</p>
<dl class="class">
<dt id="api.tests.tests_emergencycontact.EmergencyContactApiTestCase">
Expand Down Expand Up @@ -565,7 +655,7 @@ <h2><span class="section-number">5.1.1.1.1. </span>Submodules<a class="headerlin

</div>
<div class="section" id="module-api.tests">
<span id="module-contents"></span><h2><span class="section-number">5.1.1.1.8. </span>Module contents<a class="headerlink" href="#module-api.tests" title="Permalink to this headline">¶</a></h2>
<span id="module-contents"></span><h2><span class="section-number">5.1.1.1.9. </span>Module contents<a class="headerlink" href="#module-api.tests" title="Permalink to this headline">¶</a></h2>
</div>
</div>

Expand Down
Loading