You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/containers/unit-testing/tsqlt-docker/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,9 @@ To run this example, the following basic concepts are required.
45
45
46
46
## Case history
47
47
48
-
The AdventureWorks database contains the Production.Product table that stores products managed and sold by the fake company Adventure Works LTD.
48
+
The AdventureWorks database contains the `Production.Product` table that stores products managed and sold by the fake company Adventure Works LTD.
49
49
50
-
The trigger we have wrote is to prevent the insertion of new products with values less than 10 as a “safety stock”. The Company wishes to always have a warehouse stock of no less than 10 units for each product. The safety stock level is a very important value for the automatic procedures: it allows to re-order materials. The creation of new purchase orders and production orders are based on the safety stock level. To make our trigger simple, it will only respond to the OnInsert event, for INSERT commands.
50
+
The trigger we have wrote is to prevent the insertion of new products with values less than 10 as a “safety stock”. The Company wishes to always have a warehouse stock of no less than 10 units for each product. The safety stock level is a very important value for the automatic procedures: it allows to re-order materials. The creation of new purchase orders and production orders are based on the safety stock level. To make our trigger simple, it will only respond to the `OnInsert` event, for `INSERT` commands.
51
51
52
52
<aname=run-this-sample></a>
53
53
@@ -85,7 +85,7 @@ A sample YAML file that implements the test automation workflow is already in yo
85
85
86
86
**1. Definition of activation events**
87
87
88
-
The definition of the activation events is typically done at the beginning of the YAML script with a code snippet similar to the one shown below. The workflow is activated when push or pull request events occur on the “master” branch. The “workflow_dispatch” specification allows you to run the workflow manually from the actions tab.
88
+
The definition of the activation events is typically done at the beginning of the YAML script with a code snippet similar to the one shown below. The workflow is activated when push or pull request events occur on the `master` branch. The `workflow_dispatch` specification allows you to run the workflow manually from the actions tab.
89
89
90
90
```
91
91
# Controls when the workflow will run
@@ -102,7 +102,7 @@ on:
102
102
103
103
**2. Creating a Docker container from a SQL Server image on Linux**
104
104
105
-
Creating a Docker container from a SQL Server image on Linux can be done by requesting the sqlserver service accompanied by the path to the Docker image you want to use.
105
+
Creating a Docker container from a SQL Server image on Linux can be done by requesting the `sqlserver service` accompanied by the path to the Docker image you want to use.
106
106
107
107
The official images provided by Microsoft for SQL Server on Linux are available [here](https://hub.docker.com/_/microsoft-mssql-server).
108
108
@@ -129,7 +129,7 @@ jobs:
129
129
130
130
In order to reference the newly created Docker container it is important to save its identifier in an environment variable.
131
131
132
-
The following snippet of YAML code sets the ENV_CONTAINER_ID variable with the ID of the container created.
132
+
The following snippet of YAML code sets the `ENV_CONTAINER_ID` variable with the ID of the container created.
133
133
134
134
```
135
135
- name: Set environment variable ENV_CONTAINER_ID
@@ -196,7 +196,7 @@ The following docker exec command, that uses sqlcmd, executes the TSQL commands
Let's go ahead with the creation and execution of the unit tests. Each .sql file of the "test case" family contains the TSQL commands for creating and running the related unit test. Each store procedure tests one and only one test case.
199
+
Let's go ahead with the creation and execution of the unit tests. Each .sql file of the test case family contains the TSQL commands for creating and running the related unit test. Each store procedure tests one and only one test case.
200
200
201
201
The following snippet of YAML code creates and runs the test units.
0 commit comments