Adds license headers in source code files (#11)

Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
dmilov 2021-04-09 10:44:14 +03:00 committed by GitHub
parent 62f14b6b1b
commit f23df54f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 95 additions and 1 deletions

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
param( param(
[Parameter()] [Parameter()]
[string] [string]

View File

@ -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' CompanyName = 'The CloudEvents Authors'
# Copyright statement for this module # Copyright statement for this module
Copyright = '(c) The CloudEvents Authors Copyright = '(c) The CloudEvents Authors'
# Description of the functionality provided by this module # Description of the functionality provided by this module
Description = 'PowerShell CloudEvents SDK' Description = 'PowerShell CloudEvents SDK'

View File

@ -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 = Join-Path (Join-Path $PSScriptRoot 'dataserialization') 'xml.ps1'
. $xmlDataSerilizationLibPath . $xmlDataSerilizationLibPath

View File

@ -1,3 +1,8 @@
<!--
Copyright (c) Cloud Native Foundation.
SPDX-License-Identifier: Apache-2.0
-->
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
BeforeAll { BeforeAll {
. $PSCommandPath.Replace('.Tests.ps1', '.ps1') . $PSCommandPath.Replace('.Tests.ps1', '.ps1')
} }

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
$SKIPATTR = "SkipAttributes" $SKIPATTR = "SkipAttributes"
$ALWAYSATTRVALUE = "AlwaysAttrValue" $ALWAYSATTRVALUE = "AlwaysAttrValue"
$ATTRVALUEFORELEMENTSWITHATTR = "AttrValueWhenAttributes" $ATTRVALUEFORELEMENTSWITHATTR = "AttrValueWhenAttributes"

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
param( param(
[Parameter()] [Parameter()]
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
param( param(
[Parameter()] [Parameter()]
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
param( param(
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]

View File

@ -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 'ClientSource' -Value 'ps:test:client'
New-Variable -Option Constant -Scope 'script' -Name 'ServerSource' -Value 'ps:test:server' New-Variable -Option Constant -Scope 'script' -Name 'ServerSource' -Value 'ps:test:server'
New-Variable -Option Constant -Scope 'script' -Name 'EchoBinaryType' -Value 'echo-binary' New-Variable -Option Constant -Scope 'script' -Name 'EchoBinaryType' -Value 'echo-binary'

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Add-CloudEventData Function Tests" { Describe "Add-CloudEventData Function Tests" {
Context "Adds Data" { Context "Adds Data" {
It 'Adds byte[] data' { It 'Adds byte[] data' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Add-CloudEventJsonData Function Tests" { Describe "Add-CloudEventJsonData Function Tests" {
Context "Adds Json Data" { Context "Adds Json Data" {
It 'Adds json data with depth 1' { It 'Adds json data with depth 1' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Add-CloudEventXmlData Function Tests" { Describe "Add-CloudEventXmlData Function Tests" {
Context "Adds Xml Data" { Context "Adds Xml Data" {
It 'Adds xml data with depth 1' { It 'Adds xml data with depth 1' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "ConvertFrom-HttpMessage Function Tests" { Describe "ConvertFrom-HttpMessage Function Tests" {
BeforeAll { BeforeAll {
$expectedSpecVersion = '1.0' $expectedSpecVersion = '1.0'

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "ConvertTo-HttpMessage Function Tests" { Describe "ConvertTo-HttpMessage Function Tests" {
BeforeAll { BeforeAll {
$expectedSpecVersion = '1.0' $expectedSpecVersion = '1.0'

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "New-CloudEvent Function Tests" { Describe "New-CloudEvent Function Tests" {
Context "Create CloudEvent Object" { Context "Create CloudEvent Object" {
It 'Create CloudEvent with required parameters only' { It 'Create CloudEvent with required parameters only' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Read-CloudEventData Function Tests" { Describe "Read-CloudEventData Function Tests" {
Context "Extracts Data from CloudEvent" { Context "Extracts Data from CloudEvent" {
It 'Reads xml text data' { It 'Reads xml text data' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Read-CloudEventJsonData Function Tests" { Describe "Read-CloudEventJsonData Function Tests" {
Context "Extracts Json Data from CloudEvent" { Context "Extracts Json Data from CloudEvent" {
It 'Extracts hashtable from CloudEvent with json data' { It 'Extracts hashtable from CloudEvent with json data' {

View File

@ -1,3 +1,8 @@
# **************************************************************************
# Copyright (c) Cloud Native Foundation.
# SPDX-License-Identifier: Apache-2.0
# **************************************************************************
Describe "Read-CloudEventXmlData Function Tests" { Describe "Read-CloudEventXmlData Function Tests" {
Context "Extracts Xml Data from CloudEvent" { Context "Extracts Xml Data from CloudEvent" {
It 'Extracts hashtable from CloudEvent with xml data' { It 'Extracts hashtable from CloudEvent with xml data' {