Skip to content

Commit

Permalink
Adds license headers in source code files (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Milov <[email protected]>
  • Loading branch information
dmilov committed Apr 9, 2021
1 parent 62f14b6 commit f23df54
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

param(
[Parameter()]
[string]
Expand Down
6 changes: 5 additions & 1 deletion src/CloudEventsPowerShell/CloudEvents.Sdk.psd1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

@{

Expand All @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions src/CloudEventsPowerShell/CloudEvents.Sdk.psm1
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 5 additions & 0 deletions src/CloudEventsPowerShell/CloudEventsPowerShell.csproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
Copyright (c) Cloud Native Foundation.
SPDX-License-Identifier: Apache-2.0
-->

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/CloudEventsPowerShell/dataserialization/xml.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

BeforeAll {
. $PSCommandPath.Replace('.Tests.ps1', '.ps1')
}
Expand Down
5 changes: 5 additions & 0 deletions src/CloudEventsPowerShell/dataserialization/xml.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

$SKIPATTR = "SkipAttributes"
$ALWAYSATTRVALUE = "AlwaysAttrValue"
$ATTRVALUEFORELEMENTSWITHATTR = "AttrValueWhenAttributes"
Expand Down
5 changes: 5 additions & 0 deletions test/RunTests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

param(
[Parameter()]
[ValidateScript({Test-Path $_})]
Expand Down
5 changes: 5 additions & 0 deletions test/integration/HttpIntegration.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

param(
[Parameter()]
[ValidateScript({Test-Path $_})]
Expand Down
5 changes: 5 additions & 0 deletions test/integration/HttpServer.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

param(
[Parameter(Mandatory = $true)]
[ValidateScript({Test-Path $_})]
Expand Down
5 changes: 5 additions & 0 deletions test/integration/ProtocolConstants.ps1
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Add-CloudEventData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Add-CloudEventJsonData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Add-CloudEventXmlData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/ConvertFrom-HttpMessage.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

Describe "ConvertFrom-HttpMessage Function Tests" {
BeforeAll {
$expectedSpecVersion = '1.0'
Expand Down
5 changes: 5 additions & 0 deletions test/unit/ConvertTo-HttpMessage.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************

Describe "ConvertTo-HttpMessage Function Tests" {
BeforeAll {
$expectedSpecVersion = '1.0'
Expand Down
5 changes: 5 additions & 0 deletions test/unit/New-CloudEvent.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Read-CloudEventData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Read-CloudEventJsonData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/Read-CloudEventXmlData.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down

0 comments on commit f23df54

Please sign in to comment.