Adds license headers in source code files (#11)
Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
parent
62f14b6b1b
commit
f23df54f30
|
@ -1,3 +1,8 @@
|
||||||
|
# **************************************************************************
|
||||||
|
# Copyright (c) Cloud Native Foundation.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
# **************************************************************************
|
||||||
|
|
||||||
param(
|
param(
|
||||||
[Parameter()]
|
[Parameter()]
|
||||||
[string]
|
[string]
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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')
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 $_})]
|
||||||
|
|
|
@ -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 $_})]
|
||||||
|
|
|
@ -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 $_})]
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
|
@ -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' {
|
||||||
|
|
Loading…
Reference in New Issue