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

Cloud option: projectName #1817

Open
ppcano opened this issue Jan 26, 2021 · 0 comments
Open

Cloud option: projectName #1817

ppcano opened this issue Jan 26, 2021 · 0 comments

Comments

@ppcano
Copy link
Contributor

ppcano commented Jan 26, 2021

If you want to stream a cloud result or run a cloud test in a non-default project, you have to pass the project ID to k6, either on the script options or as an environment variable:

// current structure
export let options = {
    ext: {
        loadimpact: {
            name: "My test name",
            projectID: 12345,
        }
    }
};

More on the projectID documention.

Feature Request

For options, configuring a name is often a better choice than an ID. Names are more descriptive and easier to remember.

It would be useful to provide a new projectName option as an alternative to projectID.

// proposed structure
export let options = {
    ext: {
        loadimpact: {
            name: "My test name",
            projectName: "stress-staging",
        }
    }
};

The same project name could be present in various orgs.

// a proposal
export let options = {
    ext: {
        loadimpact: {
            name: "My test name",
            projectName: "my-org-name/stress-staging",
        }
    }
};

Relates to #1155

@na-- na-- added the cloud label Jan 26, 2021
@ppcano ppcano changed the title Cloud option: projectName Cloud option: projectName Jan 26, 2021
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