Skip to content

Conversation

@yitam
Copy link
Contributor

@yitam yitam commented Jul 4, 2017

No description provided.

@yitam yitam requested a review from ulvii July 4, 2017 19:06
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 74.566% when pulling b458db2 on yitam:userScripts into f2510c7 on Microsoft:dev.

@Hadis-Fard
Copy link

@yitam can this be merged?

--for this script to work in Azure, use sqlcmd to connect to master database
IF NOT EXISTS (SELECT name FROM sys.sql_logins WHERE name = 'test_password')
BEGIN
CREATE LOGIN test_password WITH PASSWORD='! ;4triou';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue with this line: test_password might exist in the database with a different password. This will cause the tests fail. Same applies for test_password2 and test_password2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yitam can we drop the test_password, and create it again? and at the end of the test, delete the pass too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was the original problem of running tests in parallel (dropping one another's test logins and passwords)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yitam can you generate password using random? and drop it at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately no, the specific test expects this particular password to make sure it fails and check for the appropriate error message

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are those tests dependent on this pass? You can generate the pass in a parent setup script and then pass it on to dependent scripts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The users and logins can be created inside the tests too, it does not have to be the setup scripts.

@yitam yitam merged commit cba037a into microsoft:dev Sep 25, 2017
@yitam yitam deleted the userScripts branch September 25, 2017 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants