Skip to content

Commit

Permalink
Adding copyright header to remaining files (Azure#1243)
Browse files Browse the repository at this point in the history
* adding copyright header to shell and powershell scripts

* Adding copyright header to yml files

* adding copyright to remaining files

* Adding copyright header to sql files

* Adding copyright header to yml files

* Adding copyright header to .js files

* adding copyright header to json files

* Removing unused templates

* adding template folder

* removing unused file

* adding copyright header

* Removing copyright header from json files

---------

Co-authored-by: Ayush Agarwal <[email protected]>
  • Loading branch information
ayush3797 and Ayush Agarwal authored Feb 21, 2023
1 parent 022cf6c commit b607023
Show file tree
Hide file tree
Showing 36 changed files with 101 additions and 84 deletions.
2 changes: 2 additions & 0 deletions .pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

trigger:
batch: true
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/build-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/cosmos-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/mssql-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# MsSql Integration Testing Pipeline config is split into two jobs:
# 1) LinuxTests -> Run SQL Server 2019 in Linux Docker Image
# 2) WindowsTests -> Run LocalDB preinstalled on
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/mysql-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
Expand Down
2 changes: 2 additions & 0 deletions .pipelines/pg-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

trigger:
batch: true
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/templates/code-signing.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

parameters:
# Path to search for binaries for signing.
- name: 'path'
Expand Down
3 changes: 3 additions & 0 deletions .pipelines/templates/static-tools.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# static analysis

parameters:
Expand Down
3 changes: 3 additions & 0 deletions ConfigGenerators/configGenerator.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# This script can be used for generating the config files
$PSDefaultParameterValues['*:Encoding'] = 'utf8';

Expand Down
3 changes: 3 additions & 0 deletions ConfigGenerators/configGenerator.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

#!/bin/bash
# This script can be used for generating the config files
databaseTypes=();
Expand Down
3 changes: 3 additions & 0 deletions create_manifest_file.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param (
[Parameter (Mandatory=$true)][string] $BuildConfiguration,
[Parameter (Mandatory=$true)][string] $BuildOutputDir,
Expand Down
3 changes: 3 additions & 0 deletions dab-smoke-test-script.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# This file validates the executables are passing the following basic checks:
# 1. Correct version of DAB is generated
# 2. HelpWindow gets displayed on the Console
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-cosmos.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

version: "3.9"
services:
hawaii:
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-mssql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

version: "3.9"
services:
hawaii:
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-mysql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

version: "3.9"
services:
hawaii:
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-postgresql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

version: "3.9"
services:
hawaii:
Expand Down
3 changes: 3 additions & 0 deletions publish.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param (
[Parameter (Mandatory=$true)][string] $BuildConfiguration,
[Parameter (Mandatory=$true)][string] $BuildOutputDir,
Expand Down
3 changes: 3 additions & 0 deletions samples/azure/azure-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

#!/bin/bash

# Strict mode, fail on any error
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

CREATE DATABASE IF NOT EXISTS `booksdb`
USE `booksdb`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

DROP TABLE IF EXISTS series
;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

DROP TABLE IF EXISTS books_authors;
DROP TABLE IF EXISTS books;
DROP TABLE IF EXISTS authors;
Expand Down
3 changes: 3 additions & 0 deletions samples/getting-started/azure-sql-db/library.azure-sql.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

drop table if exists dbo.books_authors;
drop table if exists dbo.books;
drop table if exists dbo.authors;
Expand Down
3 changes: 3 additions & 0 deletions scripts/start-mssql-server.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

#!/bin/bash

DOCKER_SQL_PASS=$1
Expand Down
2 changes: 1 addition & 1 deletion src/Config/RuntimeConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static string GetPublishedDraftSchemaLink()

string? schemaPath = Path.Combine(assemblyDirectory, "dab.draft.schema.json");
string schemaFileContent = File.ReadAllText(schemaPath);
Dictionary<string, object>? jsonDictionary = JsonSerializer.Deserialize<Dictionary<string, object>>(schemaFileContent);
Dictionary<string, object>? jsonDictionary = JsonSerializer.Deserialize<Dictionary<string, object>>(schemaFileContent, SerializerOptions);

if (jsonDictionary is null)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Service.Tests/ConcurrentTests/Helper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import encoding from 'k6/encoding';
import { check } from 'k6';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { validateResponseBodies, generateEasyAuthHeader, graphQLEndPoint, statusCodes, validateStatusCode, validateNoErrorsInResponse, validateStatusCodes } from '../Helper.js';
import http from 'k6/http';
import { check } from 'k6';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { validateResponses, generateEasyAuthHeader, graphQLEndPoint, statusCodes } from '../Helper.js';
import http from 'k6/http';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { generateEasyAuthHeader, validateStatusCodes, graphQLEndPoint, statusCodes } from '../Helper.js';
import { check } from 'k6';
import http from 'k6/http';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import http from 'k6/http';
import { validateResponses, graphQLEndPoint, statusCodes } from '../Helper.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { generateEasyAuthHeader, validateResponseBodies, validateStatusCode, validateNoErrorsInResponse, graphQLEndPoint, statusCodes } from '../Helper.js';
import { check } from 'k6';
import http from 'k6/http';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { generateEasyAuthHeader, validateStatusCode, validateNoErrorsInResponse, graphQLEndPoint, statusCodes } from '../Helper.js';
import { check } from 'k6';
import http from 'k6/http';
Expand Down
3 changes: 3 additions & 0 deletions src/Service.Tests/ConcurrentTests/SqlTests/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { validateParallelReadOperations } from './ParallelReadsTestCase.js';
import { validateParallelCRUDOperations } from './ParallelCrudOperationsTestCase.js';
import { validateParallelDeleteOperationsOnSameItem } from './ParallelDeleteOnSameItem.js';
Expand Down
3 changes: 3 additions & 0 deletions src/Service.Tests/MsSqlBooks.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

BEGIN TRANSACTION
DROP SECURITY POLICY IF EXISTS revenuesSecPolicy;
DROP FUNCTION IF EXISTS revenuesPredicate;
Expand Down
3 changes: 3 additions & 0 deletions src/Service.Tests/MySqlBooks.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

DROP VIEW IF EXISTS books_view_all;
DROP VIEW IF EXISTS books_view_with_mapping;
DROP VIEW IF EXISTS stocks_view_selected;
Expand Down
3 changes: 3 additions & 0 deletions src/Service.Tests/PostgreSqlBooks.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright (c) Microsoft Corporation.
-- Licensed under the MIT License.

DROP VIEW IF EXISTS books_view_all;
DROP VIEW IF EXISTS books_view_with_mapping;
DROP VIEW IF EXISTS stocks_view_selected;
Expand Down
83 changes: 0 additions & 83 deletions templates/static-tools.yml

This file was deleted.

0 comments on commit b607023

Please sign in to comment.