Previously we successfully prepared tests for variables and parameters using
VariableCommandand
andParameterCommand
. Now it’s time to communicate with the database, and for that, I will use connection manager defined on the project level. I know from the ssisUnit tutorials it works perfect with package connection managers, so it’s time to verify it against the projects. I will test the package10_ProjectCM.dtsx
– it is just getting a single value from the table in a database and storing it in a variable. All the packages and unit tests are on my GitHub.The package contains three SQL Tasks: the first just checks if we can communicate with the database using
SELECT 1
statement, the second gets the information from the table, and the third repeats the second on the container level.
Click through for the tests.