Fixing paths
Adding more Caf to the YAML Test for the YAML to make sure it is valid YAML
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<% subprinciple.subprincipleitemgroups.each do |subprincipleitemgroup| %>
|
<% subprinciple.subprincipleitemgroups.each do |subprincipleitemgroup| %>
|
||||||
<td>
|
<td>
|
||||||
<% subprincipleitemgroup.subprincipleitems.each do |subprincipleitem| %>
|
<% subprincipleitemgroup.subprincipleitems.each do |subprincipleitem| %>
|
||||||
<div style="background-color:<%= subprincipleitem.affirmative ? '#05aa05' : '#aa3030' %>;" id="<%= "subprincipleitemid_#{subprincipleitem.id}" %>" class="subprincipleitem"><%= subprincipleitem.description %><%= link_to "Change", edit_subprincipleitem_path(subprincipleitem) %>
|
<div style="background-color:<%= subprincipleitem.affirmative ? '#05aa05' : '#aa3030' %>;" id="<%= "subprincipleitemid_#{subprincipleitem.id}" %>" class="subprincipleitem"><%= subprincipleitem.description %><%= link_to "Change", edit_caf_subprincipleitem_path(subprincipleitem) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -91,10 +91,10 @@ objectives:
|
|||||||
condition: All
|
condition: All
|
||||||
subprincipleitem:
|
subprincipleitem:
|
||||||
- Your organisational process ensures that security risks to networks and information systems relevant to essential functions are identified, analysed, prioritised, and managed.
|
- Your organisational process ensures that security risks to networks and information systems relevant to essential functions are identified, analysed, prioritised, and managed.
|
||||||
- Your risk assessments are informed by an understanding of the vulnerabilities in the networks and info<p style="color: green"><%= notice %></p>rmation systems supporting your essential function.
|
- Your risk assessments are informed by an understanding of the vulnerabilities in the network and information systems supporting your essential function(s).
|
||||||
- The output from your risk management process is a clear set of security requirements that will address the risks in line with your organisational approach to security.
|
- The output from your risk management process is a clear set of security requirements that will address the risks in line with your organisational approach to security.
|
||||||
- Significant conclusions reached in the course of your risk management process are communicated to key security decision-makers and accountable individuals.
|
- Significant conclusions reached in the course of your risk management process are communicated to key security decision-makers and accountable individuals.
|
||||||
- You conduct risk assessments when significant events potentially affect the essential function, such as replacing a system or a change in the cybe<p style="color: green"><%= notice %></p>r security threat.
|
- You conduct risk assessments when significant events potentially affect the essential function(s), such as replacing a system or a change in the cyber security threat.
|
||||||
- You perform threat analysis and understand how generic threats apply to your organisation.
|
- You perform threat analysis and understand how generic threats apply to your organisation.
|
||||||
- subprincipleitemgroup:
|
- subprincipleitemgroup:
|
||||||
kind: Achieved
|
kind: Achieved
|
||||||
@@ -181,7 +181,7 @@ objectives:
|
|||||||
- You are aware of all third-party connections and have assurance that they meet your organisation’s security requirements.
|
- You are aware of all third-party connections and have assurance that they meet your organisation’s security requirements.
|
||||||
- Your approach to security incident management considers incidents that might arise in your supply chain.
|
- Your approach to security incident management considers incidents that might arise in your supply chain.
|
||||||
- You have confidence that information shared with suppliers that is necessary for the operation of your essential function(s) is appropriately protected from well-known attacks and known vulnerabilities.
|
- You have confidence that information shared with suppliers that is necessary for the operation of your essential function(s) is appropriately protected from well-known attacks and known vulnerabilities.
|
||||||
-subprincipleitemgroup:
|
- subprincipleitemgroup:
|
||||||
kind: Achieved
|
kind: Achieved
|
||||||
condition: All
|
condition: All
|
||||||
subprincipleitem:
|
subprincipleitem:
|
||||||
@@ -291,7 +291,7 @@ objectives:
|
|||||||
- You have taken appropriate steps to mitigate any risks identified.
|
- You have taken appropriate steps to mitigate any risks identified.
|
||||||
- The act of connecting to a network port or cable does not grant access to any systems.
|
- The act of connecting to a network port or cable does not grant access to any systems.
|
||||||
- You are able to detect unknown devices being connected to your network and information systems and investigate such incidents.
|
- You are able to detect unknown devices being connected to your network and information systems and investigate such incidents.
|
||||||
-subprincipleitemgroup:
|
- subprincipleitemgroup:
|
||||||
kind: Achieved
|
kind: Achieved
|
||||||
condition: All
|
condition: All
|
||||||
subprincipleitem:
|
subprincipleitem:
|
||||||
@@ -333,7 +333,7 @@ objectives:
|
|||||||
- sub-principle:
|
- sub-principle:
|
||||||
name: B2.d Identity and Access Management (IdAM)
|
name: B2.d Identity and Access Management (IdAM)
|
||||||
description: You closely manage and maintain identity and access control for users, devices and systems accessing the network and information systems supporting your essential function(s).
|
description: You closely manage and maintain identity and access control for users, devices and systems accessing the network and information systems supporting your essential function(s).
|
||||||
subprincipleitemgroup:
|
subprincipleitemgroups:
|
||||||
- subprincipleitemgroup:
|
- subprincipleitemgroup:
|
||||||
kind: Not
|
kind: Not
|
||||||
condition: At least one
|
condition: At least one
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ Rails.application.routes.draw do
|
|||||||
resources :cafs
|
resources :cafs
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# edit_caf_subprincipleitem GET /cafs/:caf_id/subprincipleitems/:id/edit(.:format)
|
||||||
|
# caf_subprincipleitem PATCH /cafs/:caf_id/subprincipleitems/:id(.:format)
|
||||||
|
|
||||||
resources 'cafs', only: [:show] do
|
resources 'cafs', only: [:show] do
|
||||||
resources :subprincipleitems, only: [:edit, :update]
|
resources :subprincipleitems, only: [:edit, :update]
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
require "test_helper"
|
require "test_helper"
|
||||||
|
require 'yaml'
|
||||||
|
|
||||||
class CafTest < ActiveSupport::TestCase
|
class CafTest < ActiveSupport::TestCase
|
||||||
test "name_unique_per_company" do
|
test "name_unique_per_company" do
|
||||||
@@ -11,4 +12,8 @@ class CafTest < ActiveSupport::TestCase
|
|||||||
c = Caf.new
|
c = Caf.new
|
||||||
assert !c.save
|
assert !c.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "yaml file is valid" do
|
||||||
|
ymal = YAML.load_file('config/caf_text.yml')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user