Skip to content

Commit b0a9091

Browse files
authored
move tests using staging index to production one (#932)
1 parent f6a4740 commit b0a9091

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: index/index_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
)
1010

1111
func TestInit(t *testing.T) {
12-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
12+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
1313
// Instantiate Index
1414
tempDir := paths.New(t.TempDir()).Join(".arduino-create")
1515
Index := Init(indexURL, tempDir)
1616
require.DirExists(t, tempDir.String())
17-
fileName := "package_staging_index.json"
17+
fileName := "package_index.json"
1818
signatureName := fileName + ".sig"
1919
parsedURL, _ := url.Parse(indexURL)
2020
require.Equal(t, Index.IndexURL, *parsedURL)

Diff for: main_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func TestUploadHandlerAgainstEvilFileNames(t *testing.T) {
8989

9090
func TestInstallToolV2(t *testing.T) {
9191

92-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
92+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
9393
// Instantiate Index
9494
Index := index.Init(indexURL, config.GetDataDir())
9595

@@ -170,7 +170,7 @@ func TestInstallToolV2(t *testing.T) {
170170
}
171171

172172
func TestInstalledHead(t *testing.T) {
173-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
173+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
174174
// Instantiate Index
175175
Index := index.Init(indexURL, config.GetDataDir())
176176

Diff for: tools/tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
// Usage:
3838
// You have to call the New() function passing it the required parameters:
3939
//
40-
// index = index.Init("https://downloads.arduino.cc/packages/package_staging_index.json", dataDir)
40+
// index = index.Init("https://downloads.arduino.cc/packages/package_index.json", dataDir)
4141
// tools := tools.New(dataDir, index, logger)
4242

4343
// Tools will represent the installed tools

Diff for: v2/pkgs/tools_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestTools(t *testing.T) {
4141
}
4242
defer os.RemoveAll(tmp)
4343

44-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
44+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
4545
// Instantiate Index
4646
Index := index.Init(indexURL, config.GetDataDir())
4747

@@ -122,7 +122,7 @@ func TestEvilFilename(t *testing.T) {
122122
// Initialize indexes with a temp folder
123123
tmp := t.TempDir()
124124

125-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
125+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
126126
// Instantiate Index
127127
Index := index.Init(indexURL, config.GetDataDir())
128128

@@ -191,7 +191,7 @@ func TestInstalledHead(t *testing.T) {
191191
// Initialize indexes with a temp folder
192192
tmp := t.TempDir()
193193

194-
indexURL := "https://downloads.arduino.cc/packages/package_staging_index.json"
194+
indexURL := "https://downloads.arduino.cc/packages/package_index.json"
195195
// Instantiate Index
196196
Index := index.Init(indexURL, config.GetDataDir())
197197

0 commit comments

Comments
 (0)