@@ -38,6 +38,19 @@ public function testMigrateConfigCommand()
3838$CDASH_BASE_URL = 'http://localhost/CDash';
3939$CDASH_LOG_LEVEL = LOG_DEBUG;
4040$CDASH_UNLIMITED_PROJECTS = ['Project1', 'Project2'];
41+ $OAUTH2_PROVIDERS['GitHub'] = [
42+ 'clientId' => 'github_client_id',
43+ 'clientSecret' => 'github_client_secret'
44+ ];
45+ $OAUTH2_PROVIDERS['GitLab'] = [
46+ 'clientId' => 'gitlab_client_id',
47+ 'clientSecret' => 'gitlab_client_secret',
48+ 'domain' => 'https://gitlab.kitware.com'
49+ ];
50+ $OAUTH2_PROVIDERS['Google'] = [
51+ 'clientId' => 'google_client_id',
52+ 'clientSecret' => 'google_client_secret'
53+ ];
4154EOT;
4255 file_put_contents ($ this ->config_file , $ config_contents );
4356
@@ -64,6 +77,12 @@ public function testMigrateConfigCommand()
6477 $ this ->assertContains ('APP_TIMEZONE=America/New_York ' , $ actual );
6578 $ this ->assertContains ('APP_LOG_LEVEL=debug ' , $ actual );
6679 $ this ->assertContains ('UNLIMITED_PROJECTS=["Project1","Project2"] ' , $ actual );
80+ $ this ->assertContains ('GITHUB_CLIENT_SECRET=github_client_secret ' , $ actual );
81+ $ this ->assertContains ('GITLAB_CLIENT_ID=gitlab_client_id ' , $ actual );
82+ $ this ->assertContains ('GITLAB_CLIENT_SECRET=gitlab_client_secret ' , $ actual );
83+ $ this ->assertContains ('GITLAB_DOMAIN=https://gitlab.kitware.com ' , $ actual );
84+ $ this ->assertContains ('GOOGLE_CLIENT_ID=google_client_id ' , $ actual );
85+ $ this ->assertContains ('GOOGLE_CLIENT_SECRET=google_client_secret ' , $ actual );
6786
6887 // Default value (mysql) does not get written to .env.
6988 $ this ->assertNotContains ('DB_CONNECTION= ' , $ actual );
0 commit comments