repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212856_create_project_add_ons.rb | db/migrate/20240925212856_create_project_add_ons.rb | class CreateProjectAddOns < ActiveRecord::Migration[7.2]
def change
create_table :project_add_ons do |t|
t.references :project, null: false, foreign_key: true
t.references :add_on, null: false, foreign_key: true
t.timestamps
end
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241219205418_add_index_to_clusters_and_name.rb | db/migrate/20241219205418_add_index_to_clusters_and_name.rb | class AddIndexToClustersAndName < ActiveRecord::Migration[7.2]
def change
remove_index :clusters, :account_id
add_index :clusters, [ :account_id, :name ], unique: true
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251114025053_add_kubernetes_manifests_to_deployments.rb | db/migrate/20251114025053_add_kubernetes_manifests_to_deployments.rb | class AddKubernetesManifestsToDeployments < ActiveRecord::Migration[7.2]
def change
add_column :deployments, :manifests, :jsonb, default: {}
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251216022149_add_role_to_account_users.rb | db/migrate/20251216022149_add_role_to_account_users.rb | class AddRoleToAccountUsers < ActiveRecord::Migration[7.2]
def change
add_column :account_users, :role, :integer, default: 2, null: false
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241207234211_add_description_to_services.rb | db/migrate/20241207234211_add_description_to_services.rb | class AddDescriptionToServices < ActiveRecord::Migration[7.2]
def change
add_column :services, :description, :text
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251126014507_create_sso_providers.rb | db/migrate/20251126014507_create_sso_providers.rb | class CreateSSOProviders < ActiveRecord::Migration[7.2]
def change
create_table :sso_providers do |t|
t.references :account, null: false, foreign_key: true, index: { unique: true }
t.references :configuration, polymorphic: true, null: false
t.string :name, null: false
t.boolean :enabled, d... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250823202522_add_provider_id_to_build_configurations.rb | db/migrate/20250823202522_add_provider_id_to_build_configurations.rb | class AddProviderIdToBuildConfigurations < ActiveRecord::Migration[7.2]
def change
add_reference :build_configurations, :provider, null: false, foreign_key: true
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212710_create_projects.rb | db/migrate/20240925212710_create_projects.rb | class CreateProjects < ActiveRecord::Migration[7.2]
def change
create_table :projects do |t|
t.string :name, null: false
t.string :repository_url, null: false
t.string :branch, default: "main", null: false
t.references :cluster, null: false, foreign_key: true
t.boolean :autodeploy, d... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251110152921_remove_docker_command_from_projects.rb | db/migrate/20251110152921_remove_docker_command_from_projects.rb | class RemoveDockerCommandFromProjects < ActiveRecord::Migration[7.2]
def change
remove_column :projects, :docker_command, :string
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250815234047_create_build_configurations.rb | db/migrate/20250815234047_create_build_configurations.rb | class CreateBuildConfigurations < ActiveRecord::Migration[7.2]
def change
create_table :build_configurations do |t|
t.references :project, null: false, foreign_key: true
t.integer :driver, null: false
t.references :build_cloud, null: true, foreign_key: true
t.timestamps
end
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205150_create_providers.rb | db/migrate/20240925205150_create_providers.rb | class CreateProviders < ActiveRecord::Migration[7.2]
def change
create_table :providers do |t|
t.references :user, null: false, foreign_key: true
t.string :provider
t.string :uid
t.string :access_token
t.string :access_token_secret
t.string :refresh_token
t.datetime :expi... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212831_create_builds.rb | db/migrate/20240925212831_create_builds.rb | class CreateBuilds < ActiveRecord::Migration[7.2]
def change
create_table :builds do |t|
t.references :project, null: false, foreign_key: true
t.string :repository_url
t.string :git_sha
t.string :commit_message
t.integer :status, default: 0
t.string :commit_sha, null: false
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250913213318_add_external_id_to_providers.rb | db/migrate/20250913213318_add_external_id_to_providers.rb | class AddExternalIdToProviders < ActiveRecord::Migration[7.2]
def change
add_column :providers, :external_id, :string, null: true
add_index :providers, :external_id, unique: true
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212939_create_cron_schedules.rb | db/migrate/20240925212939_create_cron_schedules.rb | class CreateCronSchedules < ActiveRecord::Migration[7.2]
def change
create_table :cron_schedules do |t|
t.references :service, null: false, foreign_key: true
t.string :schedule, null: false
end
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251122223743_create_teams.rb | db/migrate/20251122223743_create_teams.rb | class CreateTeams < ActiveRecord::Migration[7.2]
def change
create_table :teams do |t|
t.string :name, null: false
t.string :slug, null: false
t.references :account, null: false, foreign_key: true
t.timestamps
end
add_index :teams, :slug, unique: true
add_index :teams, [ :acc... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205140_add_notifications_count_to_noticed_event.noticed.rb | db/migrate/20240925205140_add_notifications_count_to_noticed_event.noticed.rb | # This migration comes from noticed (originally 20240129184740)
class AddNotificationsCountToNoticedEvent < ActiveRecord::Migration[6.1]
def change
add_column :noticed_events, :notifications_count, :integer
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251122230641_create_team_resources.rb | db/migrate/20251122230641_create_team_resources.rb | class CreateTeamResources < ActiveRecord::Migration[7.2]
def change
create_table :team_resources do |t|
t.references :team, null: false, foreign_key: true
t.references :resourceable, polymorphic: true, null: false
t.timestamps
end
add_index :team_resources, [ :team_id, :resourceable_ty... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241215025029_add_cluster_type_to_clusters.rb | db/migrate/20241215025029_add_cluster_type_to_clusters.rb | class AddClusterTypeToClusters < ActiveRecord::Migration[7.2]
def change
add_column :clusters, :cluster_type, :integer, default: 0
Cluster.update_all(cluster_type: :k8s)
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250914175112_add_slug_to_accounts.rb | db/migrate/20250914175112_add_slug_to_accounts.rb | class AddSlugToAccounts < ActiveRecord::Migration[7.2]
def up
add_column :accounts, :slug, :string
# Backfill existing accounts with slugs
Account.reset_column_information
Account.find_each do |account|
account.slug = account.name.parameterize
# Handle duplicates by appending a number
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241023225911_create_events.rb | db/migrate/20241023225911_create_events.rb | class CreateEvents < ActiveRecord::Migration[7.2]
def change
create_table :events do |t|
t.references :user, null: true
t.references :project, null: false
t.references :eventable, polymorphic: true, null: false
t.integer :event_action, null: false
t.timestamps
end
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250719160150_fix_project_commands.rb | db/migrate/20250719160150_fix_project_commands.rb | class FixProjectCommands < ActiveRecord::Migration[7.2]
def change
remove_column :projects, :predeploy_script, :text
change_column :projects, :predeploy_command, :text
rename_column :projects, :postdeploy_script, :postdeploy_command
rename_column :projects, :predestroy_script, :predestroy_command
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250217060317_drop_active_admin_comments.rb | db/migrate/20250217060317_drop_active_admin_comments.rb | class DropActiveAdminComments < ActiveRecord::Migration[7.2]
def change
drop_table :active_admin_comments
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241115223014_create_volumes.rb | db/migrate/20241115223014_create_volumes.rb | class CreateVolumes < ActiveRecord::Migration[7.2]
def change
create_table :volumes do |t|
t.references :project, null: false, foreign_key: true
t.string :name, null: false
t.string :size, default: "10Gi", null: false
t.integer :access_mode, default: 0
t.string :mount_path, null: fal... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205148_create_accounts.rb | db/migrate/20240925205148_create_accounts.rb | class CreateAccounts < ActiveRecord::Migration[7.2]
def change
create_table :accounts do |t|
t.references :owner, foreign_key: { to_table: :users }, index: true
t.string :name, null: false
t.timestamps
end
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251222000001_create_saml_configurations.rb | db/migrate/20251222000001_create_saml_configurations.rb | class CreateSAMLConfigurations < ActiveRecord::Migration[7.2]
def change
create_table :saml_configurations do |t|
t.string :idp_entity_id, null: false
t.string :idp_sso_service_url, null: false
t.text :idp_cert, null: false
t.string :idp_slo_service_url
t.string :name_identifier_form... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251103000229_move_docker_fields_from_project_to_build_configuration.rb | db/migrate/20251103000229_move_docker_fields_from_project_to_build_configuration.rb | class MoveDockerFieldsFromProjectToBuildConfiguration < ActiveRecord::Migration[7.2]
def up
# Add build fields to build_configurations (excluding docker_command which is used at runtime)
add_column :build_configurations, :context_directory, :string, default: "./", null: false
add_column :build_configurati... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251126014509_create_ldap_configurations.rb | db/migrate/20251126014509_create_ldap_configurations.rb | class CreateLDAPConfigurations < ActiveRecord::Migration[7.2]
def change
create_table :ldap_configurations do |t|
t.string :host, null: false
t.integer :port, default: 389, null: false
t.integer :encryption, null: false
t.string :base_dn, null: false
t.string :bind_dn
t.string ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241130025337_create_project_credential_providers.rb | db/migrate/20241130025337_create_project_credential_providers.rb | class CreateProjectCredentialProviders < ActiveRecord::Migration[7.2]
def change
create_table :project_credential_providers do |t|
t.references :project, null: false, foreign_key: true
t.references :provider, null: false, foreign_key: true
t.timestamps
end
add_index :project_credential_... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250415222405_add_service_name_to_active_storage_blobs.active_storage.rb | db/migrate/20250415222405_add_service_name_to_active_storage_blobs.active_storage.rb | # This migration comes from active_storage (originally 20190112182829)
class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0]
def up
return unless table_exists?(:active_storage_blobs)
unless column_exists?(:active_storage_blobs, :service_name)
add_column :active_storage_blobs, :service... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20260101191056_add_options_to_clusters.rb | db/migrate/20260101191056_add_options_to_clusters.rb | class AddOptionsToClusters < ActiveRecord::Migration[7.2]
def change
add_column :clusters, :options, :jsonb, default: {}, null: false
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251211151950_create_oidc_configurations.rb | db/migrate/20251211151950_create_oidc_configurations.rb | class CreateOIDCConfigurations < ActiveRecord::Migration[7.2]
def change
create_table :oidc_configurations do |t|
t.string :issuer, null: false
t.string :client_id, null: false
t.string :client_secret, null: false
t.string :authorization_endpoint
t.string :token_endpoint
t.stri... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925212823_create_environment_variables.rb | db/migrate/20240925212823_create_environment_variables.rb | class CreateEnvironmentVariables < ActiveRecord::Migration[7.2]
def change
create_table :environment_variables do |t|
t.string :name, null: false
t.text :value
t.references :project, null: false, foreign_key: true
t.timestamps
end
add_index :environment_variables, [ :project_id, ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250815234046_create_build_clouds.rb | db/migrate/20250815234046_create_build_clouds.rb | class CreateBuildClouds < ActiveRecord::Migration[7.2]
def change
create_table :build_clouds do |t|
t.references :cluster, null: false, foreign_key: true
t.string :namespace, null: false, default: K8::BuildCloudManager::BUILDKIT_BUILDER_DEFAULT_NAMESPACE
t.integer :status, null: false, default: ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250809185224_create_good_jobs.rb | db/migrate/20250809185224_create_good_jobs.rb | # frozen_string_literal: true
class CreateGoodJobs < ActiveRecord::Migration[7.2]
def change
# Uncomment for Postgres v12 or earlier to enable gen_random_uuid() support
# enable_extension 'pgcrypto'
create_table :good_jobs, id: :uuid do |t|
t.text :queue_name
t.integer :priority
t.json... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20250223231448_add_last_used_at_to_providers.rb | db/migrate/20250223231448_add_last_used_at_to_providers.rb | class AddLastUsedAtToProviders < ActiveRecord::Migration[7.2]
def change
add_column :providers, :last_used_at, :datetime
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20240925205130_create_noticed_tables.noticed.rb | db/migrate/20240925205130_create_noticed_tables.noticed.rb | # This migration comes from noticed (originally 20231215190233)
class CreateNoticedTables < ActiveRecord::Migration[6.1]
def change
primary_key_type, foreign_key_type = primary_and_foreign_key_types
create_table :noticed_events, id: primary_key_type do |t|
t.string :type
t.belongs_to :record, poly... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20241009172011_create_metrics.rb | db/migrate/20241009172011_create_metrics.rb | class CreateMetrics < ActiveRecord::Migration[7.2]
def change
create_table :metrics do |t|
t.integer :metric_type, null: false, default: 0
t.jsonb :metadata, null: false, default: {}
t.jsonb :tags, null: false, default: [], array: true
t.references :cluster, null: false
t.timestamps
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251022183720_create_api_tokens.rb | db/migrate/20251022183720_create_api_tokens.rb | class CreateApiTokens < ActiveRecord::Migration[7.2]
def change
create_table :api_tokens do |t|
t.references :user, null: false, foreign_key: true
t.string :name, null: false
t.string :access_token, null: false
t.datetime :last_used_at
t.datetime :expires_at
t.timestamps
en... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/db/migrate/20251122224404_create_team_memberships.rb | db/migrate/20251122224404_create_team_memberships.rb | class CreateTeamMemberships < ActiveRecord::Migration[7.2]
def change
create_table :team_memberships do |t|
t.references :user, null: false, foreign_key: true
t.references :team, null: false, foreign_key: true
t.timestamps
end
add_index :team_memberships, [ :user_id, :team_id ], unique... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/local_helper.rb | spec/local_helper.rb | # Configure RSpec and Capybara for local system tests
RSpec.configure do |config|
config.before(:each, type: :system, file_path: %r{spec/system/local}) do
Capybara.app_host = 'http://localhost:3000'
Capybara.run_server = false
Capybara.default_host = 'localhost:3000'
# Override default_url_options if... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/rails_helper.rb | spec/rails_helper.rb | # This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
require_relative '../config/environment'
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
# Un... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/swagger_helper.rb | spec/swagger_helper.rb | # frozen_string_literal: true
require 'rails_helper'
require 'integration/api/swagger_schemas'
servers = [
{
url: 'https://canine.sh',
description: 'Production'
}
]
RSpec.configure do |config|
# Specify a root folder where Swagger JSON files are generated
# NOTE: If you're using the rswag-api to serv... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/spec_helper.rb | spec/spec_helper.rb | require 'simplecov'
SimpleCov.start 'rails' do
enable_coverage :branch
add_filter '/spec/'
add_filter '/config/'
add_filter '/vendor/'
add_group 'Models', 'app/models'
add_group 'Controllers', 'app/controllers'
add_group 'Services', 'app/services'
add_group 'Actions', 'app/actions'
add_group 'Jobs'... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/initializers/core_extensions_spec.rb | spec/initializers/core_extensions_spec.rb | require "rails_helper"
RSpec.describe "Hash#to_yaml_raw" do
it "returns YAML without the document start marker" do
hash = { "nodeSelector" => { "gpu" => "true" } }
result = hash.to_yaml_raw
expect(result).to eq("nodeSelector:\n gpu: 'true'\n")
end
it "produces valid YAML that can be parsed back" ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/cleanup_closed_pr_projects_job_spec.rb | spec/jobs/cleanup_closed_pr_projects_job_spec.rb | require "rails_helper"
RSpec.describe CleanupClosedPrProjectsJob, type: :job do
let(:parent_project) { create(:project) }
let(:child_project) { create(:project) }
let(:project_fork) { create(:project_fork, parent_project: parent_project, child_project: child_project, number: "123") }
let(:git_client) { instanc... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/inbound_webhooks/gitlab_job_spec.rb | spec/jobs/inbound_webhooks/gitlab_job_spec.rb | require 'rails_helper'
RSpec.describe InboundWebhooks::GitlabJob, type: :job do
let(:webhook_body) { JSON.parse(File.read("spec/resources/integrations/gitlab/push_webhook.json")) }
let(:inbound_webhook) { create(:inbound_webhook, body: webhook_body.to_json) }
let(:current_user) { create(:user) }
describe '#pe... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/scheduled/cancel_hanging_builds_job_spec.rb | spec/jobs/scheduled/cancel_hanging_builds_job_spec.rb | require 'rails_helper'
RSpec.describe Scheduled::CancelHangingBuildsJob do
let(:job) { described_class.new }
describe '#perform' do
let!(:recent_pending_build) { create(:build, status: :in_progress, created_at: 30.minutes.ago) }
let!(:old_pending_build) { create(:build, status: :in_progress, created_at: 2... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/scheduled/check_for_new_commits_job_spec.rb | spec/jobs/scheduled/check_for_new_commits_job_spec.rb | require 'rails_helper'
RSpec.describe Scheduled::CheckForNewCommitsJob, type: :job do
describe '#perform' do
context 'when cloud mode is disabled' do
before do
allow(Rails.application.config).to receive(:cloud_mode).and_return(false)
end
context 'with GitHub projects' do
let!(:... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/projects/destroy_job_spec.rb | spec/jobs/projects/destroy_job_spec.rb | # spec/actions/projects/create_spec.rb
require 'rails_helper'
RSpec.describe Projects::DestroyJob do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:job) { described_class.new }
let(:subject) { job.perform(project, user) }
before do
allow(job).to receive(:delete_namespace)
end
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/jobs/projects/check_for_new_commits_job_spec.rb | spec/jobs/projects/check_for_new_commits_job_spec.rb | require 'rails_helper'
RSpec.describe Projects::CheckForNewCommitsJob, type: :job do
describe '#perform' do
shared_context 'git project setup' do |provider_trait, commit_sha, commit_message|
let(:project) { create(:project, provider_trait, autodeploy: true, branch: 'main') }
let(:mock_commit) do
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/projects_spec.rb | spec/system/projects_spec.rb | require 'rails_helper'
RSpec.describe "Projects", type: :system do
attr_reader :user, :account, :cluster
before do
result = sign_in_user
@user = result[:user]
@account = result[:account]
@cluster = create(:cluster, account: account, name: "test-cluster")
k8_client = instance_double(K8::Client... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/aa_warmup_spec.rb | spec/system/aa_warmup_spec.rb | require 'rails_helper'
RSpec.describe "Browser warmup", type: :system do
it "initializes the browser" do
visit new_user_session_path
expect(page).to have_content("Log in")
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/clusters_spec.rb | spec/system/clusters_spec.rb | require 'rails_helper'
RSpec.describe "Clusters", type: :system do
attr_reader :user, :account
before do
result = sign_in_user
@user = result[:user]
@account = result[:account]
k8_client = instance_double(K8::Client)
allow(K8::Client).to receive(:new).and_return(k8_client)
allow(k8_client... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/registration_spec.rb | spec/system/registration_spec.rb | require 'rails_helper'
RSpec.describe "Registration", type: :system do
describe "sign up" do
it "allows a new user to sign up" do
visit new_user_registration_path
fill_in "Name", with: "John Doe"
fill_in "Email", with: "john@example.com"
fill_in "Password", with: "password123"
cli... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/add_ons_spec.rb | spec/system/add_ons_spec.rb | require 'rails_helper'
RSpec.describe "Add Ons", type: :system do
attr_reader :user, :account, :cluster
before do
result = sign_in_user
@user = result[:user]
@account = result[:account]
@cluster = create(:cluster, account: account, name: "test-cluster")
k8_client = double("K8::Client")
al... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/system/local/initial_install_spec.rb | spec/system/local/initial_install_spec.rb | require 'rails_helper'
require 'local_helper'
RSpec.describe "Initial Install", type: :system do
xit "displays the initial install page" do
visit root_path
expect(page).to have_content("Please go to Github.com and enter your personal access token below.")
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/favicon_service_spec.rb | spec/services/favicon_service_spec.rb | require 'rails_helper'
RSpec.describe FaviconService do
describe '#fetch_url and #exists?' do
it 'returns correct favicon URLs and checks existence' do
service = FaviconService.new('https://www.github.com:8080/path')
expect(service.fetch_url).to eq('https://icons.duckduckgo.com/ip3/github.com.ico')
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/infer_json_schema_service_spec.rb | spec/services/infer_json_schema_service_spec.rb | require 'rails_helper'
RSpec.describe InferJsonSchemaService do
describe '#infer' do
it 'infers schema from Ruby object with various types' do
data = {
"name" => "John",
"age" => 30,
"score" => 95.5,
"active" => true,
"tags" => [ "ruby", "rails" ],
"address" ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/ldap/authenticator_spec.rb | spec/services/ldap/authenticator_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe LDAP::Authenticator do
let(:ldap_config) { build(:ldap_configuration) }
let(:logger) { instance_double(Logger, info: nil, warn: nil, error: nil) }
let(:authenticator) { described_class.new(ldap_config, logger: logger) }
let(:reader_ldap) { i... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/k8/connection_spec.rb | spec/services/k8/connection_spec.rb | require 'rails_helper'
require 'support/shared_contexts/with_portainer'
RSpec.describe K8::Connection do
let(:user) { create(:user) }
let(:cluster) { create(:cluster) }
let(:project) { create(:project, cluster: cluster) }
let(:add_on) { create(:add_on, cluster: cluster) }
describe '#initialize' do
it 'a... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/k8/metrics/api_spec.rb | spec/services/k8/metrics/api_spec.rb | require 'rails_helper'
RSpec.describe K8::Metrics::Api::Node do
describe '.parse_output' do
context 'when the output is valid' do
let(:output) do
<<~OUTPUT
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
pool-o8jpbfqvx-gg31w 587m 7% 8963Mi 64%
pool-o8jpbfqv... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/k8/metrics/metrics_spec.rb | spec/services/k8/metrics/metrics_spec.rb | require 'rails_helper'
RSpec.describe K8::Metrics::Metrics do
describe '.call' do
let(:cluster) { create(:cluster) }
let(:user) { create(:user) }
let(:connection) { K8::Connection.new(cluster, user) }
let(:pod) do
double('Pod', name: 'pod1', cpu: 1, memory: 512)
end
let(:node) do
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/k8/helm/client_spec.rb | spec/services/k8/helm/client_spec.rb | require 'rails_helper'
RSpec.describe K8::Helm::Client do
let(:runner) { instance_double(Cli::RunAndReturnOutput) }
let(:client) { described_class.new(runner) }
describe '#connected?' do
it 'returns false when not connected' do
expect(client).not_to be_connected
end
it 'returns false when @ku... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/k8/stateless/cron_job_spec.rb | spec/services/k8/stateless/cron_job_spec.rb | require 'rails_helper'
RSpec.describe K8::Stateless::CronJob do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:service) { create(:service, :cron_job, project: project) }
let(:connection) { K8::Connection.new(project, user) }
let(:cron_job) { described_class.new(service).connect(connecti... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/git/gitlab/client_spec.rb | spec/services/git/gitlab/client_spec.rb | require 'rails_helper'
RSpec.describe Git::Gitlab::Client do
let(:access_token) { 'test_token' }
let(:repository_url) { 'czhu12/echo' }
let(:client) { described_class.new(access_token:, repository_url:) }
let(:gitlab_api_base) { "#{Provider::GITLAB_API_BASE}/api/v4" }
describe '#register_webhook!' do
le... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/saml/authenticator_spec.rb | spec/services/saml/authenticator_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe SAML::Authenticator do
let(:saml_config) { build(:saml_configuration) }
let(:account) { build(:account) }
let(:logger) { instance_double(Logger, info: nil, warn: nil, error: nil) }
let(:authenticator) { described_class.new(saml_config, accoun... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/services/canine_config/definition_spec.rb | spec/services/canine_config/definition_spec.rb | require 'rails_helper'
RSpec.describe CanineConfig::Definition do
let(:account) { create(:account) }
let(:cluster) { create(:cluster, account:, name: 'test-cluster') }
let(:base_project) { create(:project, project_fork_cluster_id: cluster.id, account:, name: 'test-project') }
let(:pull_request) do
Git::Com... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/support/capybara.rb | spec/support/capybara.rb | require "capybara/cuprite"
Capybara.register_driver(:cuprite) do |app|
Capybara::Cuprite::Driver.new(
app,
window_size: [ 1200, 800 ],
headless: !ENV["HEADLESS"].in?(%w[n 0 no false]),
process_timeout: 10,
inspector: true
)
end
Capybara.default_driver = :cuprite
Capybara.javascript_driver = :c... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/support/system_helpers.rb | spec/support/system_helpers.rb | module SystemHelpers
include Warden::Test::Helpers
def sign_in_user(user: nil, account: nil)
account ||= create(:account)
user ||= account.owner
visit new_user_session_path
fill_in "user_email", with: user.email
fill_in "user_password", with: "password"
click_button "Sign in"
{ user: ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/support/webmock.rb | spec/support/webmock.rb | # frozen_string_literal: true
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/support/shared_contexts/with_portainer.rb | spec/support/shared_contexts/with_portainer.rb | require 'rails_helper'
RSpec.shared_context 'with portainer' do
before do
headers = { 'Content-Type' => 'application/json' }
WebMock.stub_request(:any, %r{/api/kubernetes/config}).to_return(
status: 200, body: File.read(Rails.root.join(*%w[spec resources portainer kubeconfig.json])), headers:
)
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/support/shared_contexts/buildpack_details_stubbing.rb | spec/support/shared_contexts/buildpack_details_stubbing.rb | # frozen_string_literal: true
RSpec.shared_context 'buildpack details stubbing' do
let(:buildpack_details_result) do
double(
result: Buildpacks::Details::BuildpackDetailsResult.new(
latest: {
version: '0.47.7',
namespace: 'paketo-buildpacks',
name: 'go',
desc... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/swagger_schemas.rb | spec/integration/api/swagger_schemas.rb | # frozen_string_literal: true
module SwaggerSchemas
def self.schemas
constants.to_h do |constant|
[ constant.to_s.downcase, const_get(constant) ]
end
end
def self.validate!
schemas.each do |schema_name, schema|
next unless const_defined?(schema_name.upcase)
end
end
end
Dir["#{File... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/swagger_schemas_spec.rb | spec/integration/api/swagger_schemas_spec.rb | # frozen_string_literal: true
require 'rails_helper'
require './spec/integration/api/swagger_schemas'
RSpec.describe SwaggerSchemas do
it 'matches' do
expect { described_class.validate! }.not_to raise_error
end
end
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/v1/builds_spec.rb | spec/integration/api/v1/builds_spec.rb | # frozen_string_literal: true
require 'swagger_helper'
RSpec.describe Api::V1::BuildsController, :swagger, type: :request do
include ApplicationHelper
let(:api_token) { create :api_token, user: }
let(:'X-API-Key') { api_token.access_token }
let(:account) { create :account }
let(:user) { create :user }
let... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/v1/projects_spec.rb | spec/integration/api/v1/projects_spec.rb | # frozen_string_literal: true
require 'swagger_helper'
RSpec.describe Api::V1::ProjectsController, :swagger, type: :request do
include ApplicationHelper
let(:api_token) { create :api_token }
let(:'X-API-Key') { api_token.access_token }
let(:account) { create :account }
let(:project) { create :project, accou... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/v1/processes_spec.rb | spec/integration/api/v1/processes_spec.rb | # frozen_string_literal: true
require 'swagger_helper'
RSpec.describe Api::V1::Projects::ProcessesController, :swagger, type: :request do
include ApplicationHelper
let(:api_token) { create :api_token, user: }
let(:'X-API-Key') { api_token.access_token }
let(:account) { create :account }
let(:user) { create ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/v1/clusters_spec.rb | spec/integration/api/v1/clusters_spec.rb | # frozen_string_literal: true
require 'swagger_helper'
RSpec.describe Api::V1::ClustersController, :swagger, type: :request do
include ApplicationHelper
let(:api_token) { create :api_token, user: }
let(:'X-API-Key') { api_token.access_token }
let(:account) { create :account }
let(:user) { create :user }
l... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/v1/me_spec.rb | spec/integration/api/v1/me_spec.rb | # frozen_string_literal: true
require 'swagger_helper'
RSpec.describe Api::V1::MeController, :swagger, type: :request do
let(:api_token) { create :api_token, user: }
let(:'X-API-Key') { api_token.access_token }
let(:account) { create :account }
let(:user) { create :user }
let!(:account_user) { create :accou... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/cluster.rb | spec/integration/api/models/cluster.rb | # frozen_string_literal: true
SwaggerSchemas::CLUSTER = {
type: :object,
required: %w[id name cluster_type status created_at updated_at],
properties: {
id: {
type: :integer,
example: 1
},
name: {
type: :string,
example: 'production-cluster'
},
cluster_type: {
typ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/project.rb | spec/integration/api/models/project.rb | # frozen_string_literal: true
SwaggerSchemas::PROJECT = {
type: :object,
required: %w[id name namespace repository_url branch status cluster_id updated_at created_at],
properties: {
id: {
type: :integer,
example: 1
},
name: {
type: :string,
example: 'example-project'
},
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/pod.rb | spec/integration/api/models/pod.rb | # frozen_string_literal: true
SwaggerSchemas::POD = {
type: :object,
required: %w[name namespace status created_at],
properties: {
name: {
type: :string,
example: 'example-project-run-abc123'
},
namespace: {
type: :string,
example: 'example-project-namespace'
},
status... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/projects.rb | spec/integration/api/models/projects.rb | # frozen_string_literal: true
SwaggerSchemas::PROJECTS = {
type: :object,
required: %w[projects],
properties: {
projects: {
type: :array,
items: {
'$ref' => '#/components/schemas/project'
}
}
}
}.freeze
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/pods.rb | spec/integration/api/models/pods.rb | # frozen_string_literal: true
SwaggerSchemas::PODS = {
type: :object,
required: %w[pods],
properties: {
pods: {
type: :array,
items: {
'$ref' => '#/components/schemas/pod'
}
}
}
}.freeze
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/integration/api/models/clusters.rb | spec/integration/api/models/clusters.rb | # frozen_string_literal: true
SwaggerSchemas::CLUSTERS = {
type: :object,
required: %w[clusters],
properties: {
clusters: {
type: :array,
items: {
'$ref' => '#/components/schemas/cluster'
}
}
}
}.freeze
| ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/helpers/loggable_spec.rb | spec/helpers/loggable_spec.rb | require 'rails_helper'
RSpec.describe Loggable do
let(:instance) { create(:cluster) }
describe '#info' do
it 'logs info messages and creates a log_output' do
expect {
instance.info('Test info message', color: :green)
}.to change { LogOutput.count }.by(1)
log_output = LogOutput.last
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/project_forks.rb | spec/factories/project_forks.rb | # == Schema Information
#
# Table name: project_forks
#
# id :bigint not null, primary key
# number :string not null
# title :string not null
# url :string not null
# user :string not null
# created_... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/users.rb | spec/factories/users.rb | # == Schema Information
#
# Table name: users
#
# id :bigint not null, primary key
# admin :boolean default(FALSE)
# announcements_last_read_at :datetime
# email :string default(""), not null
# encrypted_password ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/stack_managers.rb | spec/factories/stack_managers.rb | # == Schema Information
#
# Table name: stack_managers
#
# id :bigint not null, primary key
# access_token :string
# enable_role_based_access_control :boolean default(TRUE)
# provider_url :string not null
# stack_man... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/resource_constraints.rb | spec/factories/resource_constraints.rb | # == Schema Information
#
# Table name: resource_constraints
#
# id :bigint not null, primary key
# cpu_limit :bigint
# cpu_request :bigint
# gpu_request :integer
# memory_limit :bigint
# memory_request :bigint
# created_at :datetime not null
# updated_at :date... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/build_configurations.rb | spec/factories/build_configurations.rb | # == Schema Information
#
# Table name: build_configurations
#
# id :bigint not null, primary key
# build_type :integer not null
# buildpack_base_builder :string
# context_directory :string default("./"), not null
# dockerfile_path :string ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/inbound_webhooks.rb | spec/factories/inbound_webhooks.rb | # == Schema Information
#
# Table name: inbound_webhooks
#
# id :bigint not null, primary key
# body :text
# status :integer default("pending")
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryBot.define do
factory :inbound_webhook do
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/saml_configurations.rb | spec/factories/saml_configurations.rb | # == Schema Information
#
# Table name: saml_configurations
#
# id :bigint not null, primary key
# authn_requests_signed :boolean default(FALSE)
# email_attribute :string default("email")
# groups_attribute :string
# idp_cert :text ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/accounts.rb | spec/factories/accounts.rb | # == Schema Information
#
# Table name: accounts
#
# id :bigint not null, primary key
# name :string not null
# slug :string not null
# created_at :datetime not null
# updated_at :datetime not null
# owner_id :bigint
#
# Indexes
#
# index_accoun... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/providers.rb | spec/factories/providers.rb | # == Schema Information
#
# Table name: providers
#
# id :bigint not null, primary key
# access_token :string
# access_token_secret :string
# auth :text
# expires_at :datetime
# last_used_at :datetime
# provider :string
# refresh_token ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/build_packs.rb | spec/factories/build_packs.rb | # == Schema Information
#
# Table name: build_packs
#
# id :bigint not null, primary key
# build_order :integer not null
# details :jsonb
# name :string
# namespace :string
# reference_type :integer no... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/add_ons.rb | spec/factories/add_ons.rb | # == Schema Information
#
# Table name: add_ons
#
# id :bigint not null, primary key
# chart_type :string not null
# chart_url :string
# managed_namespace :boolean default(TRUE)
# metadata :jsonb
# name :string not null
# ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/team_memberships.rb | spec/factories/team_memberships.rb | # == Schema Information
#
# Table name: team_memberships
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# team_id :bigint not null
# user_id :bigint not null
#
# Indexes
#
# index_team_memberships_on_... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/api_tokens.rb | spec/factories/api_tokens.rb | # == Schema Information
#
# Table name: api_tokens
#
# id :bigint not null, primary key
# access_token :string not null
# expires_at :datetime
# last_used_at :datetime
# name :string not null
# created_at :datetime not null
# updated_at :datetime ... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
CanineHQ/canine | https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/projects.rb | spec/factories/projects.rb | # == Schema Information
#
# Table name: projects
#
# id :bigint not null, primary key
# autodeploy :boolean default(TRUE), not null
# branch :string default("main"), not null
# canine_config :jsonb
... | ruby | Apache-2.0 | f5c94561cbc487892b393a3aa57409beeea96c62 | 2026-01-04T15:53:12.976830Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.