Skip to content

feat: move shared ports out of experiment #13120

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

Merged
merged 8 commits into from
May 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
better test
  • Loading branch information
f0ssel committed May 2, 2024
commit d316b3183278f5f145fa2dfa25df8629f78b4ad8
16 changes: 5 additions & 11 deletions coderd/prometheusmetrics/prometheusmetrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,25 +521,19 @@ func TestExperimentsMetric(t *testing.T) {
expected map[codersdk.Experiment]float64
}{
{
name: "Enabled experiment is exported in metrics",
name: "Enabled experiment is exported in metrics",
experiments: codersdk.Experiments{
// TODO: We need to use a real experiment from codersdk.ExperimentsAll
// when the slice is not empty. Uncomment when that happens.
// codersdk.ExperimentSharedPorts,
codersdk.ExperimentsAll[0],
},
expected: map[codersdk.Experiment]float64{
// TODO: We need to use a real experiment from codersdk.ExperimentsAll
// when the slice is not empty. Uncomment when that happens.
// codersdk.ExperimentSharedPorts: 1,
codersdk.ExperimentsAll[0]: 1,
},
},
{
name: "Disabled experiment is exported in metrics",
experiments: codersdk.Experiments{},
expected: map[codersdk.Experiment]float64{
// TODO: We need to use a real experiment from codersdk.ExperimentsAll
// when the slice is not empty. Uncomment when that happens.
// codersdk.ExperimentSharedPorts: 0,
expected: map[codersdk.Experiment]float64{
codersdk.ExperimentsAll[0]: 0,
},
},
{
Expand Down
Loading