Skip to content
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

Wrong behavior for recink-unit component #172

Open
avozicov opened this issue Apr 13, 2018 · 0 comments
Open

Wrong behavior for recink-unit component #172

avozicov opened this issue Apr 13, 2018 · 0 comments
Assignees

Comments

@avozicov
Copy link
Contributor

Looks like we have an issue with our recink-unit test component.
To reproduce it I have used an undefined variable inside the test script.

As a result I get duplicated version of test script file inside the tests directory and all the following tests executions are skipped (attachments 1, 2)

Please run the code bellow to reproduce the issue.
Note that the ${env} is an undefined variable which caused test failure.

const expect = require('chai').expect;
const request = require('request');
const endpoint = 'access/retrieve';
const reqURL = `https://api-${env}.cloudnativeci.com/v1/cnci/`;

it(`API endpoint ${endpoint} endpoint test`, function (done) {
  request({
    method: 'POST',
    url: `${reqURL}${endpoint}`
  }, (error, response, body) => {
    expect(response.statusCode).to.equal(200);
    done();
  });
}).timeout(5000);

screen shot 2018-04-13 at 14 14 04

screen shot 2018-04-13 at 14 20 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants