Skip to content

Commit 1d19aec

Browse files
authored
Merge pull request #3854 from Countly/docker-changes
[tests] fixing
2 parents 253a8a6 + 14d8d57 commit 1d19aec

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/workflows/main.yml

-8
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ jobs:
4444
shell: bash
4545
run: mongo --version
4646

47-
- name: Enable all plugins
48-
shell: bash
49-
run: sudo bash ./bin/scripts/countly.enable.all.plugins.sh
50-
51-
- name: Reinstall plugins
52-
shell: bash
53-
run: sudo bash ./bin/scripts/countly.install.plugins.sh
54-
5547
- name: ShellCheck
5648
shell: bash
5749
run: countly shellcheck

bin/commands/scripts/countly.run.tests.sh

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ countly config "drill.record_meta" "true"
88

99
countly restart
1010

11+
until nc -z 127.0.0.1 3001; do echo Waiting for Countly; sleep 1; done
12+
1113
#install test dependencies
1214
( cd "$DIR/../../../" ; sudo npm install --unsafe-perm )
1315
#run tests

plugins/reports/tests.js

+16
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,22 @@ describe('Testing Reports', function() {
164164
});
165165
});
166166

167+
describe('reset app', function() {
168+
it('should reset data', function(done) {
169+
var params = {app_id: testUtils.get("APP_ID"), "period": "reset"};
170+
request
171+
.get(getRequestURL('/i/apps/reset') + "&args=" + JSON.stringify(params))
172+
.expect(200)
173+
.end(function(err, res) {
174+
if (err) {
175+
return done(err);
176+
}
177+
var ob = JSON.parse(res.text);
178+
ob.should.have.property('result', 'Success');
179+
setTimeout(done, 500 * testUtils.testScalingFactor);
180+
});
181+
});
182+
});
167183

168184
});
169185
});

0 commit comments

Comments
 (0)