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 #7

Closed
avozicov opened this issue Apr 20, 2018 · 1 comment
Closed

Wrong behavior for recink-unit component #7

avozicov opened this issue Apr 20, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@avozicov
Copy link
Contributor

@avozicov commented on Fri Apr 13 2018

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

@avozicov avozicov added the bug Something isn't working label Apr 20, 2018
@ddimitrioglo ddimitrioglo added enhancement New feature or request and removed bug Something isn't working labels May 4, 2018
@ddimitrioglo
Copy link

@avozicov It's not related to terrahub project, can we move it to recink repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants