2025-04-06 23:39:04 +00:00
|
|
|
/*
|
|
|
|
Stats API Documentation
|
|
|
|
|
|
|
|
Testing MilestonesAPIService
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
|
|
|
|
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
2025-04-07 02:14:30 +00:00
|
|
|
openapiclient "//"
|
2025-04-06 23:39:04 +00:00
|
|
|
"context"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Test_api_MilestonesAPIService(t *testing.T) {
|
|
|
|
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService AchievementStatuses", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.AchievementStatuses(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService MilestoneDurations", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.MilestoneDurations(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService MilestoneLookups", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.MilestoneLookups(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService MilestoneStatistics", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.MilestoneStatistics(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService MilestoneTypes", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.MilestoneTypes(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
t.Run("Test MilestonesAPIService Milestones", func(t *testing.T) {
|
|
|
|
|
2025-04-07 02:14:30 +00:00
|
|
|
t.Skip("skip test") // remove to run test
|
2025-04-06 23:39:04 +00:00
|
|
|
|
|
|
|
httpRes, err := apiClient.MilestonesAPI.Milestones(context.Background()).Execute()
|
|
|
|
|
|
|
|
require.Nil(t, err)
|
|
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|