diff --git a/Tests/lib/config.js b/Tests/lib/config.js index 0afd79989..d6edda057 100644 --- a/Tests/lib/config.js +++ b/Tests/lib/config.js @@ -1,45 +1,28 @@ export default { - // setup: 4 user are needed: username, superuser, attendee1, attendee1_delegate - // superuser must be a sogo superuser... - - hostname: "localhost", - port: "80", - username: "myuser", - password: "mypass", - - superuser: "super", - superuser_password: "pass", - - // 'subscriber_username' and 'attendee1' must be the same user - subscriber_username: "otheruser", - subscriber_password: "otherpass", - - attendee1: "user@domain.com", - attendee1_username: "user", - attendee1_password: "pass", - - attendee1_delegate: "user2@domain.com", - attendee1_delegate_username: "sogo2", + hostname: "127.0.0.1", + port: "50001", + username: "sogo-tests1", + password: "sogo", + superuser: "sogo-tests-super", + superuser_password: "sogo", + subscriber_username: "sogo-tests2", + subscriber_password: "sogo", + attendee1: "sogo-tests2@example.com", + attendee1_username: "sogo-tests2", + attendee1_password: "sogo", + attendee1_delegate: "sogo-tests3@example.com", + attendee1_delegate_username: "sogo-tests3", attendee1_delegate_password: "sogo", - resource_no_overbook: "res", resource_can_overbook: "res-nolimit", - - // must match attendee1 white_listed_attendee: { - "sogo1": "John Doe " + "sogo-tests1": "John Doe " }, - - mailserver: "imaphost", - + mailserver: "127.0.0.1", testput_nbrdays: 30, - - sieve_server: "localhost", + sieve_server: "127.0.0.1", sieve_port: 4190, - sogo_user: "sogo", - sogo_tool_path: "/usr/local/sbin/sogo-tool", - - webCalendarURL: "http://inverse.ca/sogo-integration-tests/CanadaHolidays.ics" + sogo_tool_path: "/usr/sbin/sogo-tool", + webCalendarURL: "http://127.0.0.1/sogo-integration-tests/CanadaHolidays.ics" } -jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; \ No newline at end of file diff --git a/Tests/package.json b/Tests/package.json index ec6becb80..f53c50d4a 100644 --- a/Tests/package.json +++ b/Tests/package.json @@ -3,7 +3,8 @@ "description": "This directory holds automated tests for SOGo.", "devDependencies": {}, "scripts": { - "test": "jasmine" + "test": "jasmine", + "test-junit": "./node_modules/jasmine-xml-reporter/bin/jasmine.js --junitreport --output=/tmp/" }, "dependencies": { "@babel/core": "^7.16.0", @@ -15,6 +16,7 @@ "ical.js": "^1.4.0", "jasmine": "^3.10.0", "telnet-client": "^1.4.10", - "tsdav": "^1.1.5" + "tsdav": "^1.1.5", + "jasmine-xml-reporter": "^1.2.1" } }