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(
|
||||
[Parameter()]
|
||||
[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'
|
||||
|
||||
# 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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
<!--
|
||||
Copyright (c) Cloud Native Foundation.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
BeforeAll {
|
||||
. $PSCommandPath.Replace('.Tests.ps1', '.ps1')
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
$SKIPATTR = "SkipAttributes"
|
||||
$ALWAYSATTRVALUE = "AlwaysAttrValue"
|
||||
$ATTRVALUEFORELEMENTSWITHATTR = "AttrValueWhenAttributes"
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
param(
|
||||
[Parameter()]
|
||||
[ValidateScript({Test-Path $_})]
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
param(
|
||||
[Parameter()]
|
||||
[ValidateScript({Test-Path $_})]
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[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 'ServerSource' -Value 'ps:test:server'
|
||||
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" {
|
||||
Context "Adds 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" {
|
||||
Context "Adds Json Data" {
|
||||
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" {
|
||||
Context "Adds Xml Data" {
|
||||
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" {
|
||||
BeforeAll {
|
||||
$expectedSpecVersion = '1.0'
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# **************************************************************************
|
||||
# Copyright (c) Cloud Native Foundation.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# **************************************************************************
|
||||
|
||||
Describe "ConvertTo-HttpMessage Function Tests" {
|
||||
BeforeAll {
|
||||
$expectedSpecVersion = '1.0'
|
||||
|
|
|
@ -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' {
|
||||
|
|
|
@ -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' {
|
||||
|
|
|
@ -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' {
|
||||
|
|
|
@ -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' {
|
||||
|
|
Loading…
Reference in New Issue