Skip to content

(MODULES-2497) SQLSERVER - Create Automated Tests for sqlserver::login #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

phongdly
Copy link
Contributor

No description provided.

(MODULES-2497) updated PR based on ticket FM-3655
@phongdly phongdly force-pushed the MODULES-2497/automated_test_for_sqlserver-login branch from f15af7c to a08c499 Compare September 14, 2015 18:28
}
end

context "Start testing...", {:testrail => ['89118', '89119', '89120', '89121', '89122', '89123', '89124', '89125', '891540']} do

Choose a reason for hiding this comment

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

Test case ID 891540 should be 89540.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in the next push

@cowofevil
Copy link

@phongdly Do you wait until automated tests are merged before marking the tests as "Automated" in TestRail?

}
MANIFEST
#comment out the below line because of ticket MODULES-2554(delete database)
#ensure_manifest_apply(host, pp)

Choose a reason for hiding this comment

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

Can you not use the Beaker built-in method "expect_failure" from Beaker-RSpec?

@cowofevil
Copy link

I don't see tests for '89123', '89124', '89125' or '89540'.

query = "USE #{db_name}; SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE table_name = '#{table_name}';"
run_sql_query(host, run_sql_query_opts(@login_user, @login_passwd, query, 1))

puts "Validate the login '#{@login_user}' is successfully created and has correct is_expiration_checked:"

Choose a reason for hiding this comment

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

Message text is incorrect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in the next push

@phongdly
Copy link
Contributor Author

@cowofevil updated code passed local test.

cowofevil pushed a commit that referenced this pull request Sep 15, 2015
…_sqlserver-login

(MODULES-2497) SQLSERVER - Create Automated Tests for sqlserver::login
@cowofevil cowofevil merged commit 32c635b into puppetlabs:master Sep 15, 2015
@cowofevil cowofevil deleted the MODULES-2497/automated_test_for_sqlserver-login branch September 15, 2015 20:38
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.

2 participants