Skip to content

Commit

Permalink
Fix gitbook test data spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jul 10, 2018
1 parent a4643c1 commit 860e61c
Show file tree
Hide file tree
Showing 14 changed files with 159 additions and 26 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/docs/gitbook/gitbookCertification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ var exportControlTests = []exportControlTest{
"NIST-800-53",
"CM-2",
"NIST-800-53-CM-2.md",
`#NIST-800-53-CM-2
##Baseline Configuration
`# NIST-800-53-CM-2
## Baseline Configuration
#### Description
'The organization develops, documents, and maintains under configuration
control, a current baseline configuration of the information system.'
Expand Down
133 changes: 133 additions & 0 deletions test/compliance_masonry_suite_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
/*
Copyright (C) 2018 OpenControl Contributors. See LICENSE.md for license.
*/

/*
Copyright (C) 2018 OpenControl Contributors. See LICENSE.md for license.
*/

/*
Copyright (C) 2018 OpenControl Contributors. See LICENSE.md for license.
*/

package compliance_masonry_test

import (
"testing"

"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
)

func TestComplianceMasonry(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "ComplianceMasonry Suite")
RunSpecs(t, "ComplianceMasonryGo Suite")
}

// Declarations for Ginkgo DSL
type Done ginkgo.Done
type Benchmarker ginkgo.Benchmarker

var GinkgoWriter = ginkgo.GinkgoWriter
var GinkgoRandomSeed = ginkgo.GinkgoRandomSeed
var GinkgoParallelNode = ginkgo.GinkgoParallelNode
var GinkgoT = ginkgo.GinkgoT
var CurrentGinkgoTestDescription = ginkgo.CurrentGinkgoTestDescription
var RunSpecs = ginkgo.RunSpecs
var RunSpecsWithDefaultAndCustomReporters = ginkgo.RunSpecsWithDefaultAndCustomReporters
var RunSpecsWithCustomReporters = ginkgo.RunSpecsWithCustomReporters
var Skip = ginkgo.Skip
var Fail = ginkgo.Fail
var GinkgoRecover = ginkgo.GinkgoRecover
var Describe = ginkgo.Describe
var FDescribe = ginkgo.FDescribe
var PDescribe = ginkgo.PDescribe
var XDescribe = ginkgo.XDescribe
var Context = ginkgo.Context
var FContext = ginkgo.FContext
var PContext = ginkgo.PContext
var XContext = ginkgo.XContext
var When = ginkgo.When
var FWhen = ginkgo.FWhen
var PWhen = ginkgo.PWhen
var XWhen = ginkgo.XWhen
var It = ginkgo.It
var FIt = ginkgo.FIt
var PIt = ginkgo.PIt
var XIt = ginkgo.XIt
var Specify = ginkgo.Specify
var FSpecify = ginkgo.FSpecify
var PSpecify = ginkgo.PSpecify
var XSpecify = ginkgo.XSpecify
var By = ginkgo.By
var Measure = ginkgo.Measure
var FMeasure = ginkgo.FMeasure
var PMeasure = ginkgo.PMeasure
var XMeasure = ginkgo.XMeasure
var BeforeSuite = ginkgo.BeforeSuite
var AfterSuite = ginkgo.AfterSuite
var SynchronizedBeforeSuite = ginkgo.SynchronizedBeforeSuite
var SynchronizedAfterSuite = ginkgo.SynchronizedAfterSuite
var BeforeEach = ginkgo.BeforeEach
var JustBeforeEach = ginkgo.JustBeforeEach
var AfterEach = ginkgo.AfterEach

// Declarations for Gomega DSL
var RegisterFailHandler = gomega.RegisterFailHandler
var RegisterTestingT = gomega.RegisterTestingT
var InterceptGomegaFailures = gomega.InterceptGomegaFailures
var Ω = gomega.Ω
var Expect = gomega.Expect
var ExpectWithOffset = gomega.ExpectWithOffset
var Eventually = gomega.Eventually
var EventuallyWithOffset = gomega.EventuallyWithOffset
var Consistently = gomega.Consistently
var ConsistentlyWithOffset = gomega.ConsistentlyWithOffset
var SetDefaultEventuallyTimeout = gomega.SetDefaultEventuallyTimeout
var SetDefaultEventuallyPollingInterval = gomega.SetDefaultEventuallyPollingInterval
var SetDefaultConsistentlyDuration = gomega.SetDefaultConsistentlyDuration
var SetDefaultConsistentlyPollingInterval = gomega.SetDefaultConsistentlyPollingInterval
var NewGomegaWithT = gomega.NewGomegaWithT

// Declarations for Gomega Matchers
var Equal = gomega.Equal
var BeEquivalentTo = gomega.BeEquivalentTo
var BeIdenticalTo = gomega.BeIdenticalTo
var BeNil = gomega.BeNil
var BeTrue = gomega.BeTrue
var BeFalse = gomega.BeFalse
var HaveOccurred = gomega.HaveOccurred
var Succeed = gomega.Succeed
var MatchError = gomega.MatchError
var BeClosed = gomega.BeClosed
var Receive = gomega.Receive
var BeSent = gomega.BeSent
var MatchRegexp = gomega.MatchRegexp
var ContainSubstring = gomega.ContainSubstring
var HavePrefix = gomega.HavePrefix
var HaveSuffix = gomega.HaveSuffix
var MatchJSON = gomega.MatchJSON
var MatchXML = gomega.MatchXML
var MatchYAML = gomega.MatchYAML
var BeEmpty = gomega.BeEmpty
var HaveLen = gomega.HaveLen
var HaveCap = gomega.HaveCap
var BeZero = gomega.BeZero
var ContainElement = gomega.ContainElement
var ConsistOf = gomega.ConsistOf
var HaveKey = gomega.HaveKey
var HaveKeyWithValue = gomega.HaveKeyWithValue
var BeNumerically = gomega.BeNumerically
var BeTemporally = gomega.BeTemporally
var BeAssignableToTypeOf = gomega.BeAssignableToTypeOf
var Panic = gomega.Panic
var BeAnExistingFile = gomega.BeAnExistingFile
var BeARegularFile = gomega.BeARegularFile
var BeADirectory = gomega.BeADirectory
var And = gomega.And
var SatisfyAll = gomega.SatisfyAll
var Or = gomega.Or
var SatisfyAny = gomega.SatisfyAny
var Not = gomega.Not
var WithTransform = gomega.WithTransform
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-AC-2
##Account Management
# NIST-800-53-AC-2
## Account Management
#### Description
'The organization:
a. Identifies and selects the following types of information system accounts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-AC-6
##Least Privilege
# NIST-800-53-AC-6
## Least Privilege
#### Description
'The organization employs the principle of least privilege, allowing only
authorized accesses for users (or processes acting on behalf of users) which
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-CM-2
##Baseline Configuration
# NIST-800-53-CM-2
## Baseline Configuration
#### Description
'The organization develops, documents, and maintains under configuration
control, a current baseline configuration of the information system.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PCI-DSS-MAY-2015-1.1.1
##A formal process for approving and testing all network connections and changes to the firewall and router configurations
# PCI-DSS-MAY-2015-1.1.1
## A formal process for approving and testing all network connections and changes to the firewall and router configurations

No information found for the combination of standard PCI-DSS-MAY-2015 and control 1.1.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-1.1
##Establish and implement firewall and router configuration standards.
# PCI-DSS-MAY-2015-1.1
## Establish and implement firewall and router configuration standards.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-2.1
##Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.
# PCI-DSS-MAY-2015-2.1
## Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NIST-800-53-AC-2
##Account Management
# NIST-800-53-AC-2
## Account Management

No information found for the combination of standard NIST-800-53 and control AC-2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NIST-800-53-AC-6
##Least Privilege
# NIST-800-53-AC-6
## Least Privilege

No information found for the combination of standard NIST-800-53 and control AC-6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-CM-2
##Baseline Configuration
# NIST-800-53-CM-2
## Baseline Configuration

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PCI-DSS-MAY-2015-1.1.1
##A formal process for approving and testing all network connections and changes to the firewall and router configurations
# PCI-DSS-MAY-2015-1.1.1
## A formal process for approving and testing all network connections and changes to the firewall and router configurations

No information found for the combination of standard PCI-DSS-MAY-2015 and control 1.1.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-1.1
##Establish and implement firewall and router configuration standards.
# PCI-DSS-MAY-2015-1.1
## Establish and implement firewall and router configuration standards.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-2.1
##Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.
# PCI-DSS-MAY-2015-2.1
## Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.

#### Amazon Elastic Compute Cloud

Expand Down

0 comments on commit 860e61c

Please sign in to comment.