@@ -104,7 +104,7 @@ func TestDaemonAutoUpdateIndexOnFirstInit(t *testing.T) {
104
104
fmt .Printf ("INIT> %v\n " , ir .GetMessage ())
105
105
}))
106
106
107
- _ , err := grpcInst .PlatformList (context .Background ())
107
+ _ , err := grpcInst .PlatformSearch (context .Background (), "" , true )
108
108
require .NoError (t , err )
109
109
110
110
require .FileExists (t , cli .DataDir ().Join ("package_index.json" ).String ())
@@ -477,8 +477,8 @@ func TestDaemonCoreUpgradePlatform(t *testing.T) {
477
477
platform , upgradeError := analyzePlatformUpgradeClient (plUpgrade )
478
478
require .NoError (t , upgradeError )
479
479
require .NotNil (t , platform )
480
- require .True (t , platform .Indexed ) // the esp866 is present in the additional-urls
481
- require .False (t , platform .MissingMetadata ) // install.json is present
480
+ require .True (t , platform .Metadata . Indexed ) // the esp866 is present in the additional-urls
481
+ require .False (t , platform .Release . MissingMetadata ) // install.json is present
482
482
})
483
483
t .Run ("and install.json is missing" , func (t * testing.T ) {
484
484
env , cli := createEnvForDaemon (t )
@@ -497,9 +497,8 @@ func TestDaemonCoreUpgradePlatform(t *testing.T) {
497
497
platform , upgradeError := analyzePlatformUpgradeClient (plUpgrade )
498
498
require .NoError (t , upgradeError )
499
499
require .NotNil (t , platform )
500
- require .True (t , platform .Indexed ) // the esp866 is not present in the additional-urls
501
- require .False (t , platform .MissingMetadata ) // install.json is present because the old version got upgraded
502
-
500
+ require .True (t , platform .Metadata .Indexed ) // the esp866 is not present in the additional-urls
501
+ require .False (t , platform .Release .MissingMetadata ) // install.json is present because the old version got upgraded
503
502
})
504
503
})
505
504
@@ -521,8 +520,8 @@ func TestDaemonCoreUpgradePlatform(t *testing.T) {
521
520
platform , upgradeError := analyzePlatformUpgradeClient (plUpgrade )
522
521
require .ErrorIs (t , upgradeError , (& arduino.PlatformAlreadyAtTheLatestVersionError {Platform : "esp8266:esp8266" }).ToRPCStatus ().Err ())
523
522
require .NotNil (t , platform )
524
- require .False (t , platform .Indexed ) // the esp866 is not present in the additional-urls
525
- require .False (t , platform .MissingMetadata ) // install.json is present
523
+ require .False (t , platform .Metadata . Indexed ) // the esp866 is not present in the additional-urls
524
+ require .False (t , platform .Release . MissingMetadata ) // install.json is present
526
525
})
527
526
t .Run ("missing both additional URLs and install.json" , func (t * testing.T ) {
528
527
env , cli := createEnvForDaemon (t )
@@ -546,8 +545,8 @@ func TestDaemonCoreUpgradePlatform(t *testing.T) {
546
545
platform , upgradeError := analyzePlatformUpgradeClient (plUpgrade )
547
546
require .ErrorIs (t , upgradeError , (& arduino.PlatformAlreadyAtTheLatestVersionError {Platform : "esp8266:esp8266" }).ToRPCStatus ().Err ())
548
547
require .NotNil (t , platform )
549
- require .False (t , platform .Indexed ) // the esp866 is not present in the additional-urls
550
- require .True (t , platform .MissingMetadata ) // install.json is present
548
+ require .False (t , platform .Metadata . Indexed ) // the esp866 is not present in the additional-urls
549
+ require .True (t , platform .Release . MissingMetadata ) // install.json is present
551
550
})
552
551
})
553
552
}
0 commit comments