This repository was archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathtest.js
More file actions
64 lines (58 loc) · 2.81 KB
/
test.js
File metadata and controls
64 lines (58 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// handle unit tests for the "POST /companies" request, to create a company
'use strict';
const PostCompanyTest = require('./post_company_test');
const NoAttributeTest = require('./no_attribute_test');
const MessageToUserTest = require('./message_to_user_test');
const JoiningTest = require('./joining_test');
const NoWebmailForDomainJoiningTest = require('./no_webmail_for_domain_joining_test');
const SubscriptionTest = require('./subscription_test');
const LoginTest = require('./login_test');
const FirstCompanyOneUserPerOrgTest = require('./first_company_one_user_per_org_test');
const ClearFirstSessionTest = require('./clear_first_session_test');
const IDPSignupTest = require('./idp_signup_test');
const IDPSignupBehindSGTest = require('./idp_signup_behind_sg_test');
const LinkedNROrgIdTest = require('./linked_nr_org_id_test');
const CompanyNameFromRegistrationTest = require('./company_name_from_registration_test');
const RefreshTokenTest = require('./refresh_token_test');
const RefreshTokenBehindSGTest = require('./refresh_token_behind_sg_test');
const FirstCompanyRefreshTokenTest = require('./first_company_refresh_token_test');
const FirstCompanyRefreshTokenBehindSGTest = require('./first_company_refresh_token_behind_sg_test');
const RefreshTokenFetchTest = require('./refresh_token_fetch_test');
const FirstCompanyRefreshTokenFetchTest = require('./first_company_refresh_token_fetch_test');
const RefreshTokenBehindSGFetchTest = require('./refresh_token_behind_sg_fetch_test');
const FirstCompanyRefreshTokenBehindSGFetchTest = require('./first_company_refresh_token_behind_sg_fetch_test');
const SerializeTests = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/test_base/serialize_tests');
class PostCompanyRequestTester {
test () {
new PostCompanyTest().test();
new PostCompanyTest({ unifiedIdentityEnabled: true }).test();
new NoAttributeTest({ attribute: 'name' }).test();
new MessageToUserTest().test();
new JoiningTest().test();
new NoWebmailForDomainJoiningTest().test();
new SubscriptionTest().test();
new LoginTest().test();
new FirstCompanyOneUserPerOrgTest().test();
new FirstCompanyOneUserPerOrgTest({ unifiedIdentityEnabled: true }).test();
new ClearFirstSessionTest().test();
//new IDPSignupTest().test();
//new IDPSignupBehindSGTest().test();
new LinkedNROrgIdTest().test();
new CompanyNameFromRegistrationTest().test();
/*
// serialize these tests because they are time-dependent, and fail on the
// default setup-then-run methodology
SerializeTests([
RefreshTokenTest,
RefreshTokenBehindSGTest,
FirstCompanyRefreshTokenTest,
FirstCompanyRefreshTokenBehindSGTest,
RefreshTokenFetchTest,
RefreshTokenBehindSGFetchTest,
FirstCompanyRefreshTokenFetchTest,
FirstCompanyRefreshTokenBehindSGFetchTest
]);
*/
}
}
module.exports = new PostCompanyRequestTester();