diff --git a/build.ps1 b/build.ps1 index 87370b8..72d663e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + param( [Parameter()] [string] diff --git a/src/CloudEventsPowerShell/CloudEvents.Sdk.psd1 b/src/CloudEventsPowerShell/CloudEvents.Sdk.psd1 index 783b80d..281286d 100644 --- a/src/CloudEventsPowerShell/CloudEvents.Sdk.psd1 +++ b/src/CloudEventsPowerShell/CloudEvents.Sdk.psd1 @@ -1,3 +1,7 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** @{ @@ -20,7 +24,7 @@ Author = 'dmilov' CompanyName = 'The CloudEvents Authors' # Copyright statement for this module -Copyright = '(c) The CloudEvents Authors +Copyright = '(c) The CloudEvents Authors' # Description of the functionality provided by this module Description = 'PowerShell CloudEvents SDK' diff --git a/src/CloudEventsPowerShell/CloudEvents.Sdk.psm1 b/src/CloudEventsPowerShell/CloudEvents.Sdk.psm1 index 1b959d9..7ff4540 100644 --- a/src/CloudEventsPowerShell/CloudEvents.Sdk.psm1 +++ b/src/CloudEventsPowerShell/CloudEvents.Sdk.psm1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + $xmlDataSerilizationLibPath = Join-Path (Join-Path $PSScriptRoot 'dataserialization') 'xml.ps1' . $xmlDataSerilizationLibPath diff --git a/src/CloudEventsPowerShell/CloudEventsPowerShell.csproj b/src/CloudEventsPowerShell/CloudEventsPowerShell.csproj index 9235420..645a1b1 100644 --- a/src/CloudEventsPowerShell/CloudEventsPowerShell.csproj +++ b/src/CloudEventsPowerShell/CloudEventsPowerShell.csproj @@ -1,3 +1,8 @@ + + diff --git a/src/CloudEventsPowerShell/dataserialization/xml.Tests.ps1 b/src/CloudEventsPowerShell/dataserialization/xml.Tests.ps1 index df51aad..c168f8e 100644 --- a/src/CloudEventsPowerShell/dataserialization/xml.Tests.ps1 +++ b/src/CloudEventsPowerShell/dataserialization/xml.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + BeforeAll { . $PSCommandPath.Replace('.Tests.ps1', '.ps1') } diff --git a/src/CloudEventsPowerShell/dataserialization/xml.ps1 b/src/CloudEventsPowerShell/dataserialization/xml.ps1 index a4022b5..2f74ca7 100644 --- a/src/CloudEventsPowerShell/dataserialization/xml.ps1 +++ b/src/CloudEventsPowerShell/dataserialization/xml.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + $SKIPATTR = "SkipAttributes" $ALWAYSATTRVALUE = "AlwaysAttrValue" $ATTRVALUEFORELEMENTSWITHATTR = "AttrValueWhenAttributes" diff --git a/test/RunTests.ps1 b/test/RunTests.ps1 index 0d9cac7..543829a 100644 --- a/test/RunTests.ps1 +++ b/test/RunTests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + param( [Parameter()] [ValidateScript({Test-Path $_})] diff --git a/test/integration/HttpIntegration.Tests.ps1 b/test/integration/HttpIntegration.Tests.ps1 index 18f9f7f..357dc91 100644 --- a/test/integration/HttpIntegration.Tests.ps1 +++ b/test/integration/HttpIntegration.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + param( [Parameter()] [ValidateScript({Test-Path $_})] diff --git a/test/integration/HttpServer.ps1 b/test/integration/HttpServer.ps1 index ced4987..d877444 100644 --- a/test/integration/HttpServer.ps1 +++ b/test/integration/HttpServer.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + param( [Parameter(Mandatory = $true)] [ValidateScript({Test-Path $_})] diff --git a/test/integration/ProtocolConstants.ps1 b/test/integration/ProtocolConstants.ps1 index 839fa8f..45b9400 100644 --- a/test/integration/ProtocolConstants.ps1 +++ b/test/integration/ProtocolConstants.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + New-Variable -Option Constant -Scope 'script' -Name 'ClientSource' -Value 'ps:test:client' New-Variable -Option Constant -Scope 'script' -Name 'ServerSource' -Value 'ps:test:server' New-Variable -Option Constant -Scope 'script' -Name 'EchoBinaryType' -Value 'echo-binary' diff --git a/test/unit/Add-CloudEventData.Tests.ps1 b/test/unit/Add-CloudEventData.Tests.ps1 index 18c4180..16efd85 100644 --- a/test/unit/Add-CloudEventData.Tests.ps1 +++ b/test/unit/Add-CloudEventData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Add-CloudEventData Function Tests" { Context "Adds Data" { It 'Adds byte[] data' { diff --git a/test/unit/Add-CloudEventJsonData.Tests.ps1 b/test/unit/Add-CloudEventJsonData.Tests.ps1 index 1eb940a..edb1a60 100644 --- a/test/unit/Add-CloudEventJsonData.Tests.ps1 +++ b/test/unit/Add-CloudEventJsonData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Add-CloudEventJsonData Function Tests" { Context "Adds Json Data" { It 'Adds json data with depth 1' { diff --git a/test/unit/Add-CloudEventXmlData.Tests.ps1 b/test/unit/Add-CloudEventXmlData.Tests.ps1 index 6d189e1..df6c081 100644 --- a/test/unit/Add-CloudEventXmlData.Tests.ps1 +++ b/test/unit/Add-CloudEventXmlData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Add-CloudEventXmlData Function Tests" { Context "Adds Xml Data" { It 'Adds xml data with depth 1' { diff --git a/test/unit/ConvertFrom-HttpMessage.Tests.ps1 b/test/unit/ConvertFrom-HttpMessage.Tests.ps1 index cb76ae4..145338f 100644 --- a/test/unit/ConvertFrom-HttpMessage.Tests.ps1 +++ b/test/unit/ConvertFrom-HttpMessage.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "ConvertFrom-HttpMessage Function Tests" { BeforeAll { $expectedSpecVersion = '1.0' diff --git a/test/unit/ConvertTo-HttpMessage.Tests.ps1 b/test/unit/ConvertTo-HttpMessage.Tests.ps1 index c57f42e..0927a0f 100644 --- a/test/unit/ConvertTo-HttpMessage.Tests.ps1 +++ b/test/unit/ConvertTo-HttpMessage.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "ConvertTo-HttpMessage Function Tests" { BeforeAll { $expectedSpecVersion = '1.0' diff --git a/test/unit/New-CloudEvent.Tests.ps1 b/test/unit/New-CloudEvent.Tests.ps1 index 4bc27d1..be1e9b2 100644 --- a/test/unit/New-CloudEvent.Tests.ps1 +++ b/test/unit/New-CloudEvent.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "New-CloudEvent Function Tests" { Context "Create CloudEvent Object" { It 'Create CloudEvent with required parameters only' { diff --git a/test/unit/Read-CloudEventData.Tests.ps1 b/test/unit/Read-CloudEventData.Tests.ps1 index 2641f70..ca7aeae 100644 --- a/test/unit/Read-CloudEventData.Tests.ps1 +++ b/test/unit/Read-CloudEventData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Read-CloudEventData Function Tests" { Context "Extracts Data from CloudEvent" { It 'Reads xml text data' { diff --git a/test/unit/Read-CloudEventJsonData.Tests.ps1 b/test/unit/Read-CloudEventJsonData.Tests.ps1 index 9d6d5d2..4c10e5b 100644 --- a/test/unit/Read-CloudEventJsonData.Tests.ps1 +++ b/test/unit/Read-CloudEventJsonData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Read-CloudEventJsonData Function Tests" { Context "Extracts Json Data from CloudEvent" { It 'Extracts hashtable from CloudEvent with json data' { diff --git a/test/unit/Read-CloudEventXmlData.Tests.ps1 b/test/unit/Read-CloudEventXmlData.Tests.ps1 index f74ddde..f2a4e80 100644 --- a/test/unit/Read-CloudEventXmlData.Tests.ps1 +++ b/test/unit/Read-CloudEventXmlData.Tests.ps1 @@ -1,3 +1,8 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + Describe "Read-CloudEventXmlData Function Tests" { Context "Extracts Xml Data from CloudEvent" { It 'Extracts hashtable from CloudEvent with xml data' {