Skip to content

Commit

Permalink
test: fix tests for missing kubect2
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy committed Jan 19, 2024
1 parent 26dc63c commit 75f3c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fullstack-network-manager/test/unit/commands/base.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from '../../../src/core/index.mjs'
import { BaseCommand } from '../../../src/commands/base.mjs'
import { Kind } from '../../../src/core/kind.mjs'
import { Kubectl2 } from '../../../src/core/kubectl2.mjs'

const testLogger = logging.NewLogger('debug')

Expand All @@ -21,12 +22,14 @@ describe('BaseCommand', () => {
const configManager = new ConfigManager(testLogger)
const depManager = new DependencyManager(testLogger)
const clusterManager = new ClusterManager(testLogger, kind)
const kubectl2 = new Kubectl2(configManager, testLogger)

const baseCmd = new BaseCommand({
logger: testLogger,
kind,
helm,
kubectl,
kubectl2,
chartManager,
configManager,
depManager,
Expand Down
3 changes: 3 additions & 0 deletions fullstack-network-manager/test/unit/commands/init.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Kind,
Kubectl
} from '../../../src/core/index.mjs'
import { Kubectl2 } from '../../../src/core/kubectl2.mjs'

const testLogger = core.logging.NewLogger('debug')
describe('InitCommand', () => {
Expand All @@ -20,12 +21,14 @@ describe('InitCommand', () => {
const configManager = new ConfigManager(testLogger)
const depManager = new DependencyManager(testLogger)
const clusterManager = new ClusterManager(testLogger, kind)
const kubectl2 = new Kubectl2(configManager, testLogger)

const initCmd = new InitCommand({
logger: testLogger,
kind,
helm,
kubectl,
kubectl2,
chartManager,
configManager,
depManager,
Expand Down

0 comments on commit 75f3c63

Please sign in to comment.