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/spec/factories/environment_variables.rb
spec/factories/environment_variables.rb
# == Schema Information # # Table name: environment_variables # # id :bigint not null, primary key # name :string not null # storage_type :integer default("config"), not null # value :text # 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/team_resources.rb
spec/factories/team_resources.rb
# == Schema Information # # Table name: team_resources # # id :bigint not null, primary key # resourceable_type :string not null # created_at :datetime not null # updated_at :datetime not null # resourceable_id :bigint not null # team_id...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/deployments.rb
spec/factories/deployments.rb
# == Schema Information # # Table name: deployments # # id :bigint not null, primary key # manifests :jsonb # status :integer default("in_progress"), not null # created_at :datetime not null # updated_at :datetime not null # build_id :bigint 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/account_users.rb
spec/factories/account_users.rb
# == Schema Information # # Table name: account_users # # id :bigint not null, primary key # role :integer default("member"), not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # user_id :bigint ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/favorites.rb
spec/factories/favorites.rb
# == Schema Information # # Table name: favorites # # id :bigint not null, primary key # favoriteable_type :string not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # favoriteable...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/teams.rb
spec/factories/teams.rb
# == Schema Information # # Table name: teams # # id :bigint not null, primary key # name :string not null # slug :string not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # # Indexes #...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/oidc_configurations.rb
spec/factories/oidc_configurations.rb
# == Schema Information # # Table name: oidc_configurations # # id :bigint not null, primary key # issuer :string not null # client_id :string not null # client_secret :string not null # authorization_endpoint :string...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/project_credential_providers.rb
spec/factories/project_credential_providers.rb
# == Schema Information # # Table name: project_credential_providers # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # project_id :bigint not null # provider_id :bigint not null # # Indexes # # idx_on_pr...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/sso_providers.rb
spec/factories/sso_providers.rb
# == Schema Information # # Table name: sso_providers # # id :bigint not null, primary key # configuration_type :string not null # enabled :boolean default(TRUE), not null # name :string not null # team_provisioning_mod...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/builds.rb
spec/factories/builds.rb
# == Schema Information # # Table name: builds # # id :bigint not null, primary key # commit_message :string # commit_sha :string not null # git_sha :string # repository_url :string # status :integer default("in_progress") # created_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/metrics.rb
spec/factories/metrics.rb
# == Schema Information # # Table name: metrics # # id :bigint not null, primary key # metadata :jsonb not null # metric_type :integer default("cpu"), not null # tags :jsonb not null, is an Array # created_at :datetime not null # updated_at :da...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/ldap_configurations.rb
spec/factories/ldap_configurations.rb
# == Schema Information # # Table name: ldap_configurations # # id :bigint not null, primary key # allow_anonymous_reads :boolean default(FALSE) # base_dn :string not null # bind_dn :string # bind_password :string # email_attribut...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/domains.rb
spec/factories/domains.rb
# == Schema Information # # Table name: domains # # id :bigint not null, primary key # domain_name :string not null # status :integer default("checking_dns") # status_reason :string # created_at :datetime not null # updated_at :datetime not nu...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/build_clouds.rb
spec/factories/build_clouds.rb
# == Schema Information # # Table name: build_clouds # # id :bigint not null, primary key # cpu_limits :bigint default(2000) # cpu_requests :bigint default(500) # driver_version :string # error_message :text # installation_metadat...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/services.rb
spec/factories/services.rb
# == Schema Information # # Table name: services # # id :bigint not null, primary key # allow_public_networking :boolean default(FALSE) # command :string # container_port :integer default(3000) # description :text # healthcheck_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/volumes.rb
spec/factories/volumes.rb
# == Schema Information # # Table name: volumes # # id :bigint not null, primary key # access_mode :integer default("read_write_once") # mount_path :string default("/volumes/data"), not null # name :string not null # size :string default("10G...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/cron_schedules.rb
spec/factories/cron_schedules.rb
# == Schema Information # # Table name: cron_schedules # # id :bigint not null, primary key # schedule :string not null # service_id :bigint not null # # Indexes # # index_cron_schedules_on_service_id (service_id) # # Foreign Keys # # fk_rails_... (service_id => services.i...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/factories/clusters.rb
spec/factories/clusters.rb
# == Schema Information # # Table name: clusters # # id :bigint not null, primary key # cluster_type :integer default("k8s") # kubeconfig :jsonb # name :string not null # options :jsonb not null # status :integer default("initializing...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/project_forks/create_spec.rb
spec/actions/project_forks/create_spec.rb
require 'rails_helper' RSpec.describe ProjectForks::Create do let(:account) { create(:account) } let(:fork_cluster) { create(:cluster, account:) } let(:parent_project) { create(:project, project_fork_cluster_id: fork_cluster.id, account:) } let(:provider) { create(:provider, :github, user: account.owner) } l...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/project_forks/fork_project_spec.rb
spec/actions/project_forks/fork_project_spec.rb
require 'rails_helper' RSpec.describe ProjectForks::ForkProject do let(:account) { create(:account) } let(:cluster) { create(:cluster, account:) } let(:parent_project) { create(:project, account:, cluster:, project_fork_cluster_id: cluster.id) } let(:provider) { create(:provider, :github, user: account.owner) ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/project_forks/initialize_from_canine_config_spec.rb
spec/actions/project_forks/initialize_from_canine_config_spec.rb
require 'rails_helper' RSpec.describe ProjectForks::InitializeFromCanineConfig do let(:account) { create(:account) } let(:cluster) { create(:cluster, account:) } let(:parent_project) { create(:project, account:, cluster:) } let(:child_project) { create(:project, account:, cluster:) } let(:project_fork) { cre...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/services/create_spec.rb
spec/actions/services/create_spec.rb
require 'rails_helper' RSpec.describe Services::Create do it 'saves the service with associations' do project = create(:project) service = build(:service, :cron_job, project: project) result = described_class.call(service, { service: {} }) expect(result).to be_success expect(service).to be_pers...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/install_helm_chart_spec.rb
spec/actions/add_ons/install_helm_chart_spec.rb
require 'rails_helper' RSpec.describe AddOns::InstallHelmChart do let(:add_on) { create(:add_on) } let(:user) { create(:user) } let(:connection) { K8::Connection.new(add_on, user) } let(:kubectl) { instance_double(K8::Kubectl) } let(:helm_client) { instance_double(K8::Helm::Client) } before do allow(K...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/create_spec.rb
spec/actions/add_ons/create_spec.rb
require 'rails_helper' RSpec.describe AddOns::Create do let(:cluster) { create(:cluster) } let(:add_on) { build(:add_on) } let(:chart_details) { { 'name' => 'redis', 'version' => '1.0.0' } } before do allow(Namespaced::ValidateNamespace).to receive(:execute) allow(AddOns::HelmChartDetails).to receive(...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/apply_template_to_values_spec.rb
spec/actions/add_ons/apply_template_to_values_spec.rb
require 'rails_helper' RSpec.describe AddOns::ApplyTemplateToValues do let(:add_on) { build(:add_on) } let(:template) do { 'master.persistence.size' => { 'type' => 'size', 'value' => '10', 'unit' => 'Gi' }, 'replica.replicaCount' => '5' } end before do add_on.metadata['template'] = tem...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/filter_spec.rb
spec/actions/add_ons/filter_spec.rb
require 'rails_helper' RSpec.describe AddOns::Filter do it 'filters add_ons by name with case-insensitive ILIKE' do cluster = create(:cluster) redis = create(:add_on, cluster: cluster, name: 'redis-cache') create(:add_on, cluster: cluster, name: 'postgres-db') expect(described_class.execute(params: ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/uninstall_helm_chart_spec.rb
spec/actions/add_ons/uninstall_helm_chart_spec.rb
require 'rails_helper' RSpec.describe AddOns::UninstallHelmChart do let(:add_on) { create(:add_on) } let(:user) { create(:user) } let(:connection) { K8::Connection.new(add_on, user) } let(:kubectl) { instance_double(K8::Kubectl) } let(:helm_client) { instance_double(K8::Helm::Client) } let(:client) { insta...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/visible_to_user_spec.rb
spec/actions/add_ons/visible_to_user_spec.rb
require 'rails_helper' RSpec.describe AddOns::VisibleToUser do let!(:account) { create(:account) } let!(:user) { create(:user) } let!(:account_user) { AccountUser.find_by(user: user, account: account) || create(:account_user, user: user, account: account) } let!(:cluster) { create(:cluster, account: account) }...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/add_ons/set_package_details_spec.rb
spec/actions/add_ons/set_package_details_spec.rb
require 'rails_helper' RSpec.describe AddOns::SetPackageDetails do let(:add_on) { build(:add_on) } let(:chart_details) { { 'name' => 'test-chart', 'version' => '1.0.0' } } before do allow(AddOns::HelmChartDetails).to receive(:execute).and_return( double(success?: true, failure?: false, response: chart...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/favorites/for_user_spec.rb
spec/actions/favorites/for_user_spec.rb
require 'rails_helper' RSpec.describe Favorites::ForUser do let(:account) { create(:account) } let(:user) { create(:user) } let!(:cluster) { create(:cluster, account:) } let!(:project1) { create(:project, cluster:, account:) } let!(:project2) { create(:project, cluster:, account:) } let!(:add_on) { create(...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/favorites/toggle_spec.rb
spec/actions/favorites/toggle_spec.rb
require 'rails_helper' RSpec.describe Favorites::Toggle do let(:account) { create(:account) } let(:user) { create(:user) } let!(:cluster) { create(:cluster, account:) } let!(:project) { create(:project, cluster:, account:) } describe '.execute' do context 'when item is not favorited' do it 'create...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/resource_constraints/save_spec.rb
spec/actions/resource_constraints/save_spec.rb
require 'rails_helper' RSpec.describe ResourceConstraints::Save do let(:service) { create(:service) } let(:resource_constraint) { build(:resource_constraint, service: service) } describe '.call' do context 'with valid CPU core values' do let(:params) do { cpu_request: '0.5', ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/clusters/validate_kube_config_spec.rb
spec/actions/clusters/validate_kube_config_spec.rb
require 'rails_helper' RSpec.describe Clusters::ValidateKubeConfig do let(:valid_kubeconfig) do YAML.safe_load(File.read(Rails.root.join('spec/resources/k8/kubeconfig.yml'))) end let(:cluster) { create(:cluster, kubeconfig: valid_kubeconfig) } let(:user) { create(:user) } describe '.valid_kubeconfig_str...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/clusters/install_spec.rb
spec/actions/clusters/install_spec.rb
require 'rails_helper' RSpec.describe Clusters::Install do let(:account) { create(:account) } let(:cluster) { create(:cluster, account: account, status: :initializing) } let(:user) { create(:user) } let!(:portainer_provider) { create(:provider, :portainer, user: user) } let(:connection) { instance_double(K8:...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/clusters/create_spec.rb
spec/actions/clusters/create_spec.rb
require 'rails_helper' RSpec.describe Clusters::Create do let(:valid_kubeconfig) do YAML.safe_load(File.read(Rails.root.join('spec/resources/k8/kubeconfig.yml'))) end let(:cluster) { build(:cluster, kubeconfig: valid_kubeconfig) } let(:user) { create(:user) } describe '.call' do context 'when kubeco...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/clusters/filter_spec.rb
spec/actions/clusters/filter_spec.rb
require 'rails_helper' RSpec.describe Clusters::Filter do it 'filters clusters by name with case-insensitive ILIKE' do account = create(:account) prod = create(:cluster, account: account, name: 'production-us') create(:cluster, account: account, name: 'staging-eu') expect(described_class.execute(par...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/clusters/visible_to_user_spec.rb
spec/actions/clusters/visible_to_user_spec.rb
require 'rails_helper' RSpec.describe Clusters::VisibleToUser do let!(:account) { create(:account) } let!(:user) { create(:user) } let!(:account_user) { AccountUser.find_by(user: user, account: account) || create(:account_user, user: user, account: account) } before do account.users << user unless account...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/providers/generate_config_json_spec.rb
spec/actions/providers/generate_config_json_spec.rb
require 'rails_helper' RSpec.describe Providers::GenerateConfigJson do let(:provider) { build(:provider, :container_registry) } subject(:context) { described_class.execute(provider: provider) } describe '.execute' do it 'succeeds' do expect(context).to be_success end it 'generates a valid do...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/providers/create_spec.rb
spec/actions/providers/create_spec.rb
require 'rails_helper' RSpec.describe Providers::Create do let(:subject) { described_class.call(provider) } describe '.call' do context 'when the provider is container registry' do let(:provider) { build(:provider, :container_registry) } before do # Mock successful Docker authentication ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/providers/create_gitlab_provider_spec.rb
spec/actions/providers/create_gitlab_provider_spec.rb
require 'webmock/rspec' require 'rails_helper' RSpec.describe Providers::CreateGitlabProvider do let(:provider) { build(:provider, :gitlab) } let(:subject) { described_class.execute(provider: provider) } let(:personal_access_tokens_data) do JSON.parse(File.read(Rails.root.join('spec/resources/integrations/gi...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/namespaced/set_up_namespace_spec.rb
spec/actions/namespaced/set_up_namespace_spec.rb
require 'rails_helper' RSpec.describe Namespaced::SetUpNamespace do let(:subject) { described_class.execute(namespaced: project) } context "canine managed namespace" do let(:project) { build(:project, managed_namespace: true, namespace: "") } it "autosets the name" do result = subject expect...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/namespaced/validate_namespace_spec.rb
spec/actions/namespaced/validate_namespace_spec.rb
require 'rails_helper' RSpec.describe Namespaced::ValidateNamespace do let(:cluster) { create(:cluster) } let(:user) { create(:user) } let(:k8_client) { instance_double(K8::Client) } before do allow(K8::Client).to receive(:new).and_return(k8_client) end describe '.execute' do context 'with unmana...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/networks/check_dns_spec.rb
spec/actions/networks/check_dns_spec.rb
require 'rails_helper' RSpec.describe Networks::CheckDns do let(:cluster) { create(:cluster) } let(:user) { create(:user) } let(:project) { create(:project, cluster: cluster) } let(:service) { create(:service, project: project) } let(:connection) { K8::Connection.new(cluster, user) } let(:ingress) { K8::St...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/buildpacks/search_spec.rb
spec/actions/buildpacks/search_spec.rb
require 'rails_helper' RSpec.describe Buildpacks::Search do describe '.execute' do let(:query) { 'ruby' } let(:fixture_path) { Rails.root.join('spec/resources/build_packs/search_ruby.json') } let(:fixture_response) { File.read(fixture_path) } before do stub_request(:get, "https://registry.buil...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/buildpacks/details_spec.rb
spec/actions/buildpacks/details_spec.rb
require 'rails_helper' RSpec.describe Buildpacks::Details do describe '.execute' do let(:namespace) { 'paketo-buildpacks' } let(:name) { 'passenger' } let(:fixture_path) { Rails.root.join('spec/resources/build_packs/details_passenger.json') } let(:fixture_response) { File.read(fixture_path) } be...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/global_search/search_spec.rb
spec/actions/global_search/search_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe GlobalSearch::Search do let(:account) { create(:account) } let(:user) { create(:user) } let(:account_user) { create(:account_user, account:, user:) } let!(:cluster) { create(:cluster, account:, name: "production-cluster") } let!(:project1) ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/environment_variables/parse_text_content_spec.rb
spec/actions/environment_variables/parse_text_content_spec.rb
require 'rails_helper' RSpec.describe EnvironmentVariables::ParseTextContent do context 'when text_content is present' do let(:params) { { text_content: "VAR1=value1\nVAR2=\"value2\"" } } it 'parses text content into environment variables' do result = described_class.execute(params:) expect(resu...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/environment_variables/bulk_update_spec.rb
spec/actions/environment_variables/bulk_update_spec.rb
# spec/actions/environment_variables/bulk_update_spec.rb require 'rails_helper' RSpec.describe EnvironmentVariables::BulkUpdate do let(:project) { create(:project) } let(:current_user) { create(:user) } let(:params) { { environment_variables: [] } } describe '.execute' do subject { described_class.execute...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/update_spec.rb
spec/actions/projects/update_spec.rb
require 'rails_helper' RSpec.describe Projects::Update do let(:user) { create(:user) } let(:provider) { create(:provider, :github, user:) } let(:cluster) { create(:cluster) } let(:project) do create(:project, name: 'original-name', branch: 'main', cluster: cluster, repository_url: '...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/set_up_namespace_spec.rb
spec/actions/projects/set_up_namespace_spec.rb
require 'rails_helper' RSpec.describe Namespaced::SetUpNamespace do let(:subject) { described_class.execute(namespaced: project) } context "canine managed namespace" do let(:project) { build(:project, managed_namespace: true, namespace: "") } it "autosets the name" do result = subject expect...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/create_spec.rb
spec/actions/projects/create_spec.rb
# spec/actions/projects/create_spec.rb require 'rails_helper' RSpec.describe Projects::Create do let(:user) { create(:user) } let(:provider) { create(:provider, :github, user:) } let(:cluster) { create(:cluster) } let(:params) do ActionController::Parameters.new({ project: { name: 'example-re...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/initialize_build_packs_spec.rb
spec/actions/projects/initialize_build_packs_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Projects::InitializeBuildPacks do include_context 'buildpack details stubbing' let(:provider) { create(:provider, :github) } let(:project) { create(:project) } let(:build_configuration) do create(:build_configuration, project:...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/deploy_latest_commit_spec.rb
spec/actions/projects/deploy_latest_commit_spec.rb
# spec/actions/projects/create_spec.rb require 'rails_helper' class MockGithub def commits(branch) [ Git::Common::Commit.new( sha: "1234", message: "initial commit", author_name: "Test Author", author_email: "test@example.com", authored_at: Time.current, comm...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/filter_spec.rb
spec/actions/projects/filter_spec.rb
require 'rails_helper' RSpec.describe Projects::Filter do it 'filters projects by name with case-insensitive ILIKE' do cluster = create(:cluster) api = create(:project, cluster: cluster, account: cluster.account, name: 'api-service') create(:project, cluster: cluster, account: cluster.account, name: 'web...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/visible_to_user_spec.rb
spec/actions/projects/visible_to_user_spec.rb
require 'rails_helper' RSpec.describe Projects::VisibleToUser do let(:account) { create(:account) } let(:user) { create(:user) } let!(:account_user) { create(:account_user, account:, user:) } let!(:cluster) { create(:cluster, account:) } let!(:project1) { create(:project, cluster:, account:) } let!(:projec...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/projects/update_build_packs_spec.rb
spec/actions/projects/update_build_packs_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Projects::UpdateBuildPacks do include_context 'buildpack details stubbing' let(:provider) { create(:provider, :github) } let(:project) { create(:project) } let(:build_configuration) do create(:build_configuration, project: pro...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/sso/create_teams_in_account_spec.rb
spec/actions/sso/create_teams_in_account_spec.rb
require 'rails_helper' RSpec.describe SSO::CreateTeamsInAccount do let(:account) { create(:account) } describe '.execute' do it 'creates only teams that do not already exist' do create(:team, account: account, name: 'Engineering') result = described_class.execute(account: account, team_names: [ {...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/sso/sync_user_teams_spec.rb
spec/actions/sso/sync_user_teams_spec.rb
require 'rails_helper' RSpec.describe SSO::SyncUserTeams do let(:account) { create(:account) } let(:sso_provider) { create(:sso_provider, account: account) } describe '.call' do it 'creates user, teams, and team memberships' do create(:team, account: account, name: 'Existing') result = describe...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/actions/sso/create_user_in_account_spec.rb
spec/actions/sso/create_user_in_account_spec.rb
require 'rails_helper' RSpec.describe SSO::CreateUserInAccount do let(:account) { create(:account) } let(:sso_provider) { create(:sso_provider, account: account) } describe '.execute' do it 'creates a new user, provider record, and associates them with the account' do result = described_class.execute(...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/deployment_spec.rb
spec/models/deployment_spec.rb
# == Schema Information # # Table name: deployments # # id :bigint not null, primary key # manifests :jsonb # status :integer default("in_progress"), not null # created_at :datetime not null # updated_at :datetime not null # build_id :bigint not null # #...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/provider_spec.rb
spec/models/provider_spec.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/models/favorite_spec.rb
spec/models/favorite_spec.rb
# == Schema Information # # Table name: favorites # # id :bigint not null, primary key # favoriteable_type :string not null # created_at :datetime not null # updated_at :datetime not null # account_id :bigint not null # favoriteable...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/resource_constraint_spec.rb
spec/models/resource_constraint_spec.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/models/project_spec.rb
spec/models/project_spec.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
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/domain_spec.rb
spec/models/domain_spec.rb
# == Schema Information # # Table name: domains # # id :bigint not null, primary key # domain_name :string not null # status :integer default("checking_dns") # status_reason :string # created_at :datetime not null # updated_at :datetime not nu...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/build_pack_spec.rb
spec/models/build_pack_spec.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/models/service_spec.rb
spec/models/service_spec.rb
# == Schema Information # # Table name: services # # id :bigint not null, primary key # allow_public_networking :boolean default(FALSE) # command :string # container_port :integer default(3000) # description :text # healthcheck_...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/build_configuration_spec.rb
spec/models/build_configuration_spec.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/models/build_cloud_spec.rb
spec/models/build_cloud_spec.rb
# == Schema Information # # Table name: build_clouds # # id :bigint not null, primary key # cpu_limits :bigint default(2000) # cpu_requests :bigint default(500) # driver_version :string # error_message :text # installation_metadat...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/oidc_configuration_spec.rb
spec/models/oidc_configuration_spec.rb
# == Schema Information # # Table name: oidc_configurations # # id :bigint not null, primary key # issuer :string not null # client_id :string not null # client_secret :string not null # authorization_endpoint :string...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/volume_spec.rb
spec/models/volume_spec.rb
# == Schema Information # # Table name: volumes # # id :bigint not null, primary key # access_mode :integer default("read_write_once") # mount_path :string default("/volumes/data"), not null # name :string not null # size :string default("10G...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/environment_variable_spec.rb
spec/models/environment_variable_spec.rb
# == Schema Information # # Table name: environment_variables # # id :bigint not null, primary key # name :string not null # storage_type :integer default("config"), not null # value :text # 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/models/sso_provider_spec.rb
spec/models/sso_provider_spec.rb
# == Schema Information # # Table name: sso_providers # # id :bigint not null, primary key # configuration_type :string not null # enabled :boolean default(TRUE), not null # name :string not null # team_provisioning_mod...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/cluster_spec.rb
spec/models/cluster_spec.rb
# == Schema Information # # Table name: clusters # # id :bigint not null, primary key # cluster_type :integer default("k8s") # kubeconfig :jsonb # name :string not null # options :jsonb not null # status :integer default("initializing...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/models/api_token_spec.rb
spec/models/api_token_spec.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/models/stack_manager_spec.rb
spec/models/stack_manager_spec.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/lib/portainer/client_spec.rb
spec/lib/portainer/client_spec.rb
require "rails_helper" require "webmock/rspec" require 'support/shared_contexts/with_portainer' RSpec.describe Portainer::Client do include_context 'with portainer' let(:portainer_url) { "https://portainer.example.com" } let(:portainer_token) { "test-token-123" } let(:client) { described_class.new(portainer_u...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/lib/portainer/authenticate_spec.rb
spec/lib/portainer/authenticate_spec.rb
require 'rails_helper' require 'support/shared_contexts/with_portainer' RSpec.describe Portainer::Authenticate do include_context 'with portainer' let(:user) { create(:user) } let(:stack_manager) { create(:stack_manager) } let(:auth_code) { 'auth_code' } it 'can authenticate with portainer' do result = ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/lib/portainer/stack_spec.rb
spec/lib/portainer/stack_spec.rb
require "rails_helper" require "webmock/rspec" require 'support/shared_contexts/with_portainer' RSpec.describe Portainer::Stack do include_context 'with portainer' let(:account) { create(:account) } let(:stack_manager) { create(:stack_manager, account: account, access_token: "access_token") } let(:provider) { ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/spec/lib/portainer/onboarding/create_spec.rb
spec/lib/portainer/onboarding/create_spec.rb
require 'rails_helper' RSpec.describe Portainer::Onboarding::Create do let(:params) do ActionController::Parameters.new( account: { name: 'testorg' }, user: { email: 'admin@example.com', password: 'password123' }, stack_manager: { provider_url: 'https://test.portainer.io', access_token: 'test-t...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/sync_clusters.rb
lib/portainer/sync_clusters.rb
class Portainer::SyncClusters extend LightService::Action expects :stack_manager, :user promises :clusters executed do |context| context.clusters = context.stack_manager.stack.connect(context.user).sync_clusters end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/data.rb
lib/portainer/data.rb
class Portainer::Data class User attr_accessor :id, :username, :jwt def initialize(id:, username:, jwt:) @id = id @username = username @jwt = jwt end end class Registry attr_accessor :id, :name, :url, :username, :password, :authentication def initialize(id:, name:, url:, u...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/authenticate.rb
lib/portainer/authenticate.rb
class Portainer::Authenticate extend LightService::Action expects :stack_manager, :user, :auth_code expects :username, default: nil executed do |context| stack_manager = context.stack_manager portainer_user = Portainer::Client.authenticate( auth_code: context.auth_code, username: context.u...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/stack.rb
lib/portainer/stack.rb
class Portainer::Stack attr_reader :stack_manager, :client delegate :authenticated?, to: :client delegate :get_kubernetes_config, to: :client def initialize(stack_manager) @stack_manager = stack_manager end # Ugh, this is only used for testing. def _connect_with_client(client) @_client = client ...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/sync_registries.rb
lib/portainer/sync_registries.rb
class Portainer::SyncRegistries extend LightService::Action expects :stack_manager, :user, :clusters executed do |context| clusters = context.stack_manager.account.clusters if clusters.any? context.stack_manager.stack.connect(context.user).sync_registries( context.user, clusters.fi...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/client.rb
lib/portainer/client.rb
# frozen_string_literal: true require 'httparty' module Portainer class Client class UserJWT < Struct.new(:token); end class AccessToken < Struct.new(:token); end KUBERNETES_ENDPOINT_TYPES = [ 5, 6, 7 ] attr_reader :jwt, :provider_url include HTTParty default_options.update(verify: false,...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/onboarding/authenticate_with_portainer.rb
lib/portainer/onboarding/authenticate_with_portainer.rb
class Portainer::Onboarding::AuthenticateWithPortainer extend LightService::Action expects :username, :password, :provider_url promises :portainer_user executed do |context| context.portainer_user = Portainer::Client.authenticate( auth_code: context.password, username: context.username, p...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/onboarding/create_user_with_stack_manager.rb
lib/portainer/onboarding/create_user_with_stack_manager.rb
class Portainer::Onboarding::CreateUserWithStackManager extend LightService::Action expects :account_name, :provider_url, :access_token, :enable_role_based_access_control, :email, :password, :personal_access_token promises :user, :account, :stack_manager executed do |context| ActiveRecord::Base.t...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/onboarding/create.rb
lib/portainer/onboarding/create.rb
class Portainer::Onboarding::Create extend LightService::Organizer def self.post_create [ Portainer::SyncClusters, Portainer::SyncRegistries ] end def self.call(params) with( account_name: params[:account][:name], provider_url: params[:stack_manager][:provider_url], a...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/onboarding/initializer_portainer_account.rb
lib/portainer/onboarding/initializer_portainer_account.rb
class Portainer::Onboarding::InitializerPortainerAccount extend LightService::Action expects :account executed do |context| context.account.stack_manager.instance.sync_clusters end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/portainer/onboarding/validate_boot_mode.rb
lib/portainer/onboarding/validate_boot_mode.rb
class Portainer::Onboarding::ValidateBootMode extend LightService::Action executed do |context| if Rails.application.config.cloud_mode context.fail_and_return!("Portainer onboarding is not available in cloud mode") end end end
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/lib/devise/strategies/ldap_authenticatable.rb
lib/devise/strategies/ldap_authenticatable.rb
# app/strategies/devise/ldap_authenticatable.rb require 'devise/strategies/authenticatable' module Devise module Strategies class LDAPAuthenticatable < Authenticatable def valid? # basic shape check user_params = params[:user] return false unless user_params.is_a?(ActionController::...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/application.rb
config/application.rb
require_relative "boot" require "rails/all" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) BOOT_MODES = %w[local cloud cluster] module Canine class Application < Rails::Application config.boot_mode = ENV.fetch("BO...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/environment.rb
config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/puma.rb
config/puma.rb
# This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. # Puma starts a configurable number of processes (workers) and each process # serves...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/routes.rb
config/routes.rb
Rails.application.routes.draw do # API routes namespace :api do namespace :v1 do resource :me, only: :show, controller: "me" resources :projects, only: %i[index show] do member do post :deploy post :restart end resources :processes, only: %i[index show cre...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/sitemap.rb
config/sitemap.rb
# Set the host name for URL creation SitemapGenerator::Sitemap.default_host = "http://www.example.com" SitemapGenerator::Sitemap.create do # Put links creation logic here. # # The root path '/' and sitemap index file are added automatically for you. # Links are added to the Sitemap in the order they are specif...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/boot.rb
config/boot.rb
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. require "bootsnap/setup" # Speed up boot time by caching expensive operations.
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/schedule.rb
config/schedule.rb
# Use this file to easily define all of your cron jobs. # # It's helpful, but not entirely necessary to understand cron before proceeding. # http://en.wikipedia.org/wiki/Cron # Example: # # set :output, "/path/to/my/cron_log.log" # # every 2.hours do # command "/usr/bin/some_great_command" # runner "MyModel.some_m...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false
CanineHQ/canine
https://github.com/CanineHQ/canine/blob/f5c94561cbc487892b393a3aa57409beeea96c62/config/initializers/content_security_policy.rb
config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy. # See the Securing Rails Applications Guide for more information: # https://guides.rubyonrails.org/security.html#content-security-policy-header # Rails.application.configure do # config.content_security...
ruby
Apache-2.0
f5c94561cbc487892b393a3aa57409beeea96c62
2026-01-04T15:53:12.976830Z
false